Skip to content

Android app crashes when new package is installed in nodejs-project/package.json #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
olivier-nerot opened this issue Feb 24, 2025 · 0 comments

Comments

@olivier-nerot
Copy link

I When I install a new package, the application crashes when it starts (the window is shown with its UI, and then closes, even if I can still see it in the android 'opened apps' view, to select and open it again (before crashing again and again).
The adb logcat gives an 'unknown subreason' :

02-24 18:15:33.246  2398  2841 I AppEyeTopApp: handleAppExitInfo, isIgnoreUserAction uid:10509 fg2die:8968 keyback2die:222126254 actionup2die:128 appExitInfo=ApplicationExitInfo(timestamp=24/02/2025 18:15 pid=27428 realUid=10509 packageUid=10509 definingUid=10509 user=0 process=com.myseekret reason=1 (EXIT_SELF) subreason=0 (UNKNOWN) status=1 importance=100 pss=0,00 rss=0,00 description=null state=empty trace=null

To reproduce it (mac Os 12, node 22.13.0, tried also with 18):

npx @react-native-community/cli init
cd myApp
npm install nodejs-mobile-react-native --save
cd nodejs-assets/nodejs-project
npm i helia --save
npm run android

it crashes if there is a node_modules directory in nodejs-assets/nodejs-project. When it is removed, it works... but it crashes the same way as soon I require the library in `main.js`` (obviously if lib is not installed...)

rn_bridge.channel.on('startHelia', () => {
  const { createHelia } = require('helia');
} );

I don't know if it comes from helia packages. I've tried with fireproof with the same effect.

Did I missed anything in the setup ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant