-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ci: fix macOS build #11660
ci: fix macOS build #11660
Conversation
o.O
|
85c16df
to
7f0e7f8
Compare
7f0e7f8
to
756e0ef
Compare
See koreader/koreader-base#1771 for a fix for the SDL issue. |
Would this do anything to fix the constant 'koreader quit unexpectedly' error message in the MacOS version? For the last year this just shows up even if the app doesn't actually quit and reappears whenever I click 'Ignore', so I just drag it to the corner of the screen and use KOReader normally (which is way buggier than Android but sometimes works). |
No, it's just to get it to build.
You don't mean it's restarted or anything, just a weird random message? |
Well, it has an error log output, but it's for an outdated version of KOReader (2023.06). I just downloaded the latest generated MacOS build I could find which is from 2024.01 and that immediate failure message doesn't show up. But then I remembered why I've been sticking with the outdated one—whenever I try to open any file on the newest version, it displays in-app error "No reader engine for this file or invalid file". Maybe there's something to do inside the package contents to move around some binary paths, but since it didn't work out of box I've just been sticking to the older one. I can send you the older version log if you want, but might not be relevant anymore. |
If you can send logs from exactly when it happens there's a chance it's of some interest but it's probably better to wait until after this is finished. Edit: which with koreader/koreader-base#1771 it probably is. |
Work around the fact that the lua@5.1 brew formula has been disabled. Additionally, drop ragel (no necessary anymore).
Use the same parameters as for the koreader-base job (faster).
Reduce differences with the configuration used on koreader-base.
756e0ef
to
6765468
Compare
Thanks a lot! |
From the traces when
|
For I don't know about From past experience, something like |
If you know of something that works and it's not too much effort, sounds good to me. |
OK, but I have some CI changes I'd prefer too PR first (to improve caching on CircleCI and add some caching to the macOS build). And I'll need someone to test the result, as I don't have access to a macOS machine. |
I have an old Macbook Air M1 with a broken screen I can test some things on, but it might be faster to ask if @ryanwwest is willing to lend a hand, depending on the question. |
I'm happy to help test, but separated from my Macbook until Thursday. |
OK, thanks. |
@ryanwwest: could you give this build a try? Known issues (from introspecting the result):
|
@benoit-pierre That build immediately crashes for me, the UI doesn't show up. I'm not sure how to get logs for that type of thing, maybe I can invoke it via terminal rather than double-clicking the app in the finder.. Edit: I can start it from the terminal with I have a MacBook Pro with M1 Max processor. |
I'm not sure how to get more traces. Does the latest master build work? |
I think you should be able to execute |
Well, the latest build gets further... As I've mentioned earlier, it won't let me actually open documents, gives the error below. And I went to search for the menu item to enable logging using the Menu search, and searching 'log' itself actually crashed the app. I'll run it directly next as you said. |
Log running the previous build (not latest master):
That last line definitely has some unrelated missing files like from indy-sdk that you can ignore. But other parts of the line are relevant. |
Can you rename |
I ran:
Error log:
|
OK, wrong extension again. Let me do a full pass… |
Try this build. |
Opens, but same error not opening files. Menu search works. Log, when attempting to open a pdf:
|
\o/ progress! For some reason the build is selecting the framework version of libpng, and not our version:
What about opening an EPUB? |
Ah you're right, epub, txt and html all work fine! Only PDFs are failing to open. |
Also, does dictionary lookups work? Does downloading a dictionary work? |
All of that seems to work. And I'm very surprised that external dictionary opens up Apple's native dictionary app. |
And this one should hopefully take care of the PDF issue. |
I thought it was solved but eventually found two PDFs where it still breaks. First one (first log) throws the error, second one crashes the program. ~30 other PDFs open fine. All PDFs and these two problematic ones open fine on my KOReader Android.
Second one is 23MB, which seems to be too much for some cache?
|
An issue with annotations, I'm pretty sure this has nothing to do with the macOS version. Might be already fixed in master.
That one I don't know. You say it works on Android? Not with the same settings I assume? |
And does that second PDF work with your old version of koreader? Additionally, what about your initial issue:
Still present? |
Actually, just tested that second PDF on the old version AND latest version of KOReader and now it opens find on each... maybe my system was low on memory (doubtful as it's 32GB RAM but possible). And no, that message is gone :) Aside from the few issues we've been working out, MacOS works pretty well. It would be awesome if at some point we officially released it as a supported platform. |
Work around the fact that the lua@5.1 brew formula has been disabled.
Additionally, drop ragel (no necessary anymore).
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)