Hey @ryantrem,
thank you for your response.
Yes, initially I was trying to create the playground app according to the instructions of the github page but since this didn’t work I tried a few different things. You’re right, it makes sense to get the playground app to work before creating another app. So I removed everything and cloned the github repo again.
The app is starting but closes immediately. useEngine is definitely not returning anything so the async setup is not completing. I put in the two breakpoints to debug the native code:
The UpdateView function is reached so that should be fine.
The promise instead is not resolved in BabylonNative.cpp. The code will be aborted in BgfxCallback.cpp:37:
The logcat displayed the following error:
6120-6120/com.playground A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6120 (com.playground), pid 6120 (com.playground)
Here are the logs before the error will be returned:
321 11034-11034/? I/com.playground: Not late-enabling -Xcheck:jni (already on)
337 11034-11034/? I/com.playground: Unquickening 12 vdex files!
338 11034-11034/? W/com.playground: Unexpected CPU variant for X86 using defaults: x86
372 11034-11034/com.playground D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar
432 11034-11034/com.playground D/NetworkSecurityConfig: No Network Security Config specified, using platform default
432 11034-11034/com.playground D/NetworkSecurityConfig: No Network Security Config specified, using platform default
436 11034-11034/com.playground D/SoLoader: init start
436 11034-11034/com.playground D/SoLoader: adding system library source: /vendor/lib
437 11034-11034/com.playground D/SoLoader: adding system library source: /system/lib
438 11034-11034/com.playground D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86 flags = 0]
439 11034-11034/com.playground D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/user/0/com.playground/lib-main flags = 1]
439 11034-11034/com.playground D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
439 11034-11034/com.playground D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2]
440 11034-11034/com.playground D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86 flags = 0]
440 11034-11034/com.playground D/SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/user/0/com.playground/lib-main flags = 1]
440 11034-11034/com.playground V/fb-UnpackingSoSource: locked dso store /data/user/0/com.playground/lib-main
441 11034-11034/com.playground I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.playground/lib-main
441 11034-11034/com.playground V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.playground/lib-main
441 11034-11034/com.playground D/SoLoader: init finish: 4 SO sources prepared
441 11034-11034/com.playground D/SoLoader: init exiting
451 11034-11034/com.playground D/SoLoader: init exiting
451 11034-11034/com.playground D/SoLoader: About to load: libjscexecutor.so
452 11034-11034/com.playground D/SoLoader: libjscexecutor.so not found on /data/user/0/com.playground/lib-main
452 11034-11034/com.playground D/SoLoader: libjscexecutor.so found on /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86
452 11034-11034/com.playground D/SoLoader: Not resolving dependencies for libjscexecutor.so
459 11034-11034/com.playground D/JavaScriptCore.Version: 245459.0.0
459 11034-11034/com.playground D/SoLoader: Loaded: libjscexecutor.so
462 11034-11034/com.playground D/SoLoader: init exiting
489 11034-11034/com.playground W/com.playground: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setUseSessionTickets(Z)V (greylist-max-q,core-platform-api, reflection, allowed)
489 11034-11034/com.playground W/com.playground: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setHostname(Ljava/lang/String;)V (greylist-max-q,core-platform-api, reflection, allowed)
490 11034-11034/com.playground W/com.playground: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B (greylist-max-q,core-platform-api, reflection, allowed)
490 11034-11034/com.playground W/com.playground: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setAlpnProtocols([B)V (greylist-max-q,core-platform-api, reflection, allowed)
490 11034-11034/com.playground W/com.playground: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (greylist,core-platform-api, reflection, allowed)
490 11034-11034/com.playground W/com.playground: Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (greylist,core-platform-api, reflection, allowed)
490 11034-11034/com.playground W/com.playground: Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, reflection, allowed)
507 11034-11063/com.playground D/SoLoader: About to load: libfbjni.so
507 11034-11063/com.playground D/SoLoader: libfbjni.so not found on /data/user/0/com.playground/lib-main
507 11034-11063/com.playground D/SoLoader: libfbjni.so found on /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86
507 11034-11063/com.playground D/SoLoader: Not resolving dependencies for libfbjni.so
508 11034-11063/com.playground D/SoLoader: Loaded: libfbjni.so
508 11034-11063/com.playground D/SoLoader: About to load: libflipper.so
508 11034-11063/com.playground D/SoLoader: libflipper.so not found on /data/user/0/com.playground/lib-main
508 11034-11063/com.playground D/SoLoader: libflipper.so found on /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86
508 11034-11063/com.playground D/SoLoader: Not resolving dependencies for libflipper.so
515 11034-11063/com.playground D/SoLoader: Loaded: libflipper.so
554 11034-11034/com.playground W/com.playground: Accessing hidden field Landroid/view/View;->mKeyedTags:Landroid/util/SparseArray; (greylist, reflection, allowed)
554 11034-11034/com.playground W/com.playground: Accessing hidden field Landroid/view/View;->mListenerInfo:Landroid/view/View$ListenerInfo; (greylist, reflection, allowed)
554 11034-11034/com.playground W/com.playground: Accessing hidden field Landroid/view/View$ListenerInfo;->mOnClickListener:Landroid/view/View$OnClickListener; (greylist, reflection, allowed)
562 11034-11034/com.playground I/flipper: flipper: FlipperClient::addPlugin Inspector
562 11034-11034/com.playground I/flipper: flipper: FlipperClient::addPlugin React
564 11034-11034/com.playground I/flipper: flipper: FlipperClient::addPlugin Databases
566 11034-11034/com.playground I/flipper: flipper: FlipperClient::addPlugin Preferences
566 11034-11034/com.playground I/flipper: flipper: FlipperClient::addPlugin CrashReporter
569 11034-11034/com.playground I/flipper: flipper: FlipperClient::addPlugin Network
575 11034-11076/com.playground D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
576 11034-11076/com.playground D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
578 11034-11076/com.playground D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
631 11034-11034/com.playground W/com.playground: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
631 11034-11034/com.playground W/com.playground: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
645 11034-11034/com.playground W/unknown:ReactNative: Packager connection already open, nooping.
652 11034-11074/com.playground D/HostConnection: HostConnection::get() New Host Connection established 0xea5fbdc0, tid 11074
655 11034-11074/com.playground D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
656 11034-11074/com.playground W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
666 11034-11074/com.playground D/EGL_emulation: eglCreateContext: 0xea5fd480: maj 2 min 0 rcv 2
695 11034-11074/com.playground D/EGL_emulation: eglMakeCurrent: 0xea5fd480: ver 2 0 (tinfo 0xea93b210) (first time)
708 11034-11074/com.playground I/Gralloc4: mapper 4.x is not supported
709 11034-11074/com.playground D/HostConnection: createUnique: call
709 11034-11074/com.playground D/HostConnection: HostConnection::get() New Host Connection established 0xea5fdf70, tid 11074
709 11034-11074/com.playground D/goldfish-address-space: allocate: Ask for block of size 0x100
710 11034-11074/com.playground D/goldfish-address-space: allocate: ioctl allocate returned offset 0x3f8ecc000 size 0x2000
762 11034-11074/com.playground D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
560 11034-11066/com.playground D/SoLoader: About to load: libreactnativejni.so
561 11034-11066/com.playground D/SoLoader: libreactnativejni.so not found on /data/user/0/com.playground/lib-main
561 11034-11066/com.playground D/SoLoader: libreactnativejni.so found on /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86
561 11034-11066/com.playground D/SoLoader: Not resolving dependencies for libreactnativejni.so
564 11034-11066/com.playground D/SoLoader: Loaded: libreactnativejni.so
745 11034-11034/com.playground W/unknown:ReactNative: Packager connection already open, nooping.
774 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
779 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
781 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
782 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
782 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
785 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
786 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
786 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
788 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
789 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
790 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
790 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
791 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
792 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
793 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
793 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
794 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
795 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
796 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
797 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
797 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextShadowNode
797 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
800 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
801 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
803 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
803 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
804 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
805 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
805 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.unimplementedview.ReactUnimplementedViewManager
805 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.babylonreactnative.EngineViewManager
806 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.slider.ReactSliderManager
806 11034-11086/com.playground W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.slider.ReactSliderManager$ReactSliderShadowNode
820 11034-11086/com.playground D/SoLoader: About to load: libyoga.so
821 11034-11086/com.playground D/SoLoader: libyoga.so not found on /data/user/0/com.playground/lib-main
821 11034-11086/com.playground D/SoLoader: libyoga.so found on /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86
821 11034-11086/com.playground D/SoLoader: Not resolving dependencies for libyoga.so
822 11034-11086/com.playground D/SoLoader: Loaded: libyoga.so
873 11034-11086/com.playground I/flipper: flipper: FlipperClient::addPlugin Fresco
131 11034-11085/com.playground D/SoLoader: About to load: libreactnativeblob.so
131 11034-11085/com.playground D/SoLoader: libreactnativeblob.so not found on /data/user/0/com.playground/lib-main
131 11034-11085/com.playground D/SoLoader: libreactnativeblob.so found on /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86
131 11034-11085/com.playground D/SoLoader: Not resolving dependencies for libreactnativeblob.so
132 11034-11085/com.playground D/SoLoader: Loaded: libreactnativeblob.so
155 11034-11086/com.playground I/WebViewFactory: Loading com.google.android.webview version 83.0.4103.106 (code 410410681)
159 11034-11086/com.playground I/com.playground: The ClassLoaderContext is a special shared library.
160 11034-11086/com.playground D/nativeloader: classloader namespace configured for unbundled product apk. library_path=/product/app/WebViewGoogle/lib/x86:/product/app/WebViewGoogle/WebViewGoogle.apk!/lib/x86:/product/app/TrichromeLibrary/TrichromeLibrary.apk!/lib/x86:/product/lib:/system/product/lib
178 11034-11086/com.playground I/com.playground: The ClassLoaderContext is a special shared library.
179 11034-11086/com.playground D/nativeloader: classloader namespace configured for unbundled product apk. library_path=/product/app/WebViewGoogle/lib/x86:/product/app/WebViewGoogle/WebViewGoogle.apk!/lib/x86:/product/app/TrichromeLibrary/TrichromeLibrary.apk!/lib/x86:/product/lib:/system/product/lib
207 11034-11086/com.playground I/cr_LibraryLoader: Loaded native library version number "83.0.4103.106"
208 11034-11086/com.playground I/cr_CachingUmaRecorder: Flushed 3 samples from 3 histograms.
301 11034-11085/com.playground I/ReactNativeJS: Running "Playground" with {"rootTag":1}
697 11034-11034/com.playground W/com.playground: Accessing hidden field Landroid/view/View;->mAccessibilityDelegate:Landroid/view/View$AccessibilityDelegate; (greylist, reflection, allowed)
709 11034-11085/com.playground D/SoLoader: About to load: libturbomodulejsijni.so
709 11034-11085/com.playground D/SoLoader: libturbomodulejsijni.so not found on /data/user/0/com.playground/lib-main
709 11034-11085/com.playground D/SoLoader: libturbomodulejsijni.so found on /data/app/~~rb9F47WcndU3tZNqqtpdIQ==/com.playground-aD1HzqZpawmpu9l9BhV4PQ==/lib/x86
709 11034-11085/com.playground D/SoLoader: Not resolving dependencies for libturbomodulejsijni.so
712 11034-11085/com.playground D/SoLoader: Loaded: libturbomodulejsijni.so
784 11034-11034/com.playground D/HostConnection: HostConnection::get() New Host Connection established 0xea5dfd50, tid 11034
786 11034-11034/com.playground D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
786 11034-11034/com.playground A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 11034 (com.playground), pid 11034 (com.playground)
Any idea what could be the problem?
Best