expo / expo/dev-plugins

App crashes on splash screen

Open
#19 29 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
250
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Thanks for the great work for Expo 50.

I enabled the DevTools plugin for `react-navigation` in my `index.tsx` file:

![image](https://github.com/expo/dev-plugins/assets/1928541/9f2e3b2b-7012-4e66-b061-91b17a99b715)

The app works fine with the dev server locally. But When I build it and try the development build (`apk file` on my device or emulator), the app hangs at the Splash screen. And this is the `adb log` from the console:

```
01-20 14:00:03.693 4767 4812 I cr_LibraryLoader: Successfully loaded native library
01-20 14:00:03.693 4767 4812 I cr_CachingUmaRecorder: Flushed 8 samples from 8 histograms.
01-20 14:00:03.699 4767 4811 E ReactNativeJS: Error: Failed to setup client from useDevToolsPluginClient: [object Object]
01-20 14:00:03.699 4767 4811 E ReactNativeJS:
01-20 14:00:03.699 4767 4811 E ReactNativeJS: This error is located at:
01-20 14:00:03.699 4767 4811 E ReactNativeJS: in Index
01-20 14:00:03.699 4767 4811 E ReactNativeJS: in RCTView
01-20 14:00:03.699 4767 4811 E ReactNativeJS: in Unknown
01-20 14:00:03.699 4767 4811 E ReactNativeJS: in RCTView
01-20 14:00:03.699 4767 4811 E ReactNativeJS: in Unknown
01-20 14:00:03.699 4767 4811 E ReactNativeJS: in AppContainer, js engine: hermes
01-20 14:00:03.701 402 402 I RanchuHwc: validateDisplay: layer 66 CompositionType 1, fallback to client
01-20 14:00:03.701 402 402 I RanchuHwc: validateDisplay: layer 65 CompositionType 1, fallback to client
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: Error: Failed to setup client from useDevToolsPluginClient: [object Object]
01-20 14:00:03.702 4767 4812 E unknown:ReactNative:
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: This error is located at:
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: in Index
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: in RCTView
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: in Unknown
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: in RCTView
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: in Unknown
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: in AppContainer, js engine: hermes, stack:
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: ?anon_0_@1:3334106
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: asyncGeneratorStep@1:148149
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: _throw@1:148451
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: tryCallOne@53:15
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: anonymous@139:26
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: anonymous@1:321582
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: _callTimer@1:320581
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: _callReactNativeMicrotasksPass@1:320725
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: callReactNativeMicrotasks@1:322659
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: __callReactNativeMicrotasks@1:163417
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: anonymous@1:162552
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: __guard@1:163291
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: flushedQueue@1:162463
01-20 14:00:03.702 4767 4812 E unknown:ReactNative: callFunctionReturnFlushedQueue@1:162319
```

### Versions

`expo`: 50.0.2
`react-navigation/native`: 6.1.9
`react-navigation/stack`: 6.3.20
`react-navigation/drawer`: 6.6.6

Not sure if this is related to this plugin or react-router. Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.