-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fails to start with missing image on arch #218
Comments
Based on this from your log (see the two bold sections), I'm guessing you've got an overlay under
If you've executed TokenTool before (an older version of it, for example), then maybe some leftover image data is the problem. You can try looking under that directory, or just rename it to something else and see if TT starts up after that. (It will recreate the directory.) If it does, then you can go back to the old directory and copy over any custom overlays you might have created. (Because the log specifically calls out getOverlayThumb, it may be that you can just delete the thumbnail directory and restarting TT will work.) |
I had installed an old entry (AUR was out of date, and I submitted a fix there). However, removing the contents of that whole folder sadly doesn't help.
|
All the images inside |
|
I removed the whole |
Oh! deleting just the card and square folder and restarting lets tokentool start! |
I'm curious which file in particular was causing the problem, but most likely this is a bug in the platform library that Java uses to read PNG files. Otherwise, we'd have heard from other users about this same issue. |
Had this same problem while running Manjaro, it seems to be the presence of JPG files in the Cards folder that causes the crash, PNG images work just fine. Investigated the issue together with a friend who is more experienced with Linux. I ran the program from source files with a few edits to make it stop crashing, specifically adding a few lines in the processMagenta function of ImageUtil.java. This is of course not a fix, but with the lines in place the program builds and launches, the only issue then is that images in the Cards folder that are JPG do not load in (or rather, they load in as 1x1 broken images). Also suspected it might have been an issue with openJDK in Linux, but got the issue when building the source code with the Oracle JDK.
|
I can now also confirm that the same issue exists when running Fedora 35 from the RPM version, and it's resolved by just removing all the JPG images from the Cards folder of the install. |
@SagittaryX thanks for the follow up. We'll probably need to re-save them or maybe just replace them with webp versions. |
Describe the bug
Fails to start with missing image
I imagine this is an issue with installation on arch, so I'd appreciate help manually fixing it (and I'll share results with the package maintainer)
To Reproduce
start app, which fails
TokenTool Info
Desktop (please complete the following information):
Additional context
Installed from AUR, with a modified pkgbuild to get the latest version installed.
Debug log:
The text was updated successfully, but these errors were encountered: