Open alec-hoyland opened 2 years ago
❯ ./TokenTool --help
2021-12-22 11:46:52,197 JavaFX-Launcher ERROR Appenders contains an invalid element or attribute "Sentry"
2021-12-22 11:46:52,207 JavaFX-Launcher ERROR Unable to locate appender "Sentry" for logger config "root"
11:46:52.251 (null:-1) [JavaFX-Launcher] INFO - Overlays installed: 183
11:46:52.306 (null:-1) [JavaFX-Launcher] INFO - Environment: Production
11:46:52.306 (null:-1) [JavaFX-Launcher] INFO - Sentry DSN: https://312e480e6390426095b0a66a11f343a9@sentry.io/1406000
11:46:52.306 (null:-1) [JavaFX-Launcher] INFO - Vendor: rptools
11:46:52.306 (null:-1) [JavaFX-Launcher] INFO - Release: 2.2.1
11:46:52.307 (null:-1) [JavaFX-Launcher] INFO - OS: Linux
11:46:52.307 (null:-1) [JavaFX-Launcher] INFO - 3D Hardware Available? false
11:46:52.313 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays
11:46:52.313 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Create
11:46:52.415 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Round
11:46:52.415 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Round/Decorated
11:46:53.041 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Round/Smooth
11:46:54.139 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Round/Gears
11:46:54.209 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Round/Runes
11:46:54.483 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Round/Bottlecaps
11:46:54.791 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Round/Chains
11:46:55.044 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Square
11:46:55.148 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Hex
11:46:55.204 (null:-1) [JavaFX-Launcher] DEBUG - caching /home/alec/.tokentool-rptools/overlays/Cards
Exception in Application init method
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application init method
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Image dimensions must be positive (w,h > 0)
at javafx.graphics/javafx.scene.image.Image.<init>(Unknown Source)
at javafx.graphics/javafx.scene.image.WritableImage.<init>(Unknown Source)
at net.rptools.tokentool@2.2.1/net.rptools.tokentool.util.ImageUtil.processMagenta(Unknown Source)
at net.rptools.tokentool@2.2.1/net.rptools.tokentool.util.ImageUtil.getImage(Unknown Source)
at net.rptools.tokentool@2.2.1/net.rptools.tokentool.util.ImageUtil.getOverlayThumb(Unknown Source)
at net.rptools.tokentool@2.2.1/net.rptools.tokentool.client.TokenTool.cacheOverlays(Unknown Source)
at net.rptools.tokentool@2.2.1/net.rptools.tokentool.client.TokenTool.cacheOverlays(Unknown Source)
at net.rptools.tokentool@2.2.1/net.rptools.tokentool.client.TokenTool.init(Unknown Source)
... 3 more
Exception running application net.rptools.tokentool.client.TokenTool
For some reason the included Cards overlays give some image libraries fits.
You can delete them if you don't want them or you can load them into an editor and then re-save them which may help.
Just an FYI, the same issue is happening for me in Fedora 35 via the RPM Package. Removing the cards helped.
FYI, the same issue is happening for me in Ubuntu 22.04. Removing the cards helped. Converting (using convert) the cards did not help.
Same problem Ubuntu 23.04, removed the Cards, works fine. Is this on the FAQ, or is it worth removing the Cards from the distributed version with a note?
so for those wondering here is the solution. require imagemagick installed navigate to the card folder. ~/.tokentool-rptools/overlays/Cards on my install
mogrify -auto-orient -format png *.jpg
then
rm *.jpg
Describe the bug A clear and concise description of what the bug is.
I just installed 2.2.1 on Pop OS 21.10 (an Ubuntu derivative) from the .deb file. Previously (on 21.04 with TokenTool 2.1.x) everything worked perfectly. I can find TokenTool in my list of applications and when I start it I get the "caching overlays" screen and a loading bar, before the application crashes with no error.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Token Tool starts up correctly.
Screenshots If applicable, add screenshots to help explain your problem.
TokenTool Info
sudo apt remove --purge tokentool
.Desktop (please complete the following information):
More Detailed Desktop Info
Java Info
Additional context Add any other context about the problem here. You can also attach files (drag and drop here or paste from clipboard) such as log files or screenshots. For large files, paste a file sharing link.