Seems like the method below (in android-activity/src/game_activity/mod.rs) takes a pointer to the NativeAppGlue (self.native_app) struct, which may be dropped before the AssetManager itself.
pub fn asset_manager(&self) -> AssetManager {
unsafe {
let app_ptr = self.native_app.as_ptr();
let am_ptr = NonNull::new_unchecked((*(*app_ptr).activity).assetManager);
AssetManager::from_ptr(am_ptr)
}
}
calling an asset manager method such as open is causing a SIGABRT with a message of FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xb400007643074c50)
Seems like the method below (in
android-activity/src/game_activity/mod.rs) takes a pointer to theNativeAppGlue(self.native_app) struct, which may be dropped before theAssetManageritself.calling an asset manager method such as
openis causing a SIGABRT with a message ofFORTIFY: pthread_mutex_lock called on a destroyed mutex (0xb400007643074c50)