-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frequent software freeze since 1.9.3 update #74
Comments
Thanks for the report, I'm guessing this is related to the Live Text processing. Any thoughts @DavidPhillipOster? Maybe we need a pref to enable/disable live text? |
Thanks - I'll check in to this. My test file is a copy of 'The Silver Cord' 466 pages, a 3.3 Gbyte PDF. Early in my testing I noticed I'd dropped a CFRelease of a CGImage that was responsible for bloat. I'll check your master source to see if I made a mistake in the in the pull request. |
I am seeing some leaking CGImages in the current MaddTheSane/Simple-Comic . I'm working on a fix. |
no, all the leaks I saw were within the PDF renderer, and still present when all of my code was never called. Not present in .cbz (My largest CBZ is also 3.4 Gbyte, 210 pages) Next pull request will focus on a pref to enable/disable live text, and I'll test on High Sierra, and on Monterey on Apple Silicon, and on Intel. |
Thanks for your hard work @DavidPhillipOster |
@nickv2002 @DavidPhillipOster |
@Patalliro8 @nickv2002 Currently, I'm planning to add an item to the preferences dialog box that will let the user control the Live Text feature , I was able to reproduce the problem, for the document in Japanese, but repeatedly using 'next page' to go all the way to the end of that document, then 'previous page' to go back to the beginning. On my M1 Mac Mini (Monterey), on this document, after 40 pages, Activity monitor shows a thread count of 70, not decreasing and the U.I. shows the beach-ball, not responding. The English language .cbz I tried on my machine did not show this bad behavior: no beach ball, and the background threads quickly finish and free their resources. When you navigate to a page in a book, I start up a VNRecognizer task on a background thread to recognize text on that page. For a book in English, the first time the VNRecognizer takes about 5 seconds, but after that, each following page takes less than a second. VNRecognizer is a background task so it doesn't slow the U.I. But: if you repeatedly page through the book, it will create a new task for each page, even if you've been to that page previously. (and it holds a reference to the page data while it is working.) When you try to quit the app, Simple Comic currently waits for all the recognizers to complete. First easy fix: give the user a checkbox to turn Live Text support on or off, for the whole app. (maybe a popup that lists the languages it can OCR in.) I'll send a pull request for that in the next few days, and I'll add your document to my automated test suite. My plan for future pull requests: |
Fixed in 1.9.4 |
Since 1.9.3 update (on macOS 11.6.6), I am experiencing the software quickly slowing down until it becomes unresponsive with rotating wheel. Upon opening a 100MB file, the memory usage quickly rise from few hundred megabytes to multiple gigabytes, which may be the reason of slowdown. At this point, the only way to close the app is to force quit.
The text was updated successfully, but these errors were encountered: