EXC_BAD_ACCESS crash in async methods
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- react-native, typescript
- Domain
- mobile
Research direction
Start with the linked expo-pshenmic-dpp-test reproduction: run npm i, npx prebuild, and npm run ios, then exercise node-api methods inside asynchronous code with await after the response. Compare behavior with the pending node-api implementation PR and confirm whether the EXC_BAD_ACCESS crash remains reproducible; the issue does not name source files or tests.
Written by the indexing model from the issue text.
Description
Problem
In recent tests, we found a bug that causes the application to crash. When attempting to call any method from node-api in an asynchronous code block, we receive the error com.facebook.react.runtime.JavaScript: EXC_BAD_ACCESS (code=1, address=0x0). This applies to all methods within the library.
Recent tests have shown that the error only occurs when we call the method inside an asynchronous code block and await after receiving a response. The behavior is unstable, and in certain cases everything works as it should, but repeated execution can cause this error.
upd: maybe gc. Waiting node-api implementation PR merge
Reproduce
git clone https://github.com/owl352/expo-pshenmic-dpp-testnpm inpx prebuildnpm run ios
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 12
- Avg merge
- 4h 8m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from callstackincubator/react-native-node-api
-
Android 🤖
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
Sanity check of Hermes source directory via environment variable, when building Android projectsOpenAndroid 🤖 good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
callstackincubator/react-native-node-api#163 · 1 comment ·
-
enhancement good first issue gyp-to-cmake
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
callstackincubator/react-native-node-api#161 · 3 comments · 1 reaction ·
-
enhancement Linking 🔗
Difficulty 5/5 Over a week Newbie friendliness 8/100
-
enhancement Linking 🔗
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in callstackincubator/react-native-node-api
Similar issues
-
prio:low scope:hud
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OliverRomhagen/vrigstad-joyride#953 ·
Maintainers usually reply within 1 day
-
review-followup
Difficulty 1/5 Under an hour Newbie friendliness 92/100
griffinwork40/agent-afk#5446 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
kacper-szewczyk/Ticknest#346 ·
Maintainers usually reply within 1 day
-
echarts geo: a GeoJSON URL that returns 200 with a body that is not JSON is fetched on each refreshOpenbug plugin/echarts/geo
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Yeachan-Heo/gajae-code#8230 ·
Maintainers usually reply within 1 day