PDA

View Full Version : Asset window locks and crashes



HywelPhillips
November 19th, 2024, 20:26
Hi,

Following today's update, I am getting lockups and crashes using the asset window.

I am on an M2 Ultra Mac Studio, Ventura 13.5, 128 GB.

Symptoms:

In my Dawn of the Daikaiju campaign (SWADE, only modules loaded are SWADE rules and Dawn of the Daikaiju GM & Player modules).

I opened the Asset window, resized it to my normal size of about half the screen, selected "Images" and searched for "tree". Given that I have the art pack and a lot of other assets, this returns several screenfulls. First page loads quickly. Second page loads after spinning colour wheel. Third page loads very slowly. Fourth page shows spinning wheel for many minutes (I forced quit).

Second time happened likewise only with search term "skyscraper" (of which there are far fewer) - again spinning colour wheel of death, locked up.

Tried to replicate in a clean SWADE campaign, only module loaded was SWADE rules. Brought up asset window, resized to fill about half a screen, select images, typed "tree" - FGU crashed entirely. No extensions.

Ran test again - first page of tree search results returned OK. Second page OK. Third page colour wheel of death for minutes at least, application unresponsive. FGU is using 360% CPU which is new, previously it maxed out at 100% (it's a 24 core machine so that's out of 2400% possible). 20 GB of real memory, 25 GB memory total, not increasing and memory pressure is no issue (70 GB free). All the asset files are on the home SSD so it's not waiting on drive reads or anything like that.

Suspect it may be something to do with the move to multi-threaded for the asset window?

Cheers, Hywel


It "feels" like it's waiting for threads to come back together but something isn't reporting, as the preview images load into the asset window in somewhat patchwork fashion and it seems to get stuck waiting for the last few.

pindercarl
November 19th, 2024, 21:39
Hi,

Following today's update, I am getting lockups and crashes using the asset window.

I am on an M2 Ultra Mac Studio, Ventura 13.5, 128 GB.

Symptoms:

In my Dawn of the Daikaiju campaign (SWADE, only modules loaded are SWADE rules and Dawn of the Daikaiju GM & Player modules).

I opened the Asset window, resized it to my normal size of about half the screen, selected "Images" and searched for "tree". Given that I have the art pack and a lot of other assets, this returns several screenfulls. First page loads quickly. Second page loads after spinning colour wheel. Third page loads very slowly. Fourth page shows spinning wheel for many minutes (I forced quit).

Second time happened likewise only with search term "skyscraper" (of which there are far fewer) - again spinning colour wheel of death, locked up.

Tried to replicate in a clean SWADE campaign, only module loaded was SWADE rules. Brought up asset window, resized to fill about half a screen, select images, typed "tree" - FGU crashed entirely. No extensions.

Ran test again - first page of tree search results returned OK. Second page OK. Third page colour wheel of death for minutes at least, application unresponsive. FGU is using 360% CPU which is new, previously it maxed out at 100% (it's a 24 core machine so that's out of 2400% possible). 20 GB of real memory, 25 GB memory total, not increasing and memory pressure is no issue (70 GB free). All the asset files are on the home SSD so it's not waiting on drive reads or anything like that.

Suspect it may be something to do with the move to multi-threaded for the asset window?

Cheers, Hywel


It "feels" like it's waiting for threads to come back together but something isn't reporting, as the preview images load into the asset window in somewhat patchwork fashion and it seems to get stuck waiting for the last few.

Testing with the search term "tree," I'm not able to reproduce the error. I'm able to page through ten or so windows of results. I did find an error where some memory allocated for images was not being disposed of properly, but you're not reporting any memory issues.

HywelPhillips
November 20th, 2024, 12:09
Tried again:

5E new campaign no modules loaded.

Bring up asset window, resize to fill about half the screen horizontally and most of screen vertically.

Select "images". Search for Drow - returns one page instantly, second page after short colour wheel of death. Now search for Dwarf - locks up, colour of wheel of death.

It looks like it's as general as the third or fourth set of results locking the program. I wondered if it was some particular map or image that was causing the lock-up but it doesn't seem like it since it happens with different search terms.


Same 5E empty campaign. Bring up assets window, leave at default size. I can now blip backwards and forwards through the many screens of folders, although the folders seem to be displaying as plain white squares. Go into a folder (I happened to choose Alien Heart of Darkness). Can blip forward through the images, three pages of results. When I blip backwards to the previous results pages again, I get the images displaying as plain white squares whereas before they displayed correctly. Go back up to top level folder, then back into Alien Heart of Darkness - same thing. Works on hitting arrows to blip forward, when I blip backwards the image thumbnails have been replaced with white squares.

Same result in D & D Baldur's Gate Descent into Avernus folder.

Expand the asset window - seems to make problem worse, it no longer resets when going back to root level then into the folder again, it's only showing white squares.

I eventually got it to freeze up again with searching for Drow but it was more stable for longer - I hypothesise because I was not selecting images only, so it included a bunch of tokens in results. These are smaller files, and maybe different file formats.

So there's definitely an error happening with the assets window, which seems to happen after a certain amount of activity. I don't THINK it is due to specific files in my asset library, it seems to be more a function of how much stuff has been displayed or sorted/searched through.

Is there anything I can send to further assist investigation?

cunningrat
November 20th, 2024, 14:40
N/A: post deleted, PEBCAK.

pindercarl
November 21st, 2024, 02:00
Tried again:

5E new campaign no modules loaded.

Bring up asset window, resize to fill about half the screen horizontally and most of screen vertically.

Select "images". Search for Drow - returns one page instantly, second page after short colour wheel of death. Now search for Dwarf - locks up, colour of wheel of death.

It looks like it's as general as the third or fourth set of results locking the program. I wondered if it was some particular map or image that was causing the lock-up but it doesn't seem like it since it happens with different search terms.


Same 5E empty campaign. Bring up assets window, leave at default size. I can now blip backwards and forwards through the many screens of folders, although the folders seem to be displaying as plain white squares. Go into a folder (I happened to choose Alien Heart of Darkness). Can blip forward through the images, three pages of results. When I blip backwards to the previous results pages again, I get the images displaying as plain white squares whereas before they displayed correctly. Go back up to top level folder, then back into Alien Heart of Darkness - same thing. Works on hitting arrows to blip forward, when I blip backwards the image thumbnails have been replaced with white squares.

Same result in D & D Baldur's Gate Descent into Avernus folder.

Expand the asset window - seems to make problem worse, it no longer resets when going back to root level then into the folder again, it's only showing white squares.

I eventually got it to freeze up again with searching for Drow but it was more stable for longer - I hypothesise because I was not selecting images only, so it included a bunch of tokens in results. These are smaller files, and maybe different file formats.

So there's definitely an error happening with the assets window, which seems to happen after a certain amount of activity. I don't THINK it is due to specific files in my asset library, it seems to be more a function of how much stuff has been displayed or sorted/searched through.

Is there anything I can send to further assist investigation?

The white squares issue is fixed in the latest update. I've added some changes to the thumbnail loading to prevent or capture runaway threads. Since I was not experiencing the original issue, I cannot say whether this will address the problem. If you can check with the latest update and report your findings, that would be great.

Moon Wizard
November 21st, 2024, 02:01
Just pushed a hot fix update about an hour ago with all the memory/loading fixes that Carl has provided so far. Please run a new Check for Updates, and let us know if you are still seeing the issue. If still an issue, we'll see what other questions we can ask to figure it out.

Regards,
JPG

HywelPhillips
November 21st, 2024, 14:11
Hi,

Thanks as always for the prompt responses. Applied check for updates at 14:00 GMT 21 Nov.

White square issue seems to be fixed.

The slowdown issue with the assets window for 5E/search "drow" is improved - I got through several forward-and-backward blips through the drow image search results before hitting a spinning colour wheel of death. Performance degraded a bit more slowly, but still ended up effectively frozen and having to force quit.

At that point FGU was using 800% CPU and 85 GB of memory, pushing overall memory use to 114 GB used and starting caching, which it wasn't doing before.

SWADE/"tree" search - not much improvement, spinning wheel of death after two screenfuls of images.

It's improved, especially for the 5E/Drow search. Maybe my SWADE/Tree search produces some really big images in the first screenful of results and so is falling over more quickly from memory leak issues? Or maybe there's something else going on too.

Cheers, Hywel

HywelPhillips
November 22nd, 2024, 15:44
Happy to report that the last round of fixes appear to have solved my issues.

The Asset window searches now occasionally show the spinning wheel of death, but only for a few seconds before returning the results and becoming responsive once again. Overall the time to display is longer, with a pause for the whole window of thumbnails to be assembled and then displayed. FGU is now only exercising the CPU to the tune of 110% or so. So I guess this is as a result of going back to single-threaded.

I hope you guys can work on the fix offline because having more of FGU be multi-threaded would be awesome.

But thank you as always for an amazing response during this roll-out. As someone who has worked on large collaborative software projects, the responsiveness of the SmiteWorks team is truly impressive.


Cheers, Hywel