ValveSoftware / steam-audio

Steam Audio
https://valvesoftware.github.io/steam-audio/
Apache License 2.0
2.32k stars 163 forks source link

Crashes on Quest 3 null pointer dereference #381

Open DrSanjeep opened 1 month ago

DrSanjeep commented 1 month ago

Unity 4.5.3 Settings :change Reflection Effect Type from Convolution to Parametric Build and run on Quest 3

2024/10/14 00:40:00.904 11436 11618 Error CRASH 2024/10/14 00:40:00.904 11436 11618 Error CRASH Version '2022.3.38f1 (c5d5a7410213)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a' 2024/10/14 00:40:00.904 11436 11618 Error CRASH Build fingerprint: 'oculus/eureka/eureka:12/SQ3A.220605.009.A1/50151600073800510:user/release-keys' 2024/10/14 00:40:00.904 11436 11618 Error CRASH Revision: '0' 2024/10/14 00:40:00.904 11436 11618 Error CRASH ABI: 'arm64' 2024/10/14 00:40:00.904 11436 11618 Error CRASH Timestamp: 2024-10-14 00:40:00.904124102+0100 2024/10/14 00:40:00.904 11436 11618 Error CRASH pid: 11436, tid: 11618, name: Audio Mixer Thr >>> ... <<< 2024/10/14 00:40:00.904 11436 11618 Error CRASH uid: 10109 2024/10/14 00:40:00.904 11436 11618 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr -------- 2024/10/14 00:40:00.904 11436 11618 Error CRASH Cause: null pointer dereference 2024/10/14 00:40:00.904 11436 11618 Error CRASH x0 b4000079deb4fcc0 x1 0000007a79cf2b78 x2 b400007bf9ef6808 x3 b400007bf9fc9460 2024/10/14 00:40:00.904 11436 11618 Error CRASH x4 b400007bf9fcd460 x5 0000000000000004 x6 0000000000000010 x7 7f7f7f7f7f7f7fff 2024/10/14 00:40:00.904 11436 11618 Error CRASH x8 0000000000000000 x9 b400007bf9ef6800 x10 b400007bf9fc9440 x11 0000007a79cf2b84 2024/10/14 00:40:00.904 11436 11618 Error CRASH x12 b400007bf9ef7808 x13 b400007bf9ef7808 x14 b400007bf9ef7808 x15 0000000000000000 2024/10/14 00:40:00.904 11436 11618 Error CRASH x16 0000007bf748e480 x17 0000007c9d884bc0 x18 0000000000000000 x19 b4000079deb4fcc0 2024/10/14 00:40:00.904 11436 11618 Error CRASH x20 0000007a79cf29e0 x21 0000007a79cf2a60 x22 0000007a79cf2aa0 x23 0000000000000000 2024/10/14 00:40:00.904 11436 11618 Error CRASH x24 0000007b7e1f3450 x25 0000007b7e1f3500 x26 0000000000000000 x27 0000007b46036070 2024/10/14 00:40:00.904 11436 11618 Error CRASH x28 0000007b460361e0 x29 0000007a79cf29b0 2024/10/14 00:40:00.904 11436 11618 Error CRASH lr 0000007bf73dcdc8 sp 0000007a79cf29a0 pc 0000000000000000 pst 0000000060001000

lakulish commented 1 month ago

@DrSanjeep Could you provide either a) detailed steps for reproducing this issue starting in an empty/minimal Unity project, or b) a minimal Unity project that reproduces this issue, or c) a crash dump file that we can inspect? We will try to reproduce this issue on our end, but more detailed information will help us a lot. Thanks!

DrSanjeep commented 1 month ago

@lakulish sorry where do i get a crash dump file on meta quest 3?

DrSanjeep commented 1 month ago

same issue with unity 6000.0.22f1

lakulish commented 1 month ago

@DrSanjeep You may be able to obtain a crash dump from your Meta developer dashboard. If that is not possible, you could provide us with a minimal Unity project or more detailed repro steps.

DrSanjeep commented 1 month ago

DrSanjeepNullDeref.zip the minimal project @lakulish ... it will not crash if you change to convolution mode, in case that helps. thanks

DrSanjeep commented 1 month ago

@lakulish as you can see, to crash on android, just enable Parametric

lakulish commented 1 month ago

@DrSanjeep I noticed a couple of issues with the way things are set up in the project you provided:

  1. There doesn't appear to be any baked reverb data in the probe batch. If you look in the Detailed Statistics section of the Steam Audio Probe Batch component, it only shows "Pathing". You will have to bake reverb from the Steam Audio Listener component, as described here.
  2. In the Steam Audio Settings, the option to save parametric reverb in the baked data is disabled. You will have to check "Bake Parametric" in the Steam Audio Settings.

Can you try the above two steps, i.e.: first enable "Bake Parametric" in the settings, then bake reverb for the listener, and see if that helps with the issue?

DrSanjeep commented 3 weeks ago

yes that was the first thing i tried

DrSanjeep commented 2 weeks ago

@lakulish is that it then? any plan to fix it, or improve the error handling?