Airshipper Flatpak crash when using NVIDIA graphics card
Describe the bug
Whenever I start Airshipper (packaged with Flatpak, but I'm guessing this occurs with other packages as well), it crashes with the following message:
2022-09-17T12:18:26.098575Z INFO airshipper::logger: Setup terminal and file logging. path="/home/erazemk/.var/app/net.veloren.airshipper/data/airshipper" file="airshipper.log"
2022-09-17T12:18:26.098595Z INFO airshipper::cli: Visit https://book.veloren.net/ for an FAQ and Troubleshooting
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
2022-09-17T12:18:26.191881Z WARN wgpu_hal::vulkan::instance: Disabling presentation on 'Intel(R) UHD Graphics (TGL GT1)' (id 0x564639010600) because of NV Optimus (on Linux)
2022-09-17T12:18:26.202852Z WARN wgpu_hal::gles::adapter: Detected skylake derivative running on mesa i915. Clears to srgb textures will use manual shader clears.
2022-09-17T12:18:26.212380Z WARN wgpu_core::device: Surface does not support present mode: Mailbox, falling back to FIFO
2022-09-17T12:18:26.212433Z WARN wgpu_hal::gles::egl: Error in create_window_surface: BadAlloc
2022-09-17T12:18:26.212440Z ERROR airshipper::error: Airshipper panicked:
Error in Surface::configure: invalid surface: panicked at 'Error in Surface::configure: invalid surface', /run/build/airshipper/cargo/vendor/wgpu-0.12.0/src/backend/direct.rs:214:9
thread 'main' panicked at 'Error in Surface::configure: invalid surface', /run/build/airshipper/cargo/vendor/wgpu-0.12.0/src/backend/direct.rs:214:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The log included the exact same error message, so I didn't attach it on purpose.
Desktop (please complete the following information):
- OS: Linux, PopOS 22.04
- GPU: NVIDIA T1200 (Laptop GPU)
Additional context
I can still update and start Veloren normally with flatpak run net.veloren.airshipper run
, it's just that Airshipper itself (the GUI version) crashes.
Edited by Erazem Kokot