Bug 485704

Summary: Haruna is likely to crash at startup after using other vulkan apps
Product: [Applications] Haruna Reporter: Antares0982
Component: genericAssignee: george fb <georgefb899>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version First Reported In: 1.0.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Antares0982 2024-04-17 22:41:50 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Haruna is likely to crash after using other apps (possibly google-chrome)

STEPS TO REPRODUCE
1. Use google-chrome for a while
2. Open haruna, it will not show up

OBSERVED RESULT
Starting haruna using cmdline

```
haruna a.mp4
```

crashes at start up

```
haruna: symbol lookup error: /nix/store/xyakg9mfdkvw2rjaa7nl5d8cb1sf27s7-mpv-with-scripts-0.37.0/lib/libmpv.so.2: undefined symbol: vkCreateXlibSurfaceKHR
```

solution:

```
LD_PRELOAD=/nix/store/3biyl1c3s7cqmdsjcx395vrybi1ha4kp-vulkan-loader-1.3.280.0/lib/libvulkan.so.1 haruna a.mp4
```

If use

```
LD_PRELOAD=/nix/store/9npqlq1q4632gwl65ips413r3s9hhkc4-google-chrome-123.0.6312.105/share/google/chrome/libvulkan.so.1 haruna a.mp4
```

haruna also crashes with same error.

EXPECTED RESULT
Open normally

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux nixos 6.8.5 (NixOS 24.05pre610435.1042fd8b148a)
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION