Hi,
I’m having a crash happen while cooking for Android ETC1 textures in OSX. To make it worse, the crash doesn’t fail the cooking and the editor will happily package the APK with missing content, messing up my automated build process.
This particular crash happens when trying to convert one of the engine’s own textures (VR_LaserPower_01, but I can’t see anything wrong with it), here’s the cook log:
The crash seems to be happening inside the Qualcomm texture converter library. This only happens in OSX, I can build for Android ETC1 using Windows just fine. This is the crash callstack:
SIGSEGV: invalid attempt to access memory at address 0x20
std::_Rb_tree<unsigned int, std::pair<unsigned int const, unsigned int>, std::_Select1st<std::pair<unsigned int const, unsigned int> >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, unsigned int> > >::_M_insert_unique(std::_Rb_tree_iterator<std::pair<unsigned int const, unsigned int> >, std::pair<unsigned int const, unsigned int> const&) Address = 0x4ece7f27 (filename not found) [in libTextureConverter.dylib]
SetupExpectedIntermediateForamts() Address = 0x4ecf5c91 (filename not found) [in libTextureConverter.dylib]
Qonvert() Address = 0x4ecf7e45 (filename not found) [in libTextureConverter.dylib]
FTextureFormatAndroid::CompressImage(FImage const&, FTextureBuildSettings const&, bool, FCompressedImage2D&) const Address = 0x40116935 (filename not found) [in UE4Editor-TextureFormatAndroid.dylib]
FTextureCompressorModule::BuildTexture(TArray<FImage, FDefaultAllocator> const&, TArray<FImage, FDefaultAllocator> const&, FTextureBuildSettings const&, TArray<FCompressedImage2D, FDefaultAllocator>&) Address = 0x2e54c712 (filename not found) [in UE4Editor-TextureCompressor.dylib]
FTextureCacheDerivedDataWorker::BuildTexture() Address = 0xf1676a7 (filename not found) [in UE4Editor-Engine.dylib]
FTextureCacheDerivedDataWorker::DoWork() Address = 0xf14a532 (filename not found) [in UE4Editor-Engine.dylib]
FAsyncTask<FTextureCacheDerivedDataWorker>::DoWork() Address = 0xf164ad1 (filename not found) [in UE4Editor-Engine.dylib]
FAsyncTask<FTextureCacheDerivedDataWorker>::Abandon() Address = 0xf16418e (filename not found) [in UE4Editor-Engine.dylib]
FQueuedThread::Run() Address = 0xc108eb8 (filename not found) [in UE4Editor-Core.dylib]
FRunnableThreadPThread::Run() Address = 0xc0ab1f8 (filename not found) [in UE4Editor-Core.dylib]
FRunnableThreadPThread::_ThreadProc(void*) Address = 0xc070c31 (filename not found) [in UE4Editor-Core.dylib]
_pthread_body() Address = 0x8d3d199d (filename not found) [in libsystem_pthread.dylib]
_pthread_body() Address = 0x8d3d191a (filename not found) [in libsystem_pthread.dylib]
thread_start() Address = 0x8d3cf351 (filename not found) [in libsystem_pthread.dylib]