This comes in pair with the other issue 1 I opened about the OpenXR counterpart I finally managed to get some geometry rendered using the native meshing API, but I often see sporadic stacktracer in the android log.
This one shows right after a MLMeshingRequestMesh
. Previous calls to the function work fine
11-08 20:38:28.283 3377 5230 E meshing_manager: leapcore/frameworks/perception/services/meshing_manager/common/src/memory_ion_heap.cpp(74) MemoryIonHeap():
11-08 20:38:28.283 3377 5230 E meshing_manager: ERR: exception: Ion allocation failure. Size: 0. Error: Operation not permitted
Followed by this shortly after
11-08 20:38:28.286 3377 5230 E meshing_manager: leapcore/frameworks/perception/services/meshing_manager/common/src/memory_ion_heap.cpp(74) MemoryIonHeap():
11-08 20:38:28.286 3377 5230 E meshing_manager: ERR: [stack trace begin]
11-08 20:38:28.286 3377 5230 E meshing_manager: #00 pc 000000000002e8f8 /system/lib64/libml_meshing_manager_service.so (ml::MemoryIonHeap::MemoryIonHeap(unsigned long)+2152)
11-08 20:38:28.286 3377 5230 E meshing_manager: #01 pc 000000000001e72f /system/lib64/libml_meshing_manager_service.so (ml::perception::meshing_manager::Service::ProccessDataRequest(android::sp<ml::perception::meshing_manager::MeshingDataRequest>)+671)
11-08 20:38:28.286 3377 5230 E meshing_manager: #02 pc 000000000001de3c /system/lib64/libml_meshing_manager_service.so (ml::perception::meshing_manager::Service::StartProcessingDataRequests()+316)
11-08 20:38:28.286 3377 5230 E meshing_manager: #03 pc 00000000000076d9 /system/bin/meshing_manager (_ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZ4mainE3$_2EEEEEPvS9_+41)
11-08 20:38:28.286 3377 5230 E meshing_manager: #04 pc 00000000001001ee /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+30)
11-08 20:38:28.286 3377 5230 E meshing_manager: #05 pc 000000000009cff7 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55)
11-08 20:38:28.286 3377 5230 E meshing_manager: [stack trace end]
11-08 20:38:28.286 3377 5230 E meshing_manager: leapcore/frameworks/perception/services/meshing_manager/service/src/service.cpp(409) ProccessDataRequest():
11-08 20:38:28.286 3377 5230 E meshing_manager: ERR: Meshing Manager failed, exception thrown
And then when I call MLMeshingGetMeshResult
after, I get this. It processed because the previous call throwing returns MLResult_Ok
.
11-08 20:38:28.298 6303 6342 E com.REDACTED leapcore/frameworks/perception/services/meshing_manager/aidl/src/MeshingDataResponse.cpp(120) FreeResource():
11-08 20:38:28.298 6303 6342 E com.REDACTED: ERR: Releasing MeshingDataResponse with no memory ptr, noop'ing
11-08 20:38:28.299 6303 6342 E com.REDACTED: leapcore/frameworks/perception/services/meshing_manager/client/src/client.cpp(204) GetMeshingDataResponse():
11-08 20:38:28.299 6303 6342 E com.REDACTED: ERR: exception: Error
11-08 20:38:28.307 6303 6342 E com.REDACTED: leapcore/frameworks/perception/services/meshing_manager/client/src/client.cpp(204) GetMeshingDataResponse():
11-08 20:38:28.307 6303 6342 E com.REDACTED: ERR: [stack trace begin]
11-08 20:38:28.307 6303 6342 E com.REDACTED: #00 pc 0000000000018f75 /system/lib64/libml_meshing_manager_client.so (ml::perception::meshing_manager::Client::GetMeshingDataResponse(unsigned long, ml::pil::ss::MeshingMesh*)+1909)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #01 pc 000000000002a623 /system/lib64/libml_perception_meshing.so (ml::perception::datasources::BinderMeshingDataSource::GetResponse(unsigned long const&, ml::pil::ss::MeshingMesh*) const+179)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #02 pc 0000000000020686 /system/lib64/libml_perception_meshing.so (ml::perception::components::meshing::Meshing::GetMeshingDataResponse(unsigned long, ml::pil::ss::MeshingMesh*)+182)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #03 pc 000000000007fd23 /system/lib64/libperception.magicleap.so (MLMeshingGetMeshResult+291)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #04 pc 00000000003caee8 /data/app/com.REDACTED-22wkwprivzdHnxXjzytiWw==/lib/x86_64/libREDACTED.so (mlcontext_update+1320)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #05 pc 00000000003d1aac /data/app/com.REDACTED-22wkwprivzdHnxXjzytiWw==/lib/x86_64/libREDACTED.so (state_dispatch+300)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #06 pc 00000000003c8e14 /data/app/com.REDACTED-22wkwprivzdHnxXjzytiWw==/lib/x86_64/libREDACTED.so (android_main+356)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #07 pc 00000000003c0aca /data/app/com.REDACTED-22wkwprivzdHnxXjzytiWw==/lib/x86_64/libREDACTED.so (android_app_entry+298)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #08 pc 00000000001001ee /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+30)
11-08 20:38:28.307 6303 6342 E com.REDACTED: #09 pc 000000000009cff7 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55)
11-08 20:38:28.307 6303 6342 E com.REDACTED: [stack trace end]
I am able to render some geometry,
ML2 OS version: 1.10
MLSDK version: 1.8.0