Hi there,
I’m trying to build and run the Playground 0.65 sample from the BabylonReactNative GitHub repo (main branch). I runs fine on my Android phone and with the emulator on my laptop. However it crashes on my main development machine when running in the emulator.
I’m using the following command:
npx react-native run-android
Using logcat, here are the first few lines of the callstack
(Babylon::BgfxCallback::fatal(char const*, unsigned short, bgfx::Fatal::Enum, char const*)+190) (BuildId: 27be7ec5318f6dd0b1443ea85b268fe3927a5cea)
(bgfx::fatal(char const*, unsigned short, bgfx::Fatal::Enum, char const*, ...)+403) (BuildId: 27be7ec5318f6dd0b1443ea85b268fe3927a5cea)
(bgfx::gl::GlContext::create(unsigned int, unsigned int)+1248) (BuildId: 27be7ec5318f6dd0b1443ea85b268fe3927a5cea)
(bgfx::gl::RendererContextGL::setRenderContextSize(unsigned int, unsigned int, unsigned int)+146) (BuildId: 27be7ec5318f6dd0b1443ea85b268fe3927a5cea)
(bgfx::gl::RendererContextGL::init(bgfx::Init const&)+310) (BuildId: 27be7ec5318f6dd0b1443ea85b268fe3927a5cea)
(bgfx::gl::rendererCreate(bgfx::Init const&)+171) (BuildId: 27be7ec5318f6dd0b1443ea85b268fe3927a5cea)
(bgfx::rendererCreate(bgfx::Init const&)+376) (BuildId: 27be7ec5318f6dd0b1443ea85b268fe3927a5cea)
I’m running on Win10 21H2 with a GTX 980Ti and up-to-date drivers.
As a side note, after cloning a fresh repo, the build always fail on the first time with an out of memory Java exception. My machine has 32GB of memory with only 50% used.
Thanks for your help!