Code Monkey home page Code Monkey logo

Comments (6)

andydotxyz avatar andydotxyz commented on July 19, 2024

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.

jiggey1 avatar jiggey1 commented on July 19, 2024

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.

jiggey1 avatar jiggey1 commented on July 19, 2024

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.

andydotxyz avatar andydotxyz commented on July 19, 2024

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.

jiggey1 avatar jiggey1 commented on July 19, 2024

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.

andydotxyz avatar andydotxyz commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.