videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
108 stars 14 forks source link

`GLESTextureInput` crashing when ending recording #54

Closed Tillmania closed 11 months ago

Tillmania commented 1 year ago

Crash Logs: ` pid: 0, tid: 28802 >>> com.gravytraingames.santatrackerlitereal <<<

backtrace:

00 pc 0x0000000000053794 /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)

01 pc 0x00000000000555f4 /apex/com.android.runtime/lib64/bionic/libc.so (__fortify_fatal(char const*, ...)+128)

02 pc 0x00000000000bc948 /apex/com.android.runtime/lib64/bionic/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t, char const)+68)

03 pc 0x00000000000bc7c8 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+288)

04 pc 0x000000000038aa34 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libVideoKit.so (std::__ndk1::mutex::lock()+12)

05 pc 0x0000000000137958 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libVideoKit.so (VideoKit::Recorders::GLESTextureInput::CommitFrame(unsigned int, void*)+196)

06 pc 0x00000000030557d0 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libil2cpp.so

07 pc 0x0000000003062f6c /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libil2cpp.so

08 pc 0x0000000003062710 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libil2cpp.so

09 pc 0x000000000146ba70 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libil2cpp.so

10 pc 0x0000000000b16fe4 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libunity.so

11 pc 0x0000000000d11474 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libunity.so

12 pc 0x0000000000d09734 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libunity.so

13 pc 0x0000000000d0947c /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libunity.so

14 pc 0x000000000061ad30 /data/app/~~YJqPiwwQP1ZSNnTUOkt-nw==/com.gravytraingames.santatrackerlitereal-7ApI4ws5YfHt5YawhKIF4Q==/lib/arm64/libunity.so

15 pc 0x00000000000bb6e8 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)

16 pc 0x0000000000054fdc /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)`

Tillmania commented 1 year ago

Any word on a fix for this? My crash rate has gone through the roof on Android due to this bug.

olokobayusuf commented 1 year ago

@Tillmania the fix for this is slated for 0.0.15. Aiming to release on Monday.

olokobayusuf commented 1 year ago

Fixed in VideoKit 0.0.15.

Tillmania commented 1 year ago

Not fixed in 0.15. Still getting a ton of crash reports in production on Android.

olokobayusuf commented 1 year ago

Same crash logs? Can you share the most recent crash logs? Re-opening this issue.

Tillmania commented 1 year ago

pid: 0, tid: 22839 >>> com.gravytraingames.santatrackerlitereal <<<

backtrace:

00 pc 0x000000000008cc54 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)

01 pc 0x000000000008eadc /apex/com.android.runtime/lib64/bionic/libc.so (__fortify_fatal(char const*, ...)+124)

02 pc 0x00000000000fcbdc /apex/com.android.runtime/lib64/bionic/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t, char const)+60)

03 pc 0x00000000000fca68 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+248)

04 pc 0x000000000038fae4 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libVideoKit.so (std::__ndk1::mutex::lock()+12) (BuildId: 34121e153b97ebe651d8ec66c878f3e9e865437c)

05 pc 0x0000000000139424 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libVideoKit.so (VideoKit::Recorders::GLESTextureInput::CommitFrame(unsigned int, void*)+204) (BuildId: 34121e153b97ebe651d8ec66c878f3e9e865437c)

06 pc 0x00000000030f0bd0 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libil2cpp.so (BuildId: e9ffcb7dd8f5c79e)

07 pc 0x00000000030fb664 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libil2cpp.so (BuildId: e9ffcb7dd8f5c79e)

08 pc 0x00000000030fab1c /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libil2cpp.so (BuildId: e9ffcb7dd8f5c79e)

09 pc 0x00000000014a8800 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libil2cpp.so (BuildId: e9ffcb7dd8f5c79e)

10 pc 0x0000000000b1d1e4 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libunity.so (BuildId: 771aa3915dae7660)

11 pc 0x0000000000d19724 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libunity.so (BuildId: 771aa3915dae7660)

12 pc 0x0000000000d119e4 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libunity.so (BuildId: 771aa3915dae7660)

13 pc 0x0000000000d1172c /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libunity.so (BuildId: 771aa3915dae7660)

14 pc 0x000000000061ee20 /data/app/~~YE7jyaszg-iK9Ko0rx8xBw==/com.gravytraingames.santatrackerlitereal-xA8qjDt4LTMdoxTdacw96Q==/lib/arm64/libunity.so (BuildId: 771aa3915dae7660)

15 pc 0x00000000000fb7cc /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)

16 pc 0x000000000008e490 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Tillmania commented 1 year ago

pid: 0, tid: 28074 >>> com.gravytraingames.santatrackerlitereal <<<

backtrace:

00 pc 0x000000000001d6b2 /system/lib/libc.so (abort+58)

01 pc 0x0000000000065bf3 /system/lib/libc.so (__fortify_fatal(char const*, ...)+26)

02 pc 0x00000000000653f5 /system/lib/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t, char const)+20)

03 pc 0x0000000000065323 /system/lib/libc.so (pthread_mutex_lock+214)

04 pc 0x000000000028f35d /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libVideoKit.so (std::__ndk1::mutex::lock()+4)

05 pc 0x00000000000dae39 /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libVideoKit.so (VideoKit::Recorders::GLESTextureInput::CommitFrame(unsigned int, void*)+164)

06 pc 0x0000000002beab7c /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libil2cpp.so

07 pc 0x0000000002bf7bbc /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libil2cpp.so

08 pc 0x0000000002bf6e64 /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libil2cpp.so

09 pc 0x0000000000a64a2c /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libil2cpp.so

10 pc 0x000000000075c288 /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libunity.so

11 pc 0x000000000094ef2f /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libunity.so

12 pc 0x0000000000948711 /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libunity.so

13 pc 0x000000000094848b /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libunity.so

14 pc 0x00000000003431fb /data/app/com.gravytraingames.santatrackerlitereal-AmoiWcOpCFszwRgOYf1sPQ==/lib/arm/libunity.so

15 pc 0x0000000000064985 /system/lib/libc.so (__pthread_start(void*)+22)

16 pc 0x000000000001e875 /system/lib/libc.so (__start_thread+24)

Tillmania commented 1 year ago

pid: 0, tid: 19435 >>> com.gravytraingames.santatrackerlitereal <<<

backtrace:

00 pc 0x0000000000052654 /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)

01 pc 0x00000000000544b4 /apex/com.android.runtime/lib64/bionic/libc.so (__fortify_fatal(char const*, ...)+128)

02 pc 0x00000000000bb808 /apex/com.android.runtime/lib64/bionic/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t, char const)+68)

03 pc 0x00000000000bb688 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+288)

04 pc 0x000000000038aa34 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libVideoKit.so (std::__ndk1::mutex::lock()+12) (BuildId: bea9e6a6c3e70d19829a52fe2be5095be6f8be64)

05 pc 0x0000000000137958 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libVideoKit.so (VideoKit::Recorders::GLESTextureInput::CommitFrame(unsigned int, void*)+196) (BuildId: bea9e6a6c3e70d19829a52fe2be5095be6f8be64)

06 pc 0x00000000030557d0 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libil2cpp.so (BuildId: 6dee55b5ed98b6c2)

07 pc 0x0000000003062f6c /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libil2cpp.so (BuildId: 6dee55b5ed98b6c2)

08 pc 0x0000000003062710 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libil2cpp.so (BuildId: 6dee55b5ed98b6c2)

09 pc 0x000000000146ba70 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libil2cpp.so (BuildId: 6dee55b5ed98b6c2)

10 pc 0x0000000000b16fe4 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libunity.so (BuildId: 8360cbc7d6990e0a)

11 pc 0x0000000000d11474 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libunity.so (BuildId: 8360cbc7d6990e0a)

12 pc 0x0000000000d09734 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libunity.so (BuildId: 8360cbc7d6990e0a)

13 pc 0x0000000000d0947c /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libunity.so (BuildId: 8360cbc7d6990e0a)

14 pc 0x000000000061ad30 /data/app/~~k2NbnocMUtjNle4V1Ugftw==/com.gravytraingames.santatrackerlitereal-6FdIDZ5_QBFMnMdQTPW6Ow==/lib/arm64/libunity.so (BuildId: 8360cbc7d6990e0a)

15 pc 0x00000000000ba5a8 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)

16 pc 0x0000000000053e9c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)

Tillmania commented 1 year ago

pid: 0, tid: 27244 >>> com.gravytraingames.santatrackerlitereal <<<

backtrace:

00 pc 0x00000000000174c2 /system/lib/libmediandk.so (AImageReader_getWindow+46)

01 pc 0x00000000000daf3d /data/app/~~YsGU_e6uJHLchhy4Pp9kyg==/com.gravytraingames.santatrackerlitereal-xAUarXpldYi6KhlJt9w-wA==/lib/arm/libVideoKit.so (VideoKit::Recorders::GLESTextureInput::Readback(void*)+32) (BuildId: 4f68a6d6221511b4426844694fdf0f6b41db8251)

02 pc 0x00000000000db477 /data/app/~~YsGU_e6uJHLchhy4Pp9kyg==/com.gravytraingames.santatrackerlitereal-xAUarXpldYi6KhlJt9w-wA==/lib/arm/libVideoKit.so (BuildId: 4f68a6d6221511b4426844694fdf0f6b41db8251)

03 pc 0x00000000000afc3f /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40)

04 pc 0x0000000000065ed1 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

Tillmania commented 1 year ago

pid: 0, tid: 8174 >>> com.gravytraingames.santatrackerlitereal <<<

backtrace:

00 pc 0x000000000002e994 /system/lib64/libmediandk.so (AImageReader_getWindow.cfi+28)

01 pc 0x0000000000139568 /data/app/~~4YeL9k7OEE8vJ5lqf_kH_w==/com.gravytraingames.santatrackerlitereal-1Hwk19r575N37uZMLK0cYQ==/lib/arm64/libVideoKit.so (VideoKit::Recorders::GLESTextureInput::Readback(void*)+64) (BuildId: 34121e153b97ebe651d8ec66c878f3e9e865437c)

02 pc 0x0000000000139c80 /data/app/~~4YeL9k7OEE8vJ5lqf_kH_w==/com.gravytraingames.santatrackerlitereal-1Hwk19r575N37uZMLK0cYQ==/lib/arm64/libVideoKit.so (BuildId: 34121e153b97ebe651d8ec66c878f3e9e865437c)

03 pc 0x00000000000b3338 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264)

04 pc 0x00000000000516c8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Tillmania commented 1 year ago

This issue is devastating my crash rate on Android. My project is heavily seasonal and over Xmas we expect a massive spike in users. Any word on a fix for this?

olokobayusuf commented 1 year ago

Waiting on feedback from VideoKit 0.0.16 alpha 2.

olokobayusuf commented 11 months ago

Fixed in VideoKit 0.0.16.