it is the first time I try to create a native app so everything is new to me. I am experienced with react so that shouldn’t be a problem but I fail at setting up the playground for android environment on windows. I followed the
github readme
, installed all dependencies and set all environment variables.
Starting the emulator from console or android studio works fine but if I tap on the app icon the playground app opens for one second and closes. Metro doesn’t show an error or something helpful. Any idea what the problem could be?
In addition to that is there anything I have to keep in mind to create a new app? Or do I just have to copy/paste the Apps/Playground directory to be ready to go?
Thanks for your advise.
I noticed that the useEngine hook always returns undefined wherefore everything obviously fails. The node_modules for Modules@babylonjs\react-native were not installed initially so I called npm i in this directory. Now the EngineHook.ts doesn’t show any errors but I still receive undefined as engine. Any suggestions?
I also tried to set up a whole new independent project folder. There I don’t load babylonjs react native via the cloned github repo but just like every other node module. Still no success.
EDIT:
I dig deeper and realized that the code can’t pass:
await BabylonNative.initializationPromise
in ReactNativeEngine.ts
It waits forever since the nativeEngine can’t be created, but why? I would really appreciate if you could give me a hint
@Cedric
and
@bghgary
. I am using babylonReactNative
@0.4.0-alpha.14
and babylonjs
@5.0.0-alpha.14
. I also tried other bjs version but e.g. alpha.17 throws an error if I run the android emulator.
Hey
@samevision
- can you clarify, are you trying to build the Playground app in the Babylon React Native repo, or are you trying to build your own app? In your original post it sounded like the former, but then in your most recent post you talked about which version of
@babylonjs
/react-native you have installed.
I’m also unclear whether the app is crashing/exiting (as indicated in your original post), or just never initializing (as indicated in your later post). Can you clarify this as well?
I would suggest starting with the Playground and make sure you can get that to work.
useEngine
is expected to initially return
undefined
and later will return an engine instance once the async setup is complete. If the async setup is not completing, then the next step would be to debug the native code. If you run with the debugger attached in Android Studio, you can put a breakpoint here:
BabylonReactNative/BabylonNative.cpp at master · BabylonJS/BabylonReactNative (github.com)
. This is where that promise is resolved.
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.
DJH0AWQ2HW
924×241 16.5 KB
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?
Thank you very much! The playground app crashed because I missed to install the Google Play Services for AR app. After this problem was solved I tried to create my own app but engine still returned undefined. I realized that I have to state style={{flex: 1}} for the SafeAreaView component. Now the engine is created
That’s quite surprising, I wouldn’t expect AR to have any effect on the app until you try to start AR. And even then, it checks to see if ARCore is installed and if not prompts to install: BabylonNative/XR.cpp at master · BabylonJS/BabylonNative (github.com). I wonder if this is an emulator specific behavior that you are hitting?
In any case, I’m glad you figured it out. Feel free to log an issue on the crash if Google Play Services for AR is not installed. Also, feel free to update the README.md with anything you learned about setup that you think others could benefit from!
Sure, I will check again if I can reproduce the issue to determine what caused the problem. I will add the points of this thread to the readme.
EDIT:
I checked it again and you were right. Google Play Services isn’t necessary so it’s enough to adapt the opengl settings. Since a rerun of the app is needed to apply the opengl settings I wasn’t sure if it was the app or the settings.
Dump question: How am I able to push to BabylonReactNative repo? I can’t due to lack of permission.
samevision:
How am I able to push to BabylonReactNative repo? I can’t due to lack of permission.
Submit a pull request to the main branch from your own fork of the repo.