-
Notifications
You must be signed in to change notification settings - Fork 61
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
Problems at run-time in xwayland #171
Comments
I thought I'd see how golly goes, well when I try to launch golly now I get a dialog that says: This program wasn't compiled with EGL support required under Wayland, either Am thinking of maybe going back to X for a bit.. |
env GDK_BACKEND=x11 golly That starts golly with no warnings.. but it doesn't seem to help ready |
Ah I realized I was using an old build of vtk because I've never been able to make it use the system one for some reason! |
The new VTK seemed to help however I got stuck on a compiler error: [ 93%] Building CXX object CMakeFiles/ready.dir/src/gui/prefs.cpp.o |
All the above seemed to lead to this code in src/gui/wxVTKRenderWindowInteractor.cxx: // Find and return the actual X-Window. Could this maybe have a condition that works with wayland? I will check whether this is actually where things are going wrong as well. |
Hmm the above was far too long!.. I think this is a better summary of the problem: [ 93%] Building CXX object CMakeFiles/ready.dir/src/gui/wxVTKRenderWindowInteractor.cxx.o |
Sounds like maybe wx-3.0 and gtk-3.0 disagree about who defines GdkWindow?! |
I did some gentoo-y checking where these includes are coming from and this is the wx one: equery b /usr/include/wx-3.0/wx/wxprec.h
and I also checked the gtk one, and indeed it is a different version: equery b /usr/include/gtk-3.0/gdk/gdktypes.h
This led me to discover I had an older version of wxwidgets selected.. so I've selected the newer one (gtk3-unicode-3.2-gtk3).. and now it builds! It's asking for GDK_BACKEND=x11.. and the UI is all kinds of messed-up. but that might be because of a left-over dark theme from before I updated things recently.. will try with a light theme next! |
Ok it's working now however even after clearing the gtk 'theme' I still have white text on a white background in the 'pattern browser' panel. |
I found that commenting this bit in PatternsPanel.cpp sorted it out: //#if wxCHECK_VERSION(2,9,0) Not sure that will work for everyone, but something to consider maybe @timhutton ? |
Maybe we just need a branch on that 'if' that does the right thing on newer wxwidgets? (I'm on 3.2.2.1 now) |
I'm on Gentoo, and yesterday's update took me to KDE6 which uses wayland by default. I wasn't really intending to bite that bullet yet but here we are I guess! Better get used to it! (and I'll be happy to look into and fix this myself if I can!)
I rebuilt ready (admittedly probably just some old trunk!) and the build worked great, but when I run the 'ready' binary, the UI appears for a brief moment and then it crashes, saying:
The program 'ready' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 39 error_code 8 request_code 145 minor_code 3)
(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 --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
The text was updated successfully, but these errors were encountered: