Comments (6)
I don't think the code you have pasted shows where the error comes from.
The source is main.go:111, but that doesn't seem to reference the Fyne Run
so it's unclear how this is happening. Can you confirm what is on that line in the original source code please?
from fyne.
Its now main:131 (just some insignificant additions). It crashes after abt 3 mins max. Quite annoying. The line of code refers to "menu.RenderMenu()" which is the function to render the menu. Whenever I tried todo this in the main function it refused to even start my application, and whenever I move it now it says it must be called from the main() func.
from fyne.
I get another error, and the menu graphics start to misbehave. Sometimes the labels start missing letters, sometimes the tab colours disappear, sometimes it just crashes and 100% of the time the sliders DONT update at all. The values update and get changed when you click and drag, but the actual graphic stays in the same place.
2024/01/28 12:17:30 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:30 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:30 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:30 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:30 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:30 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:30 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:30 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:30 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:30 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:30 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:30 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:30 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:30 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:30 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:30 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:30 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:30 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:30 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:30 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:30 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:30 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:30 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:30 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:32 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:32 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:32 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:32 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:32 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:32 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:32 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:32 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:32 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:32 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:32 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:32 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:32 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:32 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:32 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:32 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:32 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:32 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:32 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:32 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:32 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:32 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:32 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:32 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:33 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:33 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:33 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:33 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:33 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:33 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:33 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:33 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:33 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:33 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:33 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:33 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:33 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:33 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:33 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:33 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:33 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:33 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:33 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:33 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:33 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:33 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:33 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:33 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:34 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:34 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:34 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:34 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:34 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:34 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:34 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:34 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:34 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:34 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:34 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:34 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:34 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:34 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:34 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:34 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:34 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:34 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:34 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:34 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:34 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:34 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:34 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:34 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:35 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:35 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:35 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:35 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:35 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:35 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:35 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:35 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:35 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:35 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:35 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:35 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:36 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:36 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:36 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37 2024/01/28 12:17:36 Fyne error: could not marshal svg, falling back to static content: 2024/01/28 12:17:36 Cause: xml: unsupported type: xml.Name 2024/01/28 12:17:36 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37
from fyne.
Its now main:131 (just some insignificant additions). It crashes after abt 3 mins max. Quite annoying. The line of code refers to "menu.RenderMenu()" which is the function to render the menu.
This still doesn't answer the question sorry as we don't know your main.go or how it is creating menus or asking to render.
Whenever I tried todo this in the main function it refused to even start my application, and whenever I move it now it says it must be called from the main() func.
It sounds like your app is juggling main function in ways it should not - are you mixing other packages too?
With the scattering of code and reports I can't make any suggestion for where the problem is, none of the panics mention fyne and your description does not seem to relate to problems with the shortened code you shared.
from fyne.
I have been debugging this since updating you this morning. There were actually quite a few parts of my code responsible for the crashes, yet fyne is now the biggest issue, and any other crash my application has is handled differently.
I seem to be getting a whole bunch of
2024/01/28 16:35:35 Fyne error: could not marshal svg, falling back to static content:
2024/01/28 16:35:35 Cause: xml: unsupported type: xml.Name
2024/01/28 16:35:35 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37
fatal error: runtimer: bad p
runtime stack:
runtime.throw({0x7ff7ef218252?, 0x0?})
C:/Program Files/Go/src/runtime/panic.go:1077 +0x65 fp=0x278dff648 sp=0x278dff618 pc=0x7ff7ee5988e5
runtime.runtimer(0xc00003cf00, 0xfdaf37e1cf0)
C:/Program Files/Go/src/runtime/time.go:778 +0x234 fp=0x278dff678 sp=0x278dff648 pc=0x7ff7ee5b6c94
runtime.checkTimers(0xc00003cf00, 0x12c?)
C:/Program Files/Go/src/runtime/proc.go:3693 +0x11d fp=0x278dff6c0 sp=0x278dff678 pc=0x7ff7ee5a1f1d
runtime.findRunnable()
C:/Program Files/Go/src/runtime/proc.go:2912 +0x74 fp=0x278dff7d0 sp=0x278dff6c0 pc=0x7ff7ee5a02f4
runtime.schedule()
C:/Program Files/Go/src/runtime/proc.go:3582 +0xb1 fp=0x278dff808 sp=0x278dff7d0 pc=0x7ff7ee5a1c11
runtime.park_m(0xc0004624e0?)
C:/Program Files/Go/src/runtime/proc.go:3745 +0x11f fp=0x278dff850 sp=0x278dff808 pc=0x7ff7ee5a211f
traceback: unexpected SPWRITE function runtime.mcall...
these errors are from fyne, so honestly think I might move away for fyne, make sure my application is running as it should, and then maybe come back. Whenever the application launches without fyne and i set the processes to run automatically it could run for 5 mins, whenever I turn on the menu it runs for ~3.
from fyne.
2024/01/28 16:35:35 Fyne error: could not marshal svg, falling back to static content:
2024/01/28 16:35:35 Cause: xml: unsupported type: xml.Name
2024/01/28 16:35:35 At: C:/Users/max/go/pkg/mod/fyne.io/fyne/[email protected]/internal/svg/svg.go:37
This is reporting that the SVG you are using is not supported in some way. Please do open an issue for this if it persists.
fatal error: runtimer: bad p
This is the source of your crash, again it does not relate to Fyne.
these errors are from fyne,
If that was true then there should be some Fyne code in the panic stack trace, which there isn't.
from fyne.
Related Issues (20)
- GridWrap ScrollToOffset API doesn't properly validate offset when viewport is larger than the full content
- Rework fix for #4445 for v2.4.5, avoiding atomic primitives HOT 1
- CTRL+A shortcut not working (CTRL+S etc works though) HOT 6
- run demo error:# runtime/cgo cgo: cannot parse $WORK\b228\_cgo_.o as ELF, Mach-O, PE or XCOFF HOT 1
- Slider input do not implement Disableable HOT 4
- layout.formLayout do not handle canvas.Text well in second column HOT 5
- Add IntToFloat (and FloatToInt) in bindings HOT 1
- random render HOT 1
- Need to hook the fyne generated "Quit" menu item in fyne system tray menu HOT 8
- Quit menu item appearing in menus of sub windows of fyne system tray app HOT 14
- Mouse clicks missed HOT 4
- Hello author, I use fyne-io/fyne-cross for packaging...
- Improper utf-8 to ascii character conversion on paste from clipboard (Windows). A space follows apostrophe in text widget. HOT 3
- Make bound(External)Untyped.Set more useful by making value comparison more capable HOT 1
- Double-click to select a file in FileOpen / FileSave dialogs
- SetOnDropped functionallity missing when running app in a browser
- The "tree" disappears in the "split" after a certain time HOT 2
- cmd/fyne: command ”get” is broken with Go 1.22 HOT 14
- How does fyne obtain the device model or serial number of an Android device? HOT 1
- Please add a way to embed the `FyneApp.toml` metadata into the `go build`. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fyne.