Unsolved Designer: "Qt Quick emulation layer crashed" on OpenSUSE
-
I'm trying to get the designer to work but I'm having no luck. The project builds and runs fine from QtCreator, but when I go to design mode, all I'm greeted with is this dialog:
Cannot open this QML document because of an error in the QML file: Go to error Line: 1: Qt Quick emulation layer crashed
The link just takes me to line 1 of the qml file and this happens on any project (examples as well as a freshly created project with no changes).
I'm running a fresh install from the unified linux installer in my home directory on OpenSUSE:{noformat} Qt 5.8.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb" OS: openSUSE Leap 42.1 (x86_64) [linux version 4.1.38-50-default] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX Environment: QEMU_AUDIO_DRV="pa" QT_IM_SWITCHER="imsw-multi" QT_SYSTEM_DIR="/usr/share/desktop-data" QT_IM_MODULE="xim" Features: QT_NO_EXCEPTIONS Library info: PrefixPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt DocumentationPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/doc HeadersPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/include LibrariesPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/lib LibraryExecutablesPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/libexec BinariesPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/bin PluginsPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/plugins ImportsPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/imports Qml2ImportsPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/qml ArchDataPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt DataPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt TranslationsPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/translations ExamplesPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/examples TestsPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt/tests SettingsPath: /home/fabian/Qt/Tools/QtCreator/lib/Qt Standard paths [*...* denote writable entry]: DesktopLocation: "Desktop" */home/fabian/Desktop* DocumentsLocation: "Documents" */home/fabian/Documents* FontsLocation: "Fonts" */home/fabian/.local/share/fonts* /home/fabian/.fonts ApplicationsLocation: "Applications" */home/fabian/.local/share/applications* /usr/share/applications MusicLocation: "Music" */home/fabian/Music* MoviesLocation: "Movies" */home/fabian/Videos* PicturesLocation: "Pictures" */home/fabian/Pictures* TempLocation: "Temporary Directory" */tmp* HomeLocation: "Home" */home/fabian* AppLocalDataLocation: "Application Data" */home/fabian/.local/share/QtProject/qtdiag* /usr/share/QtProject/qtdiag CacheLocation: "Cache" */home/fabian/.cache/QtProject/qtdiag* GenericDataLocation: "Shared Data" */home/fabian/.local/share* /usr/share RuntimeLocation: "Runtime" */run/user/1000* ConfigLocation: "Configuration" */home/fabian/.config* /etc/xdg DownloadLocation: "Download" */home/fabian/Downloads* GenericCacheLocation: "Shared Cache" */home/fabian/.cache* GenericConfigLocation: "Shared Configuration" */home/fabian/.config* /etc/xdg AppDataLocation: "Application Data" */home/fabian/.local/share/QtProject/qtdiag* /usr/share/QtProject/qtdiag AppConfigLocation: "Application Configuration" */home/fabian/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag File selectors (increasing order of precedence): en_US unix linux opensuse Network: Using "OpenSSL 1.0.1i-fips 6 Aug 2014", version: 0x1000109f Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition Style hints: mouseDoubleClickInterval: 400 mousePressAndHoldInterval: 800 startDragDistance: 11 startDragTime: 500 startDragVelocity: 0 keyboardInputInterval: 400 keyboardAutoRepeatRate: 30 cursorFlashTime: 1000 showIsFullScreen: 0 showIsMaximized: 0 passwordMaskDelay: 0 passwordMaskCharacter: U+25CF fontSmoothingGamma: 1 useRtlExtensions: 0 setFocusOnTouchRelease: 0 tabFocusBehavior: Qt::TabFocusBehavior(TabFocusAllControls) singleClickActivation: 0 Additional style hints (QPlatformIntegration): ReplayMousePressOutsidePopup: 0 Theme: Available : kde,/usr/share/xsessions/plasma5,generic Styles : breeze,Oxygen,fusion,windows Icon theme : breeze, breeze from /usr/share/icons,/usr/share/pixmaps System font : "Noto Sans" 10 Fonts: General font : "Noto Sans" 10 Fixed font : "Oxygen Mono" 9 Title font : "Arial" 12 Smallest font: "Arial" 12 Palette: WindowText: #ffffffff Button: #ff000000 Light: #ff000000 Midlight: #ff000000 Dark: #ff000000 Mid: #ff000000 Text: #ffffffff BrightText: #ffffffff ButtonText: #ffffffff Base: #ff000000 Window: #ff101010 Shadow: #ff000000 Highlight: #ff00316e HighlightedText: #ffffffff Link: #ff80b5ff LinkVisited: #ffc080ff AlternateBase: #ff0c0c0c NoRole: #ff000000 ToolTipBase: #ff000000 ToolTipText: #ffffffff Screens: 2, High DPI scaling: inactive # 0 "DVI-I-0" Depth: 24 Primary: yes Geometry: 1440x900+1920+0 Available: 1440x900+1920+0 Virtual geometry: 3360x1080+0+0 Available: 3360x1053+0+0 2 virtual siblings Physical size: 820x460 mm Refresh: 59 Hz Power state: 0 Physical DPI: 44.6049,49.6957 Logical DPI: 110,110 Subpixel_None DevicePixelRatio: 1 Pixel density: 0 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 # 1 "DVI-D-0" Depth: 24 Primary: no Geometry: 1920x1080+0+0 Available: 1920x1053+0+0 Virtual geometry: 3360x1080+0+0 Available: 3360x1053+0+0 2 virtual siblings Physical size: 531x299 mm Refresh: 60 Hz Power state: 0 Physical DPI: 91.8418,91.7458 Logical DPI: 110,110 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 LibGL Vendor: NVIDIA Corporation Renderer: GeForce GTX 760/PCIe/SSE2 Version: 4.5.0 NVIDIA 375.39 Shading language: 4.50 NVIDIA Format: Version: 4.5 Profile: 2 Swap behavior: 0 Buffer size (RGB): 8,8,8 Depth buffer: 24 Plugin information: + Android 4.2.1 AutoTest 4.2.1 AutotoolsProjectManager 4.2.1 BareMetal 4.2.1 + Bazaar 4.2.1 Beautifier 4.2.1 + BinEditor 4.2.1 + Bookmarks 4.2.1 + CMakeProjectManager 4.2.1 + CVS 4.2.1 ClangCodeModel 4.2.1 + ClangStaticAnalyzer 4.2.1 + ClassView 4.2.1 + ClearCase 4.2.1 + CodePaster 4.2.1 + Core 4.2.1 + CppEditor 4.2.1 + CppTools 4.2.1 + Debugger 4.2.1 + Designer 4.2.1 + DiffEditor 4.2.1 EmacsKeys 4.2.1 + FakeVim 4.2.1 + GLSLEditor 4.2.1 + GenericProjectManager 4.2.1 + Git 4.2.1 HelloWorld 4.2.1 + Help 4.2.1 + ImageViewer 4.2.1 Ios 4.2.1 + Macros 4.2.1 + Mercurial 4.2.1 ModelEditor 4.2.1 Nim 4.2.1 + Perforce 4.2.1 + ProjectExplorer 4.2.1 + PythonEditor 4.2.1 + QbsProjectManager 4.2.1 + QmakeAndroidSupport 4.2.1 + QmakeProjectManager 4.2.1 + QmlDesigner 4.2.1 + QmlJSEditor 4.2.1 + QmlJSTools 4.2.1 + QmlProfiler 4.2.1 + QmlProjectManager 4.2.1 + Qnx 4.2.1 + QtSupport 4.2.1 + RemoteLinux 4.2.1 + ResourceEditor 4.2.1 ScxmlEditor 4.2.1 + Subversion 4.2.1 + TaskList 4.2.1 + TextEditor 4.2.1 Todo 4.2.1 UpdateInfo 4.2.1 + Valgrind 4.2.1 + VcsBase 4.2.1 + Welcome 4.2.1 WinRt 4.2.1 Qt Creator 4.2.1 Based on Qt 5.8.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) From revision 7071b61e02 Built on Jan 20 2017 01:20:42 {noformat}
Thanks for any help in advance
PS: I posted this thread a couple minutes earlier but it somehow ended up in the testing area; if any mod who sees it can please delete that one
-
@fabi_ Do you happen to have a backtrace from the crash? It's hard to tell what might be going on otherwise.
My guess (and this is typical in linux) is that you have multiple Qt's installed and they are mixing libs. I.e. your OS, in this case OpenSUSE, installed it's Qt libraries from it's package manager, but then you also installed your own Qt.
I do this a lot with my Arch installation and it bites me sometimes. Only a guess though as it's hard to tell with no real information on the crash.
Another possibility has to do with opengl. I have had issues with Linux inside VMs that didn't have proper opengl support. Only with QtQuick stuff though. Again just a total shot in the dark as I don't have any real info to go on.
-
@fabi_ said in Designer: "Qt Quick emulation layer crashed" on OpenSUSE:
The link just takes me to line 1 of the qml file and this happens on any project (examples as well as a freshly created project with no changes).
I'm running a fresh install from the unified linux installer in my home directory on OpenSUSE:After re-reading your post, that line makes me think even more you are accidentally mixing Qt libs. It's very common. You can try
ldd
on your qt creator and see what it shows. Not guaranteed to catch it but should give you an idea. Another thing try launching your designer/creator with anLD_LIBRARY_PATH
that points to your custom installed Qt.And finally, you could try restricting access to the system Qt libs (this could affect your apps though if you're using KDE or Qt based apps).. I do a
chmod 000 <qtstuff>
when I want to narrow things down like this, then restore the permissions when I'm done.