Skip to content

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

Open
@olivier-nerot

Description

@olivier-nerot

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions