sqweek / dialog

Simple cross-platform dialog API for go-lang
ISC License
493 stars 76 forks source link

[Linux] 'BadGC (invalid GC parameter)' on dialog.File().Load()-call #55

Open WizardOfCodez opened 3 years ago

WizardOfCodez commented 3 years ago

Hello, we cross built our application to macos, windows and linux. Sadly on Linux the above error gets shown on dialog.File().Load().

Whole error:

(surge-0.2.0-beta:2482): Gdk-ERROR **: 17:38:42.516: The program 'surge-0.2.0-beta' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadGC (invalid GC parameter)'.
  (Details: serial 6173 error_code 13 request_code 60 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

I built the linux app under latest Manjaro (clean VM installation). Any advices?

Cheers, Chris

sqweek commented 3 years ago

No ideas sorry. Is there other gdk/gtk messages logged?

Other instances of BadGC for request_code 60 seem to be system related:

Can you run any other gtk-3 apps in your VM?