Fix crashes when running with QML disabled in VR#971
Fix crashes when running with QML disabled in VR#971HifiExperiments merged 8 commits intovircadia:masterfrom
Conversation
| void OffscreenUi::hideDesktopWindows() { | ||
| if (QThread::currentThread() != thread()) { | ||
| BLOCKING_INVOKE_METHOD(this, "hideDesktopWindows"); | ||
| if (_desktop) { |
There was a problem hiding this comment.
both crashes happens because when QML is disabled, we don't initialize _desktop
|
The following links are available:
build (macOS-latest, full) build (windows-latest, full) |
|
The crash still happens to me: |
|
It gets further now (I see the world loading and maybe even finish loading in the SteamVR preview window) but still crashes: |
|
The following links are available:
build (macOS-latest, full) build (ubuntu-18.04, android) |
|
Next crash: |
bb8c8c8 to
ff6f723
Compare
|
The following links are available:
build (macOS-latest, full) build (ubuntu-18.04, android) |
|
Green light from me. but that should be fixed by #937 |
|
Rebuilding now that Qt downloads required for Windows build are working again ... |
|
The following links are available: build (ubuntu-18.04, full)
build (windows-latest, full) build (ubuntu-18.04, android) |
|
How do you build with QML disabled? |
|
I would say it’s uncommon. it’s necessary to do GPU traces via tools like apitrace or nsight, per the related radars. given that it’s uncommon and that most of this PR just boils down to nullptr checks, I would say this is a low risk change, even though it touches a few files one way to disable it is by changing set(DISABLE_QML_OPTION OFF) to ON in CMakeLists.txt |
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
|
The following links are available:
build (macOS-latest, full) build (windows-latest, full) build (ubuntu-18.04, android) |
digisomni
left a comment
There was a problem hiding this comment.
I don't know what a DISABLE_QML build is supposed to fully look like but it didn't crash in desktop or VR on Windows.
It won't have any UI elements like the toolbar, apps, settings, etc. |
fixes #810
fixes #811
Test plan: