Not signed in
Copyright © 2026 Unity Technologies
The fact that the error is reported too many times is a separate issue and will be dealt with in a different fix. The fact that this caused a crash however is what is being fixed here and has to do with JNI objects never being garbage collected because they belonged to a scope that was never exited. Better scoping of the background work done for video playback has repaired the crash.
Version no longer maintained.
To reproduce:
1. Build and run attached project "NewVideoPlayer-AssetBundles-master.zip"
2. Leave the app running for ~60 seconds
Result: application crashes after numerous of failed OpenExtractor translation attempts
Reproduced in: 2021.2.15f1, 2022.1.0b7, 2022.2.0a7
Reproduced on devices:
• VLNQA00010 - Samsung Galaxy S8 USA (SM-G950U), CPU: Snapdragon 835 MSM8998, GPU: Adreno 540, OS: 7.0.0
Not reproduced on devices:
• VLNQA00341 - Note20 Ultra 5G INT (SM-N986B), CPU: Exynos 990, GPU: Mali-G77, OS: 10
• VLNQA00267 - Samsung Galaxy S10+ (SM-G975F), CPU: Exynos 9 9820, GPU: Mali-G76, OS: 11
• VLNQA00377 - Google Pixel 5 (Pixel 5), CPU: Snapdragon 765/765G, GPU: Adreno 620, OS: 12
• VLNQA00230 - OnePlus 6T (ONEPLUS A6013), CPU: Snapdragon 845 SDM845, GPU: Adreno 630, OS: 9.0.0
Note1: full Logcat attached: "S8CrashVideoAB.txt"
Note2: log entry being spammed until crash:
Warn Unity AndroidVideoMedia: Error opening extractor: -10004
2022/02/12 18:31:38.943 15592 15702 Warn Unity AndroidVideoMedia::OpenExtractor could not translate archive:/CAB-280fb9a22bf770dc8c09a95af93bd355/CAB-280fb9a22bf770dc8c09a95af93bd355.resource to local file. Make sure file exists, is on disk (not in memory) and not compressed.
Note3: crash stack trace:
0001/01/01 00:00:00.000 -1 -1 Info --------- beginning of crash
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime FATAL EXCEPTION: UnityMain
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Process: com.DefaultCompany.NewVideoPlayerAssetBundles, PID: 20685
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime java.lang.Error: FATAL EXCEPTION [UnityMain]
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Unity version : 2022.2.0a7
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Device model : samsung SM-G950U
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Device fingerprint: samsung/dreamqltesq/dreamqltesq:7.0/NRD90M/G950USQU1AQC8:user/release-keys
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime CPU supported ABI : [arm64-v8a, armeabi-v7a, armeabi]
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Build Type : Development
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Scripting Backend : Mono
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Libs loaded from : lib/arm
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Strip Engine Code : false
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Version '2022.2.0a7 (7eabc79ef009)', Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a'
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Build fingerprint: 'samsung/dreamqltesq/dreamqltesq:7.0/NRD90M/G950USQU1AQC8:user/release-keys'
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Revision: '12'
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime ABI: 'arm'
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime Timestamp: 2022-03-07 14:49:17+0200
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime pid: 20685, tid: 20741, name: Thread-19 >>> com.DefaultCompany.NewVideoPlayerAssetBundles <<<
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime uid: 10259
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime r0 00000000 r1 00005105 r2 00000006 r3 00000008
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime r4 ba586978 r5 00000006 r6 ba586920 r7 0000010c
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime r8 00000000 r9 e7d99774 r10 000003b2 r11 e7d5ef3f
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime ip 0000000b sp ba584c28 lr e8471ba7 pc e84744a0
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime backtrace:
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #00 pc 0004b4a0 /system/lib/libc.so (tgkill+12) (BuildId: 845520506b27049fd749d66ed72781f4)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #01 pc 00048ba3 /system/lib/libc.so (pthread_kill+34) (BuildId: 845520506b27049fd749d66ed72781f4)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #02 pc 0001e1b9 /system/lib/libc.so (raise+10) (BuildId: 845520506b27049fd749d66ed72781f4)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #03 pc 000197a5 /system/lib/libc.so (__libc_android_abort+34) (BuildId: 845520506b27049fd749d66ed72781f4)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #04 pc 00017540 /system/lib/libc.so (__bionic_clone) (BuildId: 845520506b27049fd749d66ed72781f4)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #05 pc 00342ccd /system/lib/libart.so (art::Runtime::Abort()+252) (BuildId: f952d647e34e02b4dd97e4de828d9754)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #06 pc 000b6b57 /system/lib/libart.so (art::LogMessage::~LogMessage()+870) (BuildId: f952d647e34e02b4dd97e4de828d9754)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #07 pc 001d53b9 /system/lib/libart.so (art::IndirectReferenceTable::Add(unsigned int, art::mirror::Object*)+308) (BuildId: f952d647e34e02b4dd97e4de828d9754)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #08 pc 00354fb5 /system/lib/libart.so (_jobject* art::Thread::CreateInternalStackTrace<false>(art::ScopedObjectAccessAlreadyRunnable const&) const+148) (BuildId: f952d647e34e02b4dd97e4de828d9754)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #09 pc 002cf109 /system/lib/libart.so (art::Throwable_nativeFillInStackTrace(_JNIEnv*, _jclass*)+28) (BuildId: f952d647e34e02b4dd97e4de828d9754)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime #10 pc 00584e35 /system/framework/arm/boot.oat
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libc.tgkill(tgkill:12)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libc.pthread_kill(pthread_kill:34)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libc.raise(raise:10)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libc._libc_android_abort(_libc_android_abort:34)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libc._bionic_clone(_bionic_clone:0)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libart.art::Runtime::Abort()(Abort:252)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libart.art::LogMessage::~LogMessage()(~LogMessage:870)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libart.art::IndirectReferenceTable::Add(unsigned int, art::mirror::Object*)(Add:308)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libart._jobject* art::Thread::CreateInternalStackTrace<false>(art::ScopedObjectAccessAlreadyRunnable const&) const(CreateInternalStackTrace<false>:148)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at libart.art::Throwable_nativeFillInStackTrace(_JNIEnv*, _jclass*)(Throwable_nativeFillInStackTrace:28)
2022/03/07 14:49:18.101 20685 20701 Error AndroidRuntime at boot.0x584e35(Native Method)
Sign in to see your voted issues