Jump to content
You must now use your email address to sign in [click for more info] ×

Affinity Photo keeps crashing while loading assets


Recommended Posts

Just upgraded my PC from 16 gb memory to 32gb and thot I would see how well the desktop version compares with my iPad Pro version.

Well doesnt look good, my PC crashes everytime loading same asset file my iPad can handle.

On PC, Apho V1 memory usage gets to about 8gb then crashes, after the crash reloading shows the category loaded, with no visible content.

I assume this has not ben fixed for APho V1, and I wont upgrade to V2 because I hate the UI. 

Link to comment
Share on other sites

More observations, obviously assets are compressed, on my PC loading assets my CPU jumps to about 70+ % usage and memory hit about 12gb of 32gb and then crashes.

After loading assets, and deleting the category, memory is not reclaimed until exiting APho and reloading the app.

Asset file attempted loading on PC is about 460mb before crashing, my iPad can load a 760mb asset file, slow but no problems.

 

 

 

Link to comment
Share on other sites

If you have Hardware Acceleration (OpenCL) enabled in Preferences/Performance, does turning it off help?

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.5

Link to comment
Share on other sites

While it is working now that I allocated more ram, it is remarkable slow compared to my iPad, disk speed hardly used, ram usage creeps up slowly, cpu  never >80%, I would say ipad is faster on large asset files. This surprized me.

Of note though… after loading a large asset file then deleting it ram is Not recovered, after loading large asset file my ram usage goes up to my limit 28gb, if I subsequently delete the category ram stays at 28 gb so if I load another large file the app will crash, looks like no ram left for 2nd file because ram not released and available after category deletion.

Lesson learned after using a large asset file, delete the category, save and restart app to recover ram.

Link to comment
Share on other sites

First I must say I have no idea what might be slowing your Asset file loading or causing crashes…?
But I am wondering if there is maybe something or things contained in your Assets file that is affecting AP?
My Asset file in AD2 is currently 958MB and as far as I can tell has no great impact on Photo’s performance or over hogging RAM.
My RAM usage in Photo’s Prefs is set to the same as my system i.e. 16GB.

 

macOS 10.15.7  15" Macbook Pro, 2017  |  4 Core i7 3.1GHz CPU  |  Radeon Pro 555 2GB GPU + Integrated Intel HD Graphics 630 1.536GB  |  16GB RAM  |  Wacom Intuos4 M

Link to comment
Share on other sites

I have a 7 GB assets.propcol file on my Windows laptop, and switching between categories (or adding/deleting categories, or adding Assets, or sometimes creating new files) can be noticeably slow but a significant portion of that time is spent in reading/writing assets.propcol, if I've measured it correctly.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.5

Link to comment
Share on other sites

  • Staff
43 minutes ago, Affinity Rat said:

While it is working now that I allocated more ram, it is remarkable slow compared to my iPad, disk speed hardly used, ram usage creeps up slowly, cpu  never >80%, I would say ipad is faster on large asset files. This surprized me.

Of note though… after loading a large asset file then deleting it ram is Not recovered, after loading large asset file my ram usage goes up to my limit 28gb, if I subsequently delete the category ram stays at 28 gb so if I load another large file the app will crash, looks like no ram left for 2nd file because ram not released and available after category deletion.

Lesson learned after using a large asset file, delete the category, save and restart app to recover ram.

The RAM used is low priority, and can be written over by the operating system as required, unused RAM is wasted RAM. As your software has no idea of your intentions, it would not know that you do not need to use these assets again, so the best way to operate is to hold these in RAM which is much faster than pulling again from disk into RAM. If you do not use these again, and you have no spare RAM, the software (and any software on your computer, can overwrite these files.

It's a common misconception that free RAM is a good thing. Recovering RAM will invariably slow things down as things that do need to be cached in RAM will once again need to pull from the slower physical drive.

Lee

 

Link to comment
Share on other sites

1 hour ago, Lee_T said:

The RAM used is low priority, and can be written over by the operating system as required, unused RAM is wasted RAM. As your software has no idea of your intentions

Well it seems to me if you delete a category, it implies ram utilized for that category is no longer needed.

No debate about loading from disk/cache slower than ram, but my experience with this app is when the ram limit set in the app is exceeded the app crashes, and providing more ram allows the app to load bigger asset files, but still crashes if the app ram limit is exceeded.

 

 

Link to comment
Share on other sites

2 hours ago, markw said:

First I must say I have no idea what might be slowing your Asset file loading or causing crashes…?
But I am wondering if there is maybe something or things contained in your Assets file that is affecting AP?

It could be that instances within my asset file have not been completely rasterized, ie there are layers present, thereby requiring more grunt and more resource hungry.

Link to comment
Share on other sites

1 hour ago, walt.farrell said:

I have a 7 GB assets.propcol file on my Windows laptop, and switching between categories (or adding/deleting categories, or adding Assets, or sometimes creating new files) can be noticeably slow but a significant portion of that time is spent in reading/writing assets.propcol, if I've measured it correctly.

Yeah I watched the disk usage (fast ssd) during loading, it didnt appear to be a factor, but certainly ram usage increased relatively slowly. 32gb @3200MHz, but only 4gb video ram.

Link to comment
Share on other sites

16 minutes ago, Affinity Rat said:

Well it seems to me if you delete a category, it implies ram utilized for that category is no longer needed.

I think that Lee was indicating that the OS or other applications can use the RAM if they need it, but Affinity can also (re)use the RAM for other things if it wants to. Essentially, it has been marked as "free for others to steal" but can still be used by Affinity when it wants to (at which point, presumably, Affinity marks it as "in use" so the OS and other applications can't steal it).

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.5

Link to comment
Share on other sites

10 minutes ago, walt.farrell said:

I think that Lee was indicating that the OS or other applications can use the RAM if they need it, but Affinity can also (re)use the RAM for other things if it wants to. Essentially, it has been marked as "free for others to steal" but can still be used by Affinity when it wants to (at which point, presumably, Affinity marks it as "in use" so the OS and other applications can't steal it).

So does the app ram limit, ensure that only the affinity app has access to that ram and should clear some of that ram to cache perhaps when more ram is demanded? while other system processes do not have access to that ram. The system runs on the residual ram. I have 32gb and I set app limit to 28gb, can the system share that 28 gb or must it run in the 4 gb remaining  “free ram”

All I have observed is when the ram limit is exceeded the app crashes.

Link to comment
Share on other sites

Sorry, I have no idea, @Affinity Rat.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.5

Link to comment
Share on other sites

2 hours ago, Affinity Rat said:

I interpret that to mean the app ram limit, does Not exclusively reserve ram for the app, if this is true what does the app ram limit do?

EDIT: I just noticed the OP is a Windows user, but I'll leave the macOS related stuff here because I think there is something similar to wired memory in Windows.

The only memory that can't be cached to disk is the wired memory the macOS system needs to operate -- more about that & memory usage in general can be found in this Apple article, including a bit about why memory remains cached to improve performance, & why you can't force the system to use less memory than it needs.

As I understand it, the RAM limit in the Affinity apps is provided to be able to 'tune' the app to use less memory that it otherwise might when a user is running the Affinity app plus other memory-hungry apps simultaneously, thus potentially reducing disk thrashing. But it may have other uses as well, because it is sometimes suggested that reducing it from the default has helped prevent certain odd behaviors, instabilities, & maybe even some obscure causes of crashes.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

13 hours ago, R C-R said:

EDIT: I just noticed the OP is a Windows user, but I'll leave the macOS related stuff here because I think there is something similar to wired memory in Windows.

The only memory that can't be cached to disk is the wired memory the macOS system needs to operate -- more about that & memory usage in general can be found in this Apple article, including a bit about why memory remains cached to improve performance, & why you can't force the system to use less memory than it needs.

As I understand it, the RAM limit in the Affinity apps is provided to be able to 'tune' the app to use less memory that it otherwise might when a user is running the Affinity app plus other memory-hungry apps simultaneously, thus potentially reducing disk thrashing. But it may have other uses as well, because it is sometimes suggested that reducing it from the default has helped prevent certain odd behaviors, instabilities, & maybe even some obscure causes of crashes.

Thank you, so you are suggesting the purpose of the app ram limit is to prevent the app (Apho in this case), from hogging system resources in lieu of creating an safe environment for the app to operate without being disturbed by other pesky resource demanding services/apps et al.

Link to comment
Share on other sites

1 hour ago, Affinity Rat said:

Thank you, so you are suggesting the purpose of the app ram limit is to prevent the app (Apho in this case), from hogging system resources in lieu of creating an safe environment for the app to operate without being disturbed by other pesky resource demanding services/apps et al.

Not exactly. The idea is that by limiting the amount of RAM AP uses (which will in some cases reduce its performance) this will allow other apps that are being run at the same time to perform better because there will be more RAM available for them to use before any of their data has to be paged out of RAM.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.