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

Memory leak? Constant crashes


Recommended Posts

Here's a screenshot. Why is AP taking so much RAM?? This project is 300 pages, placed PDFs, nothing complicated. The program is unstable and crashes frequently. 

I have hardware acceleration disabled. When I did this, AP is still using 100% of the RAM I've allocated to it: 27 GB. Surely that can't be right. 

 

image.png.d46ad68a240ca874881524705b52589a.png

Link to comment
Share on other sites

48 minutes ago, DKMusic said:

Here's a screenshot. Why is AP taking so much RAM?? This project is 300 pages, placed PDFs, nothing complicated. The program is unstable and crashes frequently. 

I have hardware acceleration disabled. When I did this, AP is still using 100% of the RAM I've allocated to it: 27 GB. Surely that can't be right. 

Well depends, 300 pages of PDFs where the later do contain what, just text or also a bunch of huge images too?

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

53 minutes ago, DKMusic said:

This project is 300 pages, placed PDFs, nothing complicated.

How big are the PDF files (MB)?

Are they Linked or Embedded in your APub document?

(Note: AP is officially Affinity Photo in these forums, as you can see if you use a browser that lets you hover the cursor over the AP abbreviation. APu and APub are accepted abbreviations for Publisher.)

-- 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.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

How many pages are in each PDF? What is "pretty small"?

Images would obviously be smaller, and even as Linked documents there will be more internal overhead using complex documents rather than images. It is possible that the complete PDF is kept in memory for each of those Linked files, to allow easier handling if you decide to switch to a different page, or change from Pagebox to Trimbox, etc.

However, there's been at least one report (I think) of Linked files causing very large .afpub document sizes. I'm not sure that's ever been figured out.

-- 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.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

To a point, yes. When I open a document, it gradually creeps upwards for the next several minutes. I find it’s best to wait to perform any computationally significant functions until it’s done increasing. Today was the first time it crashed without me doing anything. 

I disabled hardware acceleration (but why though…) and lowered max RAM usage to 27 GB. When I did that, it stopped increasing when it hit 27 GB, then I was able to use the program without crashes (so far). 

Still, 27 GB seems ridiculous, and I’d like to find a solution if possible. Thank you. 

Link to comment
Share on other sites

3 hours ago, DKMusic said:

They are linked PDFs, music notation, not images.

Do you have all the fonts they use installed on your system?

All 3 1.10.8, & all 3 V2.4.1 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

2 hours ago, DKMusic said:

To a point, yes. When I open a document, it gradually creeps upwards for the next several minutes. I find it’s best to wait to perform any computationally significant functions until it’s done increasing. Today was the first time it crashed without me doing anything. 

I disabled hardware acceleration (but why though…) and lowered max RAM usage to 27 GB. When I did that, it stopped increasing when it hit 27 GB, then I was able to use the program without crashes (so far). ...

Hmm, if all linked PDFs are sized like that sample and assuming you linked some 300 of those in, then the linked in data size should only be ~11-12 MB. So a growing up of RAM memory usage to 27 GB (and possibly beyond that without a max RAM limitation) looks indeed like memory leaking here.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

1 hour ago, v_kyr said:

Hmm, if all linked PDFs are sized like that sample and assuming you linked some 300 of those in, then the linked in data size should only be ~11-12 MB. So a growing up of RAM memory usage to 27 GB (and possibly beyond that without a max RAM limitation) looks indeed like memory leaking here.

Thanks. If it is indeed a memory leak, what is to be done?

Link to comment
Share on other sites

7 hours ago, DKMusic said:

If it is indeed a memory leak, what is to be done?

  1. You can report your problem in the forums "Publisher Bugs found on Windows" section, describing the problem there and maybe add some reproducable example etc. So the developers can look after it and hopefully fix it in case of some APub memory occupation/releasing bugs.
  2. You can try out in parallel the latest APub Win Beta 1.10.5.1282 (RC) version, in order to see if it behaves the same way, or if some things might be fixed for that version.
  3. You can instead of linking the PDFs tryout embedding them and then compare behavior and the overall memory size consumption.

Other than that there isn't much you can do from your side here, as far as the problem has no other cause.

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

  • 1 month later...

I was really hoping I'd get a response from someone at Affinity regarding this issue, which continues to plague my work, even on 1.10.5.

My current workaround is to wait approximately 3.5 minutes after opening, after which point the RAM stops increasing and the CPU drops from 40% to zero (I'm running a Ryzen 5900x... this is a pretty simple document.. so that CPU usage doesn't seem correct either). Sometimes it works to wait, sometimes it crashes anyways.

And I doubt the problem is my computer, because I never experience this behavior in any other software, but this happens in APub on both my machines  

These constant crashes make it feel like Publisher is a great idea that isn't yet up to the task. That might not be a fair assessment, but that’s how it feels. As a user on deadline, I can't navigate these problems unresolved.

I was thrilled to move away from InDesign, and I vastly prefer APub. InDesign has its problems too, but I've never encountered this sort of issue that stops my workflow dead in its tracks. Come on, folks, I don't want to go back!

I will try posting on the bug forum as well. Can anyone from the development or tech support team weigh in, please? Thanks.

Link to comment
Share on other sites

The crashes continue, even with embedding (which I shouldn't have to do). And not a single response from the team in the five weeks since I first posted my request.

This isn't a hobby for me, it's a job. I can't afford to continue losing time and work.

I vastly prefer APub to InDesign in every way for what I do... except for constant crashing that renders the program unusable. And I'm disappointed that none of my support requests in this regard have been answered. Professional software needs professional support. 

Unfortunately I have no choice but to return to InDesign. I hope this issue can be resolved in future versions.

Link to comment
Share on other sites

On 3/31/2022 at 11:18 PM, DKMusic said:

The crashes continue, even with embedding (which I shouldn't have to do). And not a single response from the team in the five weeks since I first posted my request.

This isn't a hobby for me, it's a job. I can't afford to continue losing time and work.

I vastly prefer APub to InDesign in every way for what I do... except for constant crashing that renders the program unusable. And I'm disappointed that none of my support requests in this regard have been answered. Professional software needs professional support. 

Unfortunately I have no choice but to return to InDesign. I hope this issue can be resolved in future versions.

People keep reporting problems with embedded PDF files. I highly recommend you try using TIFF instead of PDF to workaround this issue. Figure out what size is optimal and export at that size and you will achieve the identical quality. The only downside is if you change your mind about what size the images should be in the document after exporting all they images as TIFF then they'll longer be the optimal size.

For example, if the music PDF was 2" x 3" and you're printing at 300dpi, then make the TIFF images 600x900.

Download a free manual for Publisher 2.4 from this forum - expanded 300-page PDF

My system: Affinity 2.4.2 for macOS Sonoma 14.4.1, MacBook Pro 14" (M1 Pro)

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.