Crash when testing on Google Play Console Pre-Launch Report
- Dominant language
- C#
- Stars
- 62
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
This should also happen on local Android Emulator as well as the Firebase Test Lab.
This crash happens on application start with Google Play's virtual (emulated devices). This particular stacktrace is on a Google Pixel 2 (1080x1920, Android 13, SDK 33, arm64-v8a, fr_FR). Google Play routinely tests submitted applications on virtual devices.
```
** Native crash **
backtrace:
#00 pc 0x000000000003c004 /lib/arm64/libunitytuningfork.so (tuningfork::FrameTimeMetricData* tuningfork::Session::GetData(tuningfork::MetricId)+116) (BuildId: 04852f825bd5553cd874f1a06c85fd27ef52a1b5)
#01 pc 0x000000000003bf4c /lib/arm64/libunitytuningfork.so (tuningfork::TuningForkImpl::FrameDeltaTimeNanos(unsigned short, std::__ndk1::chrono::duration >)+136) (BuildId: 04852f825bd5553cd874f1a06c85fd27ef52a1b5)
#02 pc 0x000000000003f8d8 /lib/arm64/libunitytuningfork.so (tuningfork::SwappyTraceWrapper::PostWaitCallback(void*, long, long)+84) (BuildId: 04852f825bd5553cd874f1a06c85fd27ef52a1b5)
#03 pc 0x0000000000911420 /lib/arm64/libunity.so (std::__ndk1::function::operator()(long, long) const) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#04 pc 0x000000000090ebec /lib/arm64/libunity.so (swappy::SwappyCommon::waitForNextFrame(swappy::SwappyCommon::SwapHandlers const&)) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#05 pc 0x000000000090f23c /lib/arm64/libunity.so (swappy::SwappyCommon::onPreSwap(swappy::SwappyCommon::SwapHandlers const&)) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#06 pc 0x000000000099c494 /lib/arm64/libunity.so (swappy::SwappyGL::swapInternal(void*, void*)) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#07 pc 0x000000000099c3d4 /lib/arm64/libunity.so (swappy::SwappyGL::swap(void*, void*)) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#08 pc 0x00000000003a94b8 /lib/arm64/libunity.so (WindowContextEGL::Present()) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#09 pc 0x00000000003a9454 /lib/arm64/libunity.so (ContextGLES::Present()) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#10 pc 0x0000000000660810 /lib/arm64/libunity.so (GfxDeviceGLES::PresentFrame()) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#11 pc 0x00000000007a9a24 /lib/arm64/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#12 pc 0x00000000007aa600 /lib/arm64/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#13 pc 0x00000000007a1988 /lib/arm64/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#14 pc 0x00000000002a1258 /lib/arm64/libunity.so (Thread::RunThreadWrapper(void*)) (BuildId: 265f7d22eb5549a35a45a39f2de531b50b1cd78b)
#15 pc 0x00000000000b63b0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#16 pc 0x00000000000530b8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```
Unity v2021.3.31f1
APT v1.5.2
Contributor guide
Research direction
Start by reproducing the startup crash on a local Android Emulator or Firebase Test Lab using the reported Unity v2021.3.31f1 and APT v1.5.2 versions. Inspect the reported libunitytuningfork.so entries, especially Session::GetData and FrameDeltaTimeNanos. Done means the application starts without this native crash in the reported virtual-device environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp, unity
- Domain
- mobile-dev, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100