Crashing on iOS: [ALAssetRepresentation release]: message sent to deallocated instance, [GstAssetsLibrary .cxx_destruct] XCode 9.2, iOS 11.2 (15C107)
Submitted by Louis Le
Link to original bug (#793383)
Description
I'm stuck on crashing issue: message sent to deallocated instance zombie object with GStreamer tutorial project for iOS with this version of XCode, the app crashes when trying to unref the player or pipeline after playing a AVI file saved in Camera Roll using ALAsset with prefix:
assets-library://asset/asset.AVI?id=ID_OF_AVI_FILE&ext=AVI.
Crash point: typefind:sink -> [GstAssetsLibrary .cxx_destruct]
Crash callStackSymbols
<_NSCallStackArray 0x604000452180>
(
0 ??? 0x00000001226dbf1c 0x0 + 4872584988,
1 Tutorial 5 0x0000000103211300 main + 0,
2 libobjc.A.dylib 0x000000010bbb6912 _ZL27object_cxxDestructFromClassP11objc_objectP10objc_class + 127,
3 libobjc.A.dylib 0x000000010bbc21a4 objc_destructInstance + 124,
4 libobjc.A.dylib 0x000000010bbc21db object_dispose + 22,
5 AssetsLibrary 0x00000001088a6acd -[ALAssetsLibrary dealloc] + 98,
6 libobjc.A.dylib 0x000000010bbcca2e _ZN11objc_object17sidetable_releaseEb + 202,
7 libobjc.A.dylib 0x000000010bbcd178 _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 860,
8 libobjc.A.dylib 0x000000010bbce31b _ZN12_GLOBAL__N_119AutoreleasePoolPage11tls_deallocEPv + 127,
9 libsystem_pthread.dylib 0x000000010ca0f27e _pthread_tsd_cleanup + 534,
10 libsystem_pthread.dylib 0x000000010ca0efbd _pthread_exit + 79,
11 libsystem_pthread.dylib 0x000000010ca0d6cc pthread_sigmask + 0,
12 libsystem_pthread.dylib 0x000000010ca0d56d _pthread_body + 0,
13 libsystem_pthread.dylib 0x000000010ca0cc5d thread_start + 13
)
https://github.com/sdroege/gst-player
https://github.com/GStreamer/gst-docs/tree/master/examples/tutorials/xcode%20iOS
Version: 1.12.3