ScoreSaber / scoresaber-quest

ScoreSaber, but for quest
MIT License
19 stars 7 forks source link

Random crashes with ScoreSaber installed #17

Closed ericswpark closed 11 months ago

ericswpark commented 11 months ago

Running BS 1.28.0 on Quest 3 with ScoreSaber enabled and I'm getting those random crashes:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2019.4.28f1 (1381962e9d08)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
Build fingerprint: 'oculus/eureka/eureka:12/SQ3A.220605.009.A1/49743630046900510:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2023-11-22 15:57:19-0500
pid: 2973, tid: 10373, name: UnityMain  >>> com.beatgames.beatsaber <<<
uid: 10101
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    x0  0000000000000000  x1  0000000000000000  x2  00000071886f9fc0  x3  0000006ebcd2ce40
    x4  0000000000000000  x5  0000000000000000  x6  0000000000000001  x7  0000000000000000
    x8  0000006f14907fb0  x9  000000000000002b  x10 00000070bd163000  x11 0000000000000000
    x12 00000071886f9fc8  x13 0000000000000001  x14 000000000000000b  x15 0000000000000000
    x16 00000070bce44818  x17 0000007216bb785c  x18 0000006e778d6000  x19 0000006f07408b40
    x20 0000006f07408b78  x21 0000000000000000  x22 0000000000000000  x23 0000006f06f7de60
    x24 0000006f14907cc0  x25 0000006f14907cc0  x26 0000006f14907cb8  x27 00000070ff9fbcc0
    x28 0000006f1480f000  x29 0000006f14906fa0
    sp  0000006f14906f70  lr  00000070ba560934  pc  00000070ba56093c

backtrace:
      #00 pc 000000000129a93c  /data/app/~~mwT83BlSL1xBov-Hq7hmDA==/com.beatgames.beatsaber-Qp8EIMw4yv0cWhPw7JSmlQ==/lib/arm64/libil2cpp.so (il2cpp::vm::Exception::PrepareExceptionForThrow(Il2CppException* param_1, MethodInfo* param_2)+72) (BuildId: c65bdfb485308ac2a361e55829441f774c69021b)
      #01 pc 0000000001299550  /data/app/~~mwT83BlSL1xBov-Hq7hmDA==/com.beatgames.beatsaber-Qp8EIMw4yv0cWhPw7JSmlQ==/lib/arm64/libil2cpp.so (il2cpp::vm::Exception::Raise(Il2CppException* param_1, MethodInfo* param_2)+16) (BuildId: c65bdfb485308ac2a361e55829441f774c69021b)
      #02 pc 00000000012a9630  /data/app/~~mwT83BlSL1xBov-Hq7hmDA==/com.beatgames.beatsaber-Qp8EIMw4yv0cWhPw7JSmlQ==/lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::RaiseExecutionEngineExceptionIfMethodIsNotFound(MethodInfo* param_1)+260) (BuildId: c65bdfb485308ac2a361e55829441f774c69021b)
      #03 pc 00000000012a5548  /data/app/~~mwT83BlSL1xBov-Hq7hmDA==/com.beatgames.beatsaber-Qp8EIMw4yv0cWhPw7JSmlQ==/lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo* param_1, void* param_2, void** param_3, Il2CppException** param_4)+52) (BuildId: c65bdfb485308ac2a361e55829441f774c69021b)
      #04 pc 000000000bce3014  /data/data/com.beatgames.beatsaber/files/libcodegen.so (GlobalNamespace::IBeatmapLevel* il2cpp_utils::RunMethodRethrow<GlobalNamespace::IBeatmapLevel*, false, GlobalNamespace::IDifficultyBeatmap*>(GlobalNamespace::IDifficultyBeatmap*&&, MethodInfo const*)+108) (BuildId: 95192ba5ae8ca4fe9d26bdaf01a5aed5c5149fe8)
      #05 pc 000000000bce2d64  /data/data/com.beatgames.beatsaber/files/libcodegen.so (GlobalNamespace::IDifficultyBeatmap::get_level()+176) (BuildId: 95192ba5ae8ca4fe9d26bdaf01a5aed5c5149fe8)
      #06 pc 0000000000341698  /data/data/com.beatgames.beatsaber/files/libscoresaber.so (BuildId: d843592e7f46793234670cc20053639aa272cdbe)
      #07 pc 0000000000341a10  /data/data/com.beatgames.beatsaber/files/libscoresaber.so (BuildId: d843592e7f46793234670cc20053639aa272cdbe)
      #08 pc 000000000036d1f8  /data/data/com.beatgames.beatsaber/files/libscoresaber.so (BuildId: d843592e7f46793234670cc20053639aa272cdbe)
      #09 pc 00000000000dfdb0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+132) (BuildId: 8f3ced1030354b4f7518626f8f58e9ec)
      #10 pc 000000000008c3dc  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 8f3ced1030354b4f7518626f8f58e9ec)

I'm guessing it's from ScoreSaber from the backtrace mentioning libscoresaber.so but please let me know if this is wrong, thanks!

As for when it crashes, it's very intermittent and random. Sometimes it crashes when the song first loads up, sometimes it crashes when I choose a track in the list, sometimes it crashes on returning to the main menu from the pause menu, etc. There's no specific time duration required for a crash either – sometimes I'll go about an hour or two without crashes and then sometimes the game will crash after opening it up and playing a song.

ericswpark commented 11 months ago

Another crash: https://analyzer.questmodding.com/crashes/O4Ih This one occurred after pressing "restart" after completing a track. The game played for about 2 seconds before crashing.

Qwasyx commented 11 months ago

Most of these spots have been rewritten since the last released version, so there is a high likelyhood these specific issues won't be present in the next version. I will be closing the issue for now, if the issues persist after the next update (which is hopefully soon), feel free to post a new issue.