Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

try catch not working when publishing aar from master #1857

Open
guptaprnv opened this issue Nov 22, 2023 · 1 comment
Open

try catch not working when publishing aar from master #1857

guptaprnv opened this issue Nov 22, 2023 · 1 comment

Comments

@guptaprnv
Copy link

we were getting crash in android in react native 72.6
so we tried to match soloader versions in both and using custom aar from master
but issue currently happening is try catch blocks not working of spectrum
i have added configuration in spectrum build.gradle

externalNativeBuild {
cmake {
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_shared'
cppFlags "-frtti -fexceptions"
targets 'spectrum'
}
}

but still try catch blocks not working
specification
react-native - 0.72.6
soloader - 0.10.5
master branch spectrum

@guptaprnv
Copy link
Author

guptaprnv commented Nov 22, 2023

crash log
internalThrowError(char const*, unsigned int, folly::Range<char const*> const&, char const*, ...)+240) (BuildId: 3e2266b2be9ec657d8b6bb152c7ca3d3a0fba249)
2023-11-22 20:36:10.543 32130-32130 DEBUG pid-32130 A #8 pc 000000000004ca7c /data/app/~~153yHTZ-KUbEAyMT-m8U9A==/com.company.app-rev2r9HasOx2J2TDjP_Ryg==/base.apk!libspectrumcpp.so (facebook::spectrum::image::metadata::Entry::MemoryLayout::extractValue(facebook::spectrum::image::metadata::ReadContext const&) const+408) (BuildId: 3e2266b2be9ec657d8b6bb152c7ca3d3a0fba249)
2023-11-22 20:36:10.543 32130-32130 DEBUG pid-32130 A #9 pc 000000000004e9d8 /data/app/~~153yHTZ-KUbEAyMT-m8U9A==/com.company.app-rev2r9HasOx2J2TDjP_Ryg==/base.apk!libspectrumcpp.so (facebook::spectrum::image::metadata::Entry::parseFromAddressIntoTagMap(facebook::spectrum::image::metadata::ReadContext const&, unsigned char const*, std::__ndk1::map<facebook::spectrum::image::metadata::Entry::Tag, facebook::spectrum::image::metadata::Entry, std::__ndk1::lessfacebook::spectrum::image::metadata::Entry::Tag, std::__ndk1::allocator<std::__ndk1::pair<facebook::spectrum::image::metadata::Entry::Tag const, facebook::spectrum::image::metadata::Entry> > >&)+200) (BuildId: 3e2266b2be9ec657d8b6bb152c7ca3d3a0fba249)
2023-11-22 20:36:10.543 32130-32130 DEBUG pid-32130 A #10 pc 000000000004a7ec /data/app/~~153yHTZ-KUbEAyMT-m8U9A==/com.company.app-rev2r9HasOx2J2TDjP_Ryg==/base.apk!libspectrumcpp.so (facebook::spectrum::image::metadata::Entries::read(void const*, unsigned long)+240) (BuildId: 3e2266b2be9ec657d8b6bb152c7ca3d3a0fba249)
2023-11-22 20:36:10.543 32130-32130 DEBUG pid-32130 A #11 pc 000000000004a648 /data/app/~~153yHTZ-KUbEAyMT-m8U9A==/com.company.app-rev2r9HasOx2J2TDjP_Ryg==/base.apk!libspectrumcpp.so (facebook::spectrum::image::metadata::Entries::Entries(std::__ndk1::vector<facebook::spectrum::core::DataRange, std::__ndk1::allocatorfacebook::spectrum::core::DataRange > const&)+108) (BuildId: 3e2266b2be9ec657d8b6bb152c7ca3d3a0fba249)
2023-11-22 20:36:10.543 32130-32130 DEBUG pid-32130 A #12 pc 0000000000047e44 /data/app/~~153yHTZ-KUbEAyMT-m8U9A==/com.company.app-rev2r9HasOx2J2TDjP_Ryg==/base.apk!libspectrumcpp.so (facebook::spectrum::image::Metadata::Metadata(std::__ndk1::vector<facebook::spectrum::core::DataRange, std::__ndk1::allocatorfacebook::spectrum::core::DataRange > const&, std::__ndk1::vector<facebook::spectrum::core::DataRange, std::__ndk1::allocatorfacebook::spectrum::core::DataRange > const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > const&)+28) (BuildId: 3e2266b2be9ec657d8b6bb152c7ca3d3a0fba249)
2023-11-22 20:36:10.543 32130-32130 DEBUG pid-32130 A #13 pc 0000000000016d50 /data/app/~~153yHTZ-KUbEAyMT-m8U9A==/com.company.app-rev2r9HasOx2J2TDjP_Ryg==/base.apk!libspectrumpluginjpeg.so (facebook::spectrum::plugins::jpeg::readMetadata(jpeg_decompress_struct&)+432) (BuildId: af458e049704aba8300f2a2ee46993b8a9a87538)
2023-11-22 20:36:10.543 32130-32130 DEBUG pid-32130 A #14 pc 000000000001535c /data/app/~~153yHTZ-KUbEAyMT-m8U9A==/com.company.app-rev2r9HasOx2J2TDjP_Ryg==/base.apk!libspectrumpluginjpeg.so (facebook::spectrum::plugins::jpeg::LibJpegDecompressor::_imageSpecification(facebook::spectrum::image::Size const&, facebook::spectrum::image::pixel::Specification const&)+72) (BuildId: af458e049704aba8300f2a2ee46993b8a9a87538)
2023-11-22 20:36:10.543 32130-32130 DEBUG pid-32130 A #15 pc 0000000000015a3c /data/app/~~153yHTZ-KUbEAyMT-m8U9A==/com.company.app-rev2r9HasOx2J2TDjP_Ryg==/base.apk!libspectrumpluginjpeg.so (facebook::spectrum::plugins::jpeg

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant