Fix black viewport on Linux .deb install and Wayland systems#153
Merged
fernandotonon merged 1 commit intomasterfrom Feb 25, 2026
Merged
Fix black viewport on Linux .deb install and Wayland systems#153fernandotonon merged 1 commit intomasterfrom
fernandotonon merged 1 commit intomasterfrom
Conversation
The .deb package had an incorrect PluginFolder path in plugins.cfg (pointing to /usr/local/lib/OGRE from the CI build instead of /usr/lib/qtmesheditor where the .deb installs plugins), preventing Ogre from loading any render system. Additionally, on Wayland desktops Ogre's externalWindowHandle requires X11 window IDs which are unavailable under the Wayland compositor, so we now force the XCB platform plugin on Linux. - Fix PluginFolder path in .deb packaging via sed in deploy.yml - Add QT_QPA_PLATFORM=xcb to .deb launcher script - Force XCB platform in main.cpp on Linux before QApplication init - Bump version to 2.7.4 Co-authored-by: Cursor <cursoragent@cursor.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
/usr/local/lib/OGREinplugins.cfg, but the .deb installs plugins to/usr/lib/qtmesheditor/. Ogre couldn't load any render system, resulting in a black viewport.externalWindowHandlerequires X11 window IDs. Under Wayland,winId()returns an incompatible surface handle. AddedQT_QPA_PLATFORM=xcbboth inmain.cppand the .deb launcher script.Root cause
The render timer in
MainWindowcallsrenderOneFrame()and catches exceptions — when the render system fails to load (wrong plugin path) or materials fail (if GL3Plus is used without shaders), the exception handler silently stops the timer. The viewport stays black with no visible error.Test plan
plugins.cfgpathMade with Cursor