You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately i cant reproduce this issue locally,
After looking at the stack trace i saw that there is a WritableMap in the TaskConfig class
and i think that instead of
// Insert our custom taskId for users to call finishHeadlessTask(taskId) with.
params.putInt("taskId", mTaskId);
mParams = params;
we need:
// Create a copy of the original params map to ensure it is not modified
mParams = params.copy(); // Using copy() to create a new independent map
// Insert our custom taskId for users to call finishHeadlessTask(taskId) with.
mParams.putInt("taskId", mTaskId);
What do you think ?
If it is acceptable, i can open a PR.
@MaxToyberman - PR #1176should fix this, and it's already released as v9.1.8 here as of last night, could you try that?
Meanwhile I'm going to locally revert that and see if I can reproduce it to affirm I see the crash (rather than just "the possibility of a crash via code inspection") and that this does actually fix it. But I may never be able to reproduce so getting it in a release with someone that has observed crashes in the wild could really help.
Hypothesis is that this is what can happen if multiple events are triggered in the background on a killed app all at once, queueing rapidly enough that there are multiple events in the queue when react-native startup is complete and we internally race to drain the queue, with multiple queued event queue drains instead of just one.
@MaxToyberman I'm unable to reproduce it despite some effort but I really do think the fix in v9.1.8 should fix it based on code inspection, I'll have to wait to hear back from you after rolling that out.
After the fix in #1168 i have started seeing many errors in Crashlytics with the following stack trace:
Unfortunately i cant reproduce this issue locally,
After looking at the stack trace i saw that there is a WritableMap in the TaskConfig class
and i think that instead of
we need:
What do you think ?
If it is acceptable, i can open a PR.
Thanks
Originally posted by @MaxToyberman in #266 (comment)
The text was updated successfully, but these errors were encountered: