-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
FyneApp.toml causes BadLength error #5272
Comments
Please share the FyneApp.toml that is causing issues on your machine for clarity. Most apps include this file and we have never seen the issue reported, so perhaps there is something strange in the file encoding? |
FyneApp.txt |
Oh wow I see. |
I've tried this both on KDE Plasma 6, as well as Hyprland with the same error on both. Curiously, I'm able to build for Windows with |
For further review, the repo in question is public, just don't judge my poor code, it was thrown together and I'm new to Go 😅 |
So I was curious and I tried to build and run this in a fresh install of Ubuntu in a VM and had the same error -- it's entirely possible it's just my code. |
Your window is asking for a width of 720, is it possible that your screen doesn't have space? That could cause x11 failures I guess. Maybe try removing all the "Resize" calls to eliminate possibilities? |
That was a good suggestion; however, I removed the Resize window, as well as all occurrences in child functions with no change |
Okay, so I figured out what the issue was; my Icon.png was 2048x2048, which was far too large. I scaled it down to 256^2 and that seemed to do the trick. I would recommend having a max size recorded somewhere in the documentation if possible (I anticipate this is a *nix dependency that determines this). |
Wow, good catch. I guess we should consider scaling it down for the icon used in window borders - I am guessing that was the usage that triggered it. In general our docs recommend 1024x1024 so hopefully we haven't been misleading anyone... |
I never saw the 1024; I was looking in the Packaging for Desktop and the App Metadata sections on the fyne.io website. |
Re-opening so we can stop huge icons from crashing the app. |
Helps to keep app size down too. Fixes fyne-io#5272
Fixed on develop, will be in the next release. |
Checklist
Describe the bug
Current go app runs without a FyneApp.toml; upon inserting one (even copying the example in the Docs) causes the following error at runtime:
Removing the toml results in a successful build and run.
How to reproduce
go build
,fyne build
, orgo run main.go
and run executableScreenshots
No response
Example code
Fyne version
2.5.2
Go compiler version
1.23.2
Operating system and version
Arch Linux
Additional Information
This only appears to be an issue with the example code provided; simple "Hello, world" programs work (as well as the fyne demo app).
The text was updated successfully, but these errors were encountered: