Debug address sanitizer double free - linux

Trying to debug an asan (address sanitizer) double free memory issue. I got this stack:
==4108==ERROR: AddressSanitizer: attempting double-free on 0x603000012610 in thread T0:
#0 0x7ffffe5212c0 in operator delete(void*) (/usr/lib/x86_64-linux-gnu/libasan.so.4.0.0+0xe12c0)
#1 0x7ffffc3806d4 in __gnu_cxx::new_allocator<char>::deallocate(char*, unsigned long) /usr/include/c++/7/ext/new_allocator.h:125
#2 0x7ffffc3806d4 in std::allocator_traits<std::allocator<char> >::deallocate(std::allocator<char>&, char*, unsigned long) /usr/include/c++/7/bits/alloc_traits.h:462
#3 0x7ffffc3806d4 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy(unsigned long) /usr/include/c++/7/bits/basic_string.h:226
#4 0x7ffffc3806d4 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose() /usr/include/c++/7/bits/basic_string.h:221
#5 0x7ffffc3806d4 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() /usr/include/c++/7/bits/basic_string.h:647
#6 0x7ffffc3806d4 in void __gnu_cxx::new_allocator<std::_List_node<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::destroy<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) /usr/include/c++/7/ext/new_allocator.h:140
#7 0x7ffffc3806d4 in void std::allocator_traits<std::allocator<std::_List_node<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::destroy<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::allocator<std::_List_node<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) /usr/include/c++/7/bits/alloc_traits.h:487
#8 0x7ffffc3806d4 in std::__cxx11::_List_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_clear() /usr/include/c++/7/bits/list.tcc:76
#9 0x7ffffc381327 in std::__cxx11::_List_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~_List_base() /usr/include/c++/7/bits/stl_list.h:442
#10 0x7ffffc381327 in std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~list() /usr/include/c++/7/bits/stl_list.h:733
#11 0x7ffffc381327 in std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::~pair() /usr/include/c++/7/bits/stl_pair.h:208
#12 0x7ffffc381327 in void __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > >::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*) /usr/include/c++/7/ext/new_allocator.h:140
#13 0x7ffffc381327 in void std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > > >::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >(std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > >&, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >*) /usr/include/c++/7/bits/alloc_traits.h:487
#14 0x7ffffc381327 in std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > >::_M_destroy_node(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >*) /usr/include/c++/7/bits/stl_tree.h:650
#15 0x7ffffc381327 in std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > >::_M_drop_node(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >*) /usr/include/c++/7/bits/stl_tree.h:658
#16 0x7ffffc381327 in std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > >::_M_erase(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >*) /usr/include/c++/7/bits/stl_tree.h:1858
#17 0x7ffffc38131a in std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > >::_M_erase(std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::list<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >*) /usr/include/c++/7/bits/stl_tree.h:1856
#18 0x7ffffd173614 in __cxa_finalize (/lib/x86_64-linux-gnu/libc.so.6+0x43614)
#19 0x7ffffc325ef2 (/home/ghita/wk/ah-sdk/ah/build/ah-linux-ubuntu-1804/debug/ah-sdk-dialog/ah.so+0x82ef2)
0x603000012610 is located 0 bytes inside of 24-byte region [0x603000012610,0x603000012628)
freed by thread T0 here:
#0 0x7ffffe5212c0 in operator delete(void*) (/usr/lib/x86_64-linux-gnu/libasan.so.4.0.0+0xe12c0)
#1 0x7ffffe145ba4 in __gnu_cxx::new_allocator<char>::deallocate(char*, unsigned long) /usr/include/c++/7/ext/new_allocator.h:125
#2 0x7ffffe145ba4 in std::allocator_traits<std::allocator<char> >::deallocate(std::allocator<char>&, char*, unsigned long) /usr/include/c++/7/bits/alloc_traits.h:462
#3 0x7ffffe145ba4 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy(unsigned long) /usr/include/c++/7/bits/basic_string.h:226
#4 0x7ffffe145ba4 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose() /usr/include/c++/7/bits/basic_string.h:221
#5 0x7ffffe145ba4 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() /usr/include/c++/7/bits/basic_string.h:647
#6 0x7ffffe145ba4 in void __gnu_cxx::new_allocator<std::_List_node<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::destroy<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) /usr/include/c++/7/ext/new_allocator.h:140
#7 0x7ffffe145ba4 in void std::allocator_traits<std::allocator<std::_List_node<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::destroy<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::allocator<std::_List_node<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) /usr/include/c++/7/bits/alloc_traits.h:487
#8 0x7ffffe145ba4 in std::__cxx11::_List_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_clear() /usr/include/c++/7/bits/list.tcc:76
previously allocated by thread T0 here:
#0 0x7ffffe520448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4.0.0+0xe0448)
#1 0x7ffffe14175c in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag) /usr/include/c++/7/bits/basic_string.tcc:219
SUMMARY: AddressSanitizer: double-free (/usr/lib/x86_64-linux-gnu/libasan.so.4.0.0+0xe12c0) in operator delete(void*)
==4108==ABORTING
Thread 1 "app" hit Breakpoint 2, __sanitizer::Die () at ../../../../src/libsanitizer/sanitizer_common/sanitizer_termination.cc:49
49 ../../../../src/libsanitizer/sanitizer_common/sanitizer_termination.cc: No such file or directory.
Might be some global object or something, cannot figure out a way under debugger to detect the instance. Setting a breakpoint on __asan::ReportGenericError does not help.

Looking in the stack it can be seen that the type involved (in destruction) is std::pair<std::string, std::list<>>. Looking over the code where this is used solved the issue. If there are multiple type instances used in many different places it will be hard identifying though.

Related

Getting SIGSEGV error running app in physical device from android studio

I use to run an app in physical device from android studio. In the past it has run well but suddenly it crashes in a different place or process and shows this error in de console.
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe18ffff0 in tid 24300 (arch_disk_io_2), pid 24164 (ample.comprasmu)
Logcat console
2022-10-27 21:18:26.463 24442-24442/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022-10-27 21:18:26.463 24442-24442/? A/DEBUG: Build fingerprint: 'Redmi/angelica_global/angelica:10/QP1A.190711.020/V12.0.4.0.QCRMIXM:user/release-keys'
2022-10-27 21:18:26.463 24442-24442/? A/DEBUG: Revision: '0'
2022-10-27 21:18:26.463 24442-24442/? A/DEBUG: ABI: 'arm'
2022-10-27 21:18:26.464 24442-24442/? A/DEBUG: Timestamp: 2022-10-27 21:18:26-0500
2022-10-27 21:18:26.464 24442-24442/? A/DEBUG: pid: 24164, tid: 24300, name: arch_disk_io_2 >>> com.example.comprasmu <<<
2022-10-27 21:18:26.464 24442-24442/? A/DEBUG: uid: 10373
2022-10-27 21:18:26.464 24442-24442/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe18ffff0
2022-10-27 21:18:26.464 24442-24442/? A/DEBUG: r0 00000001 r1 e1900000 r2 e1900000 r3 e1900000
2022-10-27 21:18:26.464 24442-24442/? A/DEBUG: r4 00000001 r5 bffad730 r6 12dc2290 r7 00000000
2022-10-27 21:18:26.464 24442-24442/? A/DEBUG: r8 be1bbcc0 r9 ec091260 r10 ec091260 r11 00000000
2022-10-27 21:18:26.464 24442-24442/? A/DEBUG: ip ff000000 sp be1bbbc8 lr e9e45299 pc e9f14af8
2022-10-27 21:18:26.691 24442-24442/? A/DEBUG: backtrace:
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #00 pc 001deaf8 /apex/com.android.runtime/lib/libart.so (art::IndirectReferenceTable::Add(art::IRTSegmentState, art::ObjPtr<art::mirror::Object>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*)+128) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #01 pc 0010f295 /apex/com.android.runtime/lib/libart.so (_jobject* art::JNIEnvExt::AddLocalReference<_jobject*>(art::ObjPtr<art::mirror::Object>)+32) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #02 pc 001ad375 /apex/com.android.runtime/lib/libart.so (art::gc::Heap::AddFinalizerReference(art::Thread*, art::ObjPtr<art::mirror::Object>*)+448) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #03 pc 0021517d /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+1444) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #04 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #05 pc 0042ece0 /data/app/com.example.comprasmu-2ruIRpNquGRxsx-2QC7_IA==/oat/arm/base.vdex (androidx.sqlite.db.framework.FrameworkSQLiteDatabase$1.newCursor)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #06 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #07 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #08 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #09 pc 002191e7 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17934) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #10 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #11 pc 0036a608 /system/framework/framework.jar (android.database.sqlite.SQLiteDirectCursorDriver.query)
2022-10-27 21:18:26.692 24442-24442/? A/DEBUG: #12 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #13 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #14 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #15 pc 002191e7 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17934) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #16 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #17 pc 00006930 [anon:dalvik-/system/framework/framework.jar-transformed-transformed-transformed-transformed-transformed-transformed-transformed-transformed] (android.database.sqlite.SQLiteDatabase.rawQueryWithFactory)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #18 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #19 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #20 pc 0020cff1 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+500) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #21 pc 0021910f /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17718) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #22 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #23 pc 00006908 [anon:dalvik-/system/framework/framework.jar-transformed-transformed-transformed-transformed-transformed-transformed-transformed-transformed] (android.database.sqlite.SQLiteDatabase.rawQueryWithFactory)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #24 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #25 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #26 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #27 pc 0021918b /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17842) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #28 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.693 24442-24442/? A/DEBUG: #29 pc 0042ed50 /data/app/com.example.comprasmu-2ruIRpNquGRxsx-2QC7_IA==/oat/arm/base.vdex (androidx.sqlite.db.framework.FrameworkSQLiteDatabase.query)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #30 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #31 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #32 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #33 pc 002191e7 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17934) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #34 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #35 pc 004287ce /data/app/com.example.comprasmu-2ruIRpNquGRxsx-2QC7_IA==/oat/arm/base.vdex (androidx.room.RoomDatabase.query)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #36 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #37 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #38 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #39 pc 0021918b /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17842) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #40 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #41 pc 0042aa56 /data/app/com.example.comprasmu-2ruIRpNquGRxsx-2QC7_IA==/oat/arm/base.vdex (androidx.room.util.DBUtil.query)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #42 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #43 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #44 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #45 pc 00217dfb /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+12834) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #46 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #47 pc 009b4ba6 /data/app/com.example.comprasmu-2ruIRpNquGRxsx-2QC7_IA==/oat/arm/base.vdex (com.example.comprasmu.data.dao.ListaCompraDetalleDao_Impl$10.call)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #48 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.694 24442-24442/? A/DEBUG: #49 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #50 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #51 pc 0021918b /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17842) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #52 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #53 pc 009b4b98 /data/app/com.example.comprasmu-2ruIRpNquGRxsx-2QC7_IA==/oat/arm/base.vdex (com.example.comprasmu.data.dao.ListaCompraDetalleDao_Impl$10.call)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #54 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #55 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #56 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #57 pc 002191e7 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17934) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #58 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #59 pc 004296a0 /data/app/com.example.comprasmu-2ruIRpNquGRxsx-2QC7_IA==/oat/arm/base.vdex (androidx.room.RoomTrackingLiveData$1.run)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #60 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #61 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #62 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #63 pc 002191e7 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17934) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #64 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #65 pc 001f81ec /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor.runWorker)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #66 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #67 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #68 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #69 pc 0021918b /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17842) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.695 24442-24442/? A/DEBUG: #70 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #71 pc 001f7034 /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #72 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #73 pc 001f0b49 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #74 pc 0020c335 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #75 pc 002191e7 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+17934) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #76 pc 000dd075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #77 pc 000ea9d0 /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #78 pc 001ec34d /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.2364510287003646451+392) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #79 pc 001f0a69 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+124) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #80 pc 00417929 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+808) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #81 pc 000dc5a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #82 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #83 pc 0042ddb7 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #84 pc 000dffb7 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #85 pc 0036fb57 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #86 pc 00370849 /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+304) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #87 pc 003a1307 /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+978) (BuildId: c7bce34c8978a77e2473478cd6c52893)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #88 pc 000a6293 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: af31ec96b35fedca378e07659b30896c)
2022-10-27 21:18:26.696 24442-24442/? A/DEBUG: #89 pc 00060803 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: af31ec96b35fedca378e07659b30896c)
I can't find the error. The celphone is a redmi xiaomi. Any idea?

Liferay 7.4 - Error when deploy osgi fragment

I've made a osgi fragment for the product navigation taglib.
This is my bnd.bnd :
Bundle-Name: MyControlMenu
Bundle-SymbolicName: mycontrolmenu
Fragment-Host: com.liferay.product.navigation.taglib;bundle-version="6.0.22"
-jsp: *.jsp,*.jspf,*.jspx
-metatype: *
-plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin
-plugin.metatype: com.liferay.ant.bnd.metatype.MetatypePlugin
-plugin.resourcebundle: com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin
-plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin
-sass: *
Portal-Bundle-Version: 7.4.3.15
I have only one jsp : /control_menu/page.jsp (I let the native implementation)
But when i deploy this osgi fragment I'm getting the following error :
2022-03-16 09:32:56.237 ERROR [http-nio-8080-exec-10][runtime:59] Error executing FreeMarker template
freemarker.template.TemplateModelException: Error while invoking the "control-menu" JSP custom tag; see cause exception
----
FTL stack trace ("~" means nesting-related):
- Failed at: #liferay_product_navigation["control-... [in template "com.liferay.portal.template.freemarker_7.0.19_CLASS_LOADER_CONTEXT_FTL_liferay.ftl" in macro "control_menu" at line 61, column 17]
- Reached through: #liferay.control_menu [in template "Custom-Themes_SERVLET_CONTEXT_/templates/portal_normal.ftl" at line 95, column 13]
----
at freemarker.ext.jsp.JspTagModelBase.toTemplateModelExceptionOrRethrow(JspTagModelBase.java:150) ~[bundleFile:?]
at freemarker.ext.jsp.TagTransformModel$TagWriter.afterBody(TagTransformModel.java:393) ~[bundleFile:?]
at freemarker.core.Environment.visitAndTransform(Environment.java:497) ~[bundleFile:?]
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:103) ~[bundleFile:?]
at freemarker.core.Environment.visit(Environment.java:331) ~[bundleFile:?]
at freemarker.core.Environment.visit(Environment.java:373) ~[bundleFile:?]
at freemarker.core.Environment.invokeMacroOrFunctionCommonPart(Environment.java:872) ~[bundleFile:?]
at freemarker.core.Environment.invokeMacro(Environment.java:809) ~[bundleFile:?]
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:83) ~[bundleFile:?]
at freemarker.core.Environment.visit(Environment.java:331) ~[bundleFile:?]
at freemarker.core.Environment.visit(Environment.java:337) ~[bundleFile:?]
at freemarker.core.Environment.visit(Environment.java:337) ~[bundleFile:?]
at freemarker.core.Environment.process(Environment.java:310) ~[bundleFile:?]
at freemarker.template.Template.process(Template.java:383) ~[bundleFile:?]
at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.lambda$processTemplate$0(FreeMarkerTemplate.java:157) ~[bundleFile:?]
at com.liferay.portal.template.freemarker.internal.FreeMarkerManager.render(FreeMarkerManager.java:500) [bundleFile:?]
at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.processTemplate(FreeMarkerTemplate.java:144) [bundleFile:?]
at com.liferay.portal.template.BaseTemplate.processTemplate(BaseTemplate.java:139) [portal-impl.jar:?]
at com.liferay.taglib.util.ThemeUtil.doIncludeFTL(ThemeUtil.java:227) [util-taglib.jar:?]
at com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:115) [util-taglib.jar:?]
at com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:79) [util-taglib.jar:?]
at com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:37) [util-taglib.jar:?]
at org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:693) [ROOT/:?]
at org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:620) [ROOT/:?]
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [org.apache.tomcat-jasper.jar:9.0.56]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [servlet-api.jar:4.0.FR]
at com.liferay.portal.servlet.DirectRequestDispatcher.forward(DirectRequestDispatcher.java:49) [portal-impl.jar:?]
at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.forward(DirectRequestDispatcherFactoryImpl.java:172) [portal-impl.jar:?]
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:82) [portal-impl.jar:?]
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.forward(ClassLoaderRequestDispatcherWrapper.java:45) [portal-impl.jar:?]
at com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:66) [portal-impl.jar:?]
at com.liferay.portal.struts.PortalRequestProcessor._internalModuleRelativeForward(PortalRequestProcessor.java:348) [portal-impl.jar:?]
at com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:399) [portal-impl.jar:?]
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:151) [portal-impl.jar:?]
at com.liferay.portal.internal.servlet.MainServlet.doGet(MainServlet.java:198) [portal-impl.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:655) [servlet-api.jar:4.0.FR]
at com.liferay.portal.internal.servlet.MainServlet.service(MainServlet.java:587) [portal-impl.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [servlet-api.jar:4.0.FR]
at com.liferay.shielded.container.internal.proxy.ServletWrapper.service(ServletWrapper.java:113) [com.liferay.shielded.container.impl.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.56]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-websocket.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.56]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:124) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:62) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147) [portal-kernel.jar:?]
at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:139) [bundleFile:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) [urlrewritefilter-4.0.4.jar:4.0.4]
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) [urlrewritefilter-4.0.4.jar:4.0.4]
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) [urlrewritefilter-4.0.4.jar:4.0.4]
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389) [urlrewritefilter-4.0.4.jar:4.0.4]
at com.liferay.portal.url.rewrite.filter.internal.URLRewriteFilter.processFilter(URLRewriteFilter.java:98) [bundleFile:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104) [portal-kernel.jar:?]
at com.liferay.shielded.container.internal.proxy.FilterWrapper.doFilter(FilterWrapper.java:79) [com.liferay.shielded.container.impl.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:711) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:385) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313) [catalina.jar:9.0.56]
at com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:470) [bundleFile:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [servlet-api.jar:4.0.FR]
at com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98) [portal-impl.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [servlet-api.jar:4.0.FR]
at com.liferay.shielded.container.internal.proxy.ServletWrapper.service(ServletWrapper.java:113) [com.liferay.shielded.container.impl.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.56]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-websocket.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.56]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:124) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:368) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:62) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:262) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147) [portal-kernel.jar:?]
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147) [portal-kernel.jar:?]
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:244) [portal-impl.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:147) [portal-kernel.jar:?]
at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:139) [bundleFile:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99) [portal-kernel.jar:?]
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) [urlrewritefilter-4.0.4.jar:4.0.4]
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) [urlrewritefilter-4.0.4.jar:4.0.4]
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) [urlrewritefilter-4.0.4.jar:4.0.4]
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389) [urlrewritefilter-4.0.4.jar:4.0.4]
at com.liferay.portal.url.rewrite.filter.internal.URLRewriteFilter.processFilter(URLRewriteFilter.java:98) [bundleFile:?]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:215) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:175) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:175) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:196) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:99) [portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104) [portal-kernel.jar:?]
at com.liferay.shielded.container.internal.proxy.FilterWrapper.doFilter(FilterWrapper.java:79) [com.liferay.shielded.container.impl.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.56]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) [catalina.jar:9.0.56]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [catalina.jar:9.0.56]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) [catalina.jar:9.0.56]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [catalina.jar:9.0.56]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [catalina.jar:9.0.56]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [catalina.jar:9.0.56]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [catalina.jar:9.0.56]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) [tomcat-coyote.jar:9.0.56]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-coyote.jar:9.0.56]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) [tomcat-coyote.jar:9.0.56]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732) [tomcat-coyote.jar:9.0.56]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-util.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-util.jar:9.0.56]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:9.0.56]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: javax.servlet.jsp.JspException: java.lang.NullPointerException
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:93) ~[bundleFile:?]
at freemarker.ext.jsp.TagTransformModel$TagWriter.endEvaluation(TagTransformModel.java:402) ~[bundleFile:?]
at freemarker.ext.jsp.TagTransformModel$TagWriter.afterBody(TagTransformModel.java:390) ~[bundleFile:?]
... 164 more
Caused by: java.lang.NullPointerException
at org.eclipse.equinox.http.servlet.internal.servlet.ServletContextAdaptor.getAttribute(ServletContextAdaptor.java:136) ~[?:?]
at jdk.internal.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.eclipse.equinox.http.servlet.internal.servlet.ServletContextAdaptor.invoke(ServletContextAdaptor.java:406) ~[?:?]
at org.eclipse.equinox.http.servlet.internal.servlet.ServletContextAdaptor$AdaptorInvocationHandler.invoke(ServletContextAdaptor.java:434) ~[?:?]
at com.sun.proxy.$Proxy491.getAttribute(Unknown Source) ~[?:?]
at com.liferay.portal.servlet.delegate.ServletContextASMWrapper.getAttribute(Unknown Source) ~[?:?]
at com.liferay.portal.kernel.servlet.FileAvailabilityUtil._getAvailabilities(FileAvailabilityUtil.java:97) ~[portal-kernel.jar:?]
at com.liferay.portal.kernel.servlet.FileAvailabilityUtil.isAvailable(FileAvailabilityUtil.java:61) ~[portal-kernel.jar:?]
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:82) ~[bundleFile:?]
at freemarker.ext.jsp.TagTransformModel$TagWriter.endEvaluation(TagTransformModel.java:402) ~[bundleFile:?]
at freemarker.ext.jsp.TagTransformModel$TagWriter.afterBody(TagTransformModel.java:390) ~[bundleFile:?]
... 164 more
I've seen that it corresponds to this issue https://issues.liferay.com/browse/LPS-74043 fixed in the following issue : https://issues.liferay.com/browse/LPS-79550
But the updates made in the issue are no longer present in 7.4 (in FreemarkerManager.java for exemple).
Is this a Liferay error or a mistake from my side ?
Thanks

Flutter 1.1.1 - Dependencies no longer working

The flutter dependency flutter_svg isn't properly loading SVG images since upgrading to flutter v1.1.1.
I expect for an SVG image to be displayed from this source, but the program pauses itself and the image never loads beyond the placeholderBuilder
This is the code I'm using to produce this issue:
new SvgPicture.network(
sparkString,
placeholderBuilder: (BuildContext context) => new Container(
decoration: new BoxDecoration(
color: const Color(0xFF3C4E57),
borderRadius: new BorderRadius.all(
const Radius.circular(5.0),
),
),
padding: const EdgeInsets.all(5.0),
alignment: Alignment.center,
child: CupertinoActivityIndicator(radius: 10.0)
),
fit: BoxFit.fill,
height: _height*0.14,
width: _width*0.30,
color: Colors.white.withAlpha(85),
),
And this is the issue that arises:
Flutter pauses itself on line 72 in svg_parser.dart, in parseSvgElement()
This is the output in the debug console
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following RangeError was thrown building Builder(dirty):
flutter: RangeError (index): Invalid value: Not in range 0..9, inclusive: 10
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 List.[] (dart:core/runtime/libgrowable_array.dart:145:60)
flutter: #1 _HomePageState._allWidget.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:gucci/home_page.dart:3362:73)
flutter: #2 Builder.build (package:flutter/src/widgets/basic.dart:5736:41)
flutter: #3 StatelessElement.build (package:flutter/src/widgets/framework.dart:3774:28)
flutter: #4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3721:15)
flutter: #5 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #6 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
flutter: #7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #8 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #9 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #10 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4860:14)
flutter: #11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #13 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4860:14)
flutter: #14 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #16 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #17 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #18 StatefulElement.update (package:flutter/src/widgets/framework.dart:3878:5)
flutter: #19 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #20 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4867:14)
flutter: #21 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #22 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4867:14)
flutter: #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #26 StatelessElement.update (package:flutter/src/widgets/framework.dart:3781:5)
flutter: #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #28 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #29 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #30 ProxyElement.update (package:flutter/src/widgets/framework.dart:3990:5)
flutter: #31 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #32 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #33 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #34 StatefulElement.update (package:flutter/src/widgets/framework.dart:3878:5)
flutter: #35 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #36 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:1028:36)
flutter: #37 SliverMultiBoxAdaptorElement.performRebuild.processElement (package:flutter/src/widgets/sliver.dart:978:34)
flutter: #38 List.forEach (dart:core/runtime/libgrowable_array.dart:278:8)
flutter: #39 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:989:36)
flutter: #40 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:955:7)
flutter: #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #42 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4585:32)
flutter: #43 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4975:17)
flutter: #44 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:192:11)
flutter: #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #46 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #47 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #48 ProxyElement.update (package:flutter/src/widgets/framework.dart:3990:5)
flutter: #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #50 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4867:14)
flutter: #51 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #52 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4867:14)
flutter: #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4867:14)
flutter: #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #56 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4867:14)
flutter: #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #60 StatefulElement.update (package:flutter/src/widgets/framework.dart:3878:5)
flutter: #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #62 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4867:14)
flutter: #63 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #65 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #66 StatefulElement.update (package:flutter/src/widgets/framework.dart:3878:5)
flutter: #67 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #68 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #69 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #70 StatelessElement.update (package:flutter/src/widgets/framework.dart:3781:5)
flutter: #71 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #72 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #73 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #74 StatefulElement.update (package:flutter/src/widgets/framework.dart:3878:5)
flutter: #75 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #76 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4867:14)
flutter: #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #80 StatelessElement.update (package:flutter/src/widgets/framework.dart:3781:5)
flutter: #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
flutter: #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #84 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2286:33)
flutter: #85 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:676:20)
flutter: #86 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
flutter: #87 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
flutter: #88 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
flutter: #89 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
flutter: #90 _invoke (dart:ui/hooks.dart:159:13)
flutter: #91 _drawFrame (dart:ui/hooks.dart:148:3)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
I played around with the SVG and if you remove the marker it works. I suspect that the flutter_svg library doesn't support marker-end yet. It should either throw a better error or not fail though.
If you can remove that marker & the marker-end from the SVG that should solve your problem. If that's not an option, you could open an issue on the library and maybe they'll be able to add it (or you could do it yourself =D).
If you do submit it, use this as a minimal example:
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
#override
MyAppState createState() {
return new MyAppState();
}
}
class MyAppState extends State<MyApp> {
#override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Container(
height: 300,
width: 300,
color: Colors.blue,
child: SvgPicture.string(
'''
<?xml version="1.0" standalone="no"?>
<svg viewBox="-2 -4 100 20" width="100" height="20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<marker id="neatchart-markerCircle-1472608912" markerWidth="2" markerHeight="2" refX="1" refY="1" markerUnits="strokeWidth">
<circle class="neatchart-marker" cx="1" cy="1" r="1" stroke="none" fill="#F00" />
</marker>
<linearGradient id="neatchart-fadeFromNothing-1472608912" x1="0%" y1="0%" x2="100%" y2="0%" gradientUnits="userSpaceOnUse">
<stop offset="0.5%" stop-color="#000" stop-opacity="0"></stop>
<stop offset="2%" stop-color="#000" stop-opacity="1"></stop>
<stop offset="100%" stop-color="#000" stop-opacity="1"></stop>
</linearGradient>
</defs>
<g class="neatchart">
<g class="chart__plotLine"
fill="none"
stroke-width="1.3333333333333"
stroke-linejoin="round"
stroke-linecap="round"
stroke="url(#neatchart-fadeFromNothing-1472608912)"
marker-end="url(#neatchart-markerCircle-1472608912)"
>
<path d="M0,0 1.85,2.02 3.69,2.25 5.54,1.53 7.38,4 9.23,4.22 11.08,4.81 12.92,6.77 14.77,6.11 16.62,4.89 18.46,5.11 20.31,5.02 22.15,6.18 24,6.39 25.85,6.53 27.69,7.33 29.54,7.52 31.38,6.87 33.23,6.06 35.08,5.9 36.92,5.7 38.77,6.28 40.62,6.84 42.46,7.17 44.31,7.02 46.15,7.64 48,7.72 49.85,8 51.69,7.96 53.54,7.82 55.38,7.44 57.23,6.76 59.08,6.88 60.92,7.66 62.77,7.98 64.62,7.82 66.46,7.56 68.31,7.5 70.15,7.89 72,7.91 73.85,7.78 75.69,7.76 77.54,7.75 79.38,7.7 81.23,7.81 83.08,7.91 84.92,7.83 86.77,8.23 88.62,9.01 90.46,9.51 92.31,9.64 94.15,9.96 96,10 " />
</g>
</g>
</svg>
''',
fit: BoxFit.contain,
),
),
),
),
);
}
}
And this is what actually rendered for me:
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
#override
MyAppState createState() {
return new MyAppState();
}
}
class MyAppState extends State<MyApp> {
#override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Container(
height: 300,
width: 300,
color: Colors.blue,
child: SvgPicture.string(
'''
<?xml version="1.0" standalone="no"?>
<svg viewBox="-2 -4 100 20" width="100" height="20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="neatchart-fadeFromNothing-1472608912" x1="0%" y1="0%" x2="100%" y2="0%" gradientUnits="userSpaceOnUse">
<stop offset="0.5%" stop-color="#000" stop-opacity="0"></stop>
<stop offset="2%" stop-color="#000" stop-opacity="1"></stop>
<stop offset="100%" stop-color="#000" stop-opacity="1"></stop>
</linearGradient>
</defs>
<g class="neatchart">
<g class="chart__plotLine"
fill="none"
stroke-width="1.3333333333333"
stroke-linejoin="round"
stroke-linecap="round"
stroke="url(#neatchart-fadeFromNothing-1472608912)"
>
<path d="M0,0 1.85,2.02 3.69,2.25 5.54,1.53 7.38,4 9.23,4.22 11.08,4.81 12.92,6.77 14.77,6.11 16.62,4.89 18.46,5.11 20.31,5.02 22.15,6.18 24,6.39 25.85,6.53 27.69,7.33 29.54,7.52 31.38,6.87 33.23,6.06 35.08,5.9 36.92,5.7 38.77,6.28 40.62,6.84 42.46,7.17 44.31,7.02 46.15,7.64 48,7.72 49.85,8 51.69,7.96 53.54,7.82 55.38,7.44 57.23,6.76 59.08,6.88 60.92,7.66 62.77,7.98 64.62,7.82 66.46,7.56 68.31,7.5 70.15,7.89 72,7.91 73.85,7.78 75.69,7.76 77.54,7.75 79.38,7.7 81.23,7.81 83.08,7.91 84.92,7.83 86.77,8.23 88.62,9.01 90.46,9.51 92.31,9.64 94.15,9.96 96,10 " />
</g>
</g>
</svg>
''',
fit: BoxFit.contain,
),
),
),
),
);
}
}

SIGABRT Issue in valgrind with multithreading in c++11

class MyClass{
public :
void runBscGwThread(int);
private :
std::unique_ptr<std::thread> MyClass_;
}
MyClass::Myclass(int bcfId, A::AParam sctpParams):
bcfId_(bcfId),
{
Myclass_.reset(new std::thread([this](){ this->runBscGwThread(bcfId_);}));
}
This issue is seen occasionally . In destructor I am doing
Myclass:: ~Myclass(){
if (Myclass_->joinable)
Myclass_->join();
}
The Valgrind Logs are below :
fatal_signal>
<tid>2</tid>
<signo>6</signo>
<signame>SIGABRT</signame>
<sicode>-6</sicode>
<stack>
<frame>
<ip>0x670DB80</ip
/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libc-2.24.so
<fn>raise</fn>
</frame>
<frame>
<ip>0x670F046</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libc-2.24.so</obj>
<fn>abort</fn>
</frame>
<frame>
<ip>0x656831E</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libstdc++.so.6.0.22</obj>
<fn>__gnu_cxx::__verbose_terminate_handler()</fn>
</frame>
<frame>
<ip>0x6565EC3</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libstdc++.so.6.0.22</obj>
</frame>
<frame>
<ip>0x6564C28</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libstdc++.so.6.0.22</obj>
</frame>
<frame>
<ip>0x6565426</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libstdc++.so.6.0.22</obj>
<fn>__gxx_personality_v0</fn>
</frame>
<frame>
<ip>0x66D941E</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libgcc_s.so.1</obj>
</frame>
<frame>
<ip>0x66D974C</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libgcc_s.so.1</obj>
<fn>_Unwind_RaiseException</fn>
</frame>
<frame>
<ip>0x65661E3</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libstdc++.so.6.0.22</obj>
<fn>__cxa_throw</fn>
</frame>
<frame>
<ip>0x65913F2</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libstdc++.so.6.0.22</obj>
<fn>std::__throw_system_error(int)</fn>
</frame>
<frame>
<ip>0x6593917</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libstdc++.so.6.0.22</obj>
<fn>std::thread::join()</fn>
</frame>
<frame>
<ip>0x8083F41</ip>
<obj>/dev/shm/workspace/GTS+trunk.x86.VALGRIND.UT/build/x86/gts/test/ut/tests/BscGw/GTS-BscGw-UT</obj>
<fn>GTS::BSCGW::Myclass::stop()</fn>
</frame>
<frame>
<ip>0x8083F69</ip>
<obj>/dev/shm/workspace/GTS+trunk.x86.VALGRIND.UT/build/x86/gts/test/ut/tests/BscGw/GTS-BscGw-UT</obj>
<fn>GTS::BSCGW::Myclass::~Myclass()</fn>
</frame>
<frame>
<ip>0x807DD62</ip>
<obj>/dev/shm/workspace/GTS+trunk.x86.VALGRIND.UT/build/x86/gts/test/ut/tests/BscGw/GTS-BscGw-UT</obj>
<fn>std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()</fn>
</frame>
<frame>
<ip>0x807E15E</ip>
<obj>/dev/shm/workspace/GTS+trunk.x86.VALGRIND.UT/build/x86/gts/test/ut/tests/BscGw/GTS-BscGw-UT</obj>
<fn>std::_Rb_tree<int, std::pair<int const, std::pair<std::shared_ptr<, std::shared_ptr<GTS::BSCGW::Myclass> > >, std::_Select1st<std::pair<int const, std::pair<, std::shared_ptr<GTS::BSCGW::Myclass> > > >, std::less<int>, std::allocator<std::pair<int const, std::pair<std::shared_ptr<, std::shared_ptr<GTS::BSCGW::Myclass> > > > >::_M_erase(std::_Rb_tree_node<std::pair<int const, std::pair<std::shared_ptr< std::shared_ptr<GTS::BSCGW::Myclass> > > >*)</fn>
</frame>
<frame>
<ip>0x807E150</ip>
<obj>/dev/shm/workspace/GTS+trunk.x86.VALGRIND.UT/build/x86/gts/test/ut/tests/BscGw/GTS-BscGw-UT</obj>
<fn>std::_Rb_tree<int, std::pair<int const, std::pair<std::shared_ptr<, std::shared_ptr<GTS::BSCGW::Myclass> > >, std::_Select1st<std::pair<int const, std::pair<std::shared_ptr<, std::shared_ptr<GTS::BSCGW::Myclass> > > >, std::less<int>, std::allocator<std::pair<int const, std::pair<std::shared_ptr<, std::shared_ptr<GTS::BSCGW::Myclass> > > > >::_M_erase(std::_Rb_tree_node<std::pair<int const, std::shared_ptr<GTS::BSCGW::Myclass> > > >*)</fn>
</frame>
<frame>
<ip>0x8084928</ip>
<obj>/dev/shm/workspace/GTS+trunk.x86.VALGRIND.UT/build/x86/gts/test/ut/tests/BscGw/GTS-BscGw-UT</obj>
<fn>GTS::BSCGW::Myclass::readFromSocket(std::vector<unsigned char, std::allocator<unsigned char> >&, int)</fn>
</frame>
<frame>
<ip>0x8085142</ip>
<obj>/dev/shm/workspace/GTS+trunk.x86.VALGRIND.UT/build/x86/gts/test/ut/tests/BscGw/GTS-BscGw-UT</obj>
<fn>GTS::BSCGW::Myclass::runBscGwThread(int)</fn>
</frame>
<frame>
<ip>0x80852A6</ip>
<obj>/dev/shm/workspace/GTS+trunk.x86.VALGRIND.UT/build/x86/gts/test/ut/tests/BscGw/GTS-BscGw-UT</obj>
<fn>std::thread::_Impl<std::_Bind_simple<GTS::BSCGW::Myclass::Myclass(int, GTS::AbisSctpParam)::{lambda()#1} ()> >::_M_run()</fn>
</frame>
<frame>
<ip>0x6593A8D</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libstdc++.so.6.0.22</obj>
</frame>
<frame>
<ip>0x64DD2E9</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libpthread-2.24.so</obj>
<fn>start_thread</fn>
</frame>
<frame>
<ip>0x67C90ED</ip>
<obj>/build/ltesdkroot/data/Platforms/IB_PS_LFS_REL/IB013_PS_LFS_REL_2017_06_0017-LTE/IB013_PS_LFS_REL_2017_06_0017-LTE/os/sys-root/i686-pc-linux-gnu/usr/lib/libc-2.24.so</obj>
<fn>clone</fn>
</frame>
Myclass:: ~Myclass(){
if (Myclass_->joinable)
Myclass_->join();
}
Since you have kept the thread as joinable, the calling thread waits for its completion.
Is it necessary for you to keep the thread Joinable, if there is no concurrent access to a resource , you can allow these threads to run in parallel.

HoloEverywhere Not working in Application

When I try to use HoloEverywhere with my settings activity I get this error in logcat:
10-26 09:56:59.653: E/AndroidRuntime(3552): android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
10-26 09:56:59.653: E/AndroidRuntime(3552): at com.WazaBe.HoloEverywhere.LayoutInflater.onCreateView(LayoutInflater.java:195)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-26 09:56:59.653: E/AndroidRuntime(3552): at com.WazaBe.HoloEverywhere.preference.Preference.onCreateView(Preference.java:514)
10-26 09:56:59.653: E/AndroidRuntime(3552): at com.WazaBe.HoloEverywhere.preference.Preference.getView(Preference.java:404)
10-26 09:56:59.653: E/AndroidRuntime(3552): at com.WazaBe.HoloEverywhere.preference.PreferenceGroupAdapter.getView(PreferenceGroupAdapter.java:158)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.AbsListView.obtainView(AbsListView.java:1430)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.ListView.makeAndAddView(ListView.java:1745)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.ListView.fillDown(ListView.java:670)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.ListView.fillFromTop(ListView.java:727)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.ListView.layoutChildren(ListView.java:1598)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.AbsListView.onLayout(AbsListView.java:1260)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.layout(View.java:7175)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.layout(View.java:7175)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1243)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.onLayout(LinearLayout.java:1049)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.layout(View.java:7175)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.layout(View.java:7175)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.layout(View.java:7175)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.layout(View.java:7175)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.layout(View.java:7175)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.layout(View.java:7175)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.ViewRoot.performTraversals(ViewRoot.java:1140)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.os.Handler.dispatchMessage(Handler.java:99)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.os.Looper.loop(Looper.java:130)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.app.ActivityThread.main(ActivityThread.java:3683)
10-26 09:56:59.653: E/AndroidRuntime(3552): at java.lang.reflect.Method.invokeNative(Native Method)
10-26 09:56:59.653: E/AndroidRuntime(3552): at java.lang.reflect.Method.invoke(Method.java:507)
10-26 09:56:59.653: E/AndroidRuntime(3552): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
10-26 09:56:59.653: E/AndroidRuntime(3552): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
10-26 09:56:59.653: E/AndroidRuntime(3552): at dalvik.system.NativeStart.main(Native Method)
10-26 09:56:59.653: E/AndroidRuntime(3552): Caused by: java.lang.reflect.InvocationTargetException
10-26 09:56:59.653: E/AndroidRuntime(3552): at java.lang.reflect.Constructor.constructNative(Native Method)
10-26 09:56:59.653: E/AndroidRuntime(3552): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
10-26 09:56:59.653: E/AndroidRuntime(3552): ... 46 more
10-26 09:56:59.653: E/AndroidRuntime(3552): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x2
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.<init>(View.java:2108)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.View.<init>(View.java:1899)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.view.ViewGroup.<init>(ViewGroup.java:286)
10-26 09:56:59.653: E/AndroidRuntime(3552): at android.widget.LinearLayout.<init>(LinearLayout.java:120)
10-26 09:56:59.653: E/AndroidRuntime(3552): at com.WazaBe.HoloEverywhere.widget.LinearLayout.<init>(LinearLayout.java:37)
10-26 09:56:59.653: E/AndroidRuntime(3552): at com.WazaBe.HoloEverywhere.widget.LinearLayout.<init>(LinearLayout.java:33)
10-26 09:56:59.653: E/AndroidRuntime(3552): ... 49 more
I start my settingsActivity from an overflow menu item. I can add an overflow menu to the HoloEverywhere-Demo and start my activity when chosen and it works. Here is my settings activity:
public class SettingsActivity extends com.WazaBe.HoloEverywhere.sherlock.SPreferenceActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.settings);
}
#Override
public void onStart() {
super.onStart();
initActionBar();
}
#Override
public void onResume() {
super.onResume();
}
#Override
public void onPause() {
super.onPause();
}
#Override
public void onStop() {
super.onStop();
}
private void initActionBar() {
ActionBar actionBar = getSupportActionBar();
actionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.action_bar_gradient));
actionBar.setTitle(R.string.settings);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayUseLogoEnabled(true);
}
}
Any ideas why I can use this activity in the demo with no problems, but when I add to my application I get the error I posted?
Does your settings.xml use the holo attributes? You have to change xmlns to holo and all android: to holo:
Like this:
<PreferenceScreen xmlns:holo="http://schemas.android.com/apk/res-auto" >
<PreferenceCategory holo:title="title" >
<Preference
holo:key="key"
holo:summary="summary"
holo:title="title" />
</PreferenceCategory>
<Preference
holo:key="key"
holo:title="title"
holo:selectable="true" />
</PreferenceScreen>

Resources