Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Updating new release causes crash #182

Description

@oney

First, it never happened in my test. Today I released new update via CodePush, in the Crashlytics, about 200 users (25%) encountered the crash. In last email sent by @lostintangent to me, he said that he got two update prompts in a row, and then the app worked fine, but after he restarted it, it seemed to keep crashing. I guess this crash is related to it. Unfortunately, I can't reproduce it in my test.
The crash log is

Thread : Fatal Exception: RCTFatalException: Unhandled JS Exception: Invariant Violation: Callback with id 22: CodePush.getCurrentPackage() not found
0  CoreFoundation                 0x18369d900 __exceptionPreprocess
1  libobjc.A.dylib                0x182d0bf80 objc_exception_throw
2  CoreFoundation                 0x18369d848 -[NSException initWithCoder:]
3  GoodnightReact                 0x100137860 RCTFatal
4  GoodnightReact                 0x1001326c0 -[RCTExceptionsManager reportFatalException:stack:exceptionId:]
5  CoreFoundation                 0x1836a3430 __invoking___
6  CoreFoundation                 0x1835a0eb4 -[NSInvocation invoke]
7  CoreFoundation                 0x1835a57e0 -[NSInvocation invokeWithTarget:]
8  GoodnightReact                 0x100135f58 -[RCTModuleMethod invokeWithBridge:module:arguments:]
9  GoodnightReact                 0x100155724 -[RCTBatchedBridge _handleRequestNumber:moduleID:methodID:params:]
10 GoodnightReact                 0x100155114 __33-[RCTBatchedBridge handleBuffer:]_block_invoke388
11 libdispatch.dylib              0x1830f1630 _dispatch_call_block_and_release
12 libdispatch.dylib              0x1830f15f0 _dispatch_client_callout
13 libdispatch.dylib              0x1830fd634 _dispatch_queue_drain
14 libdispatch.dylib              0x1830f50f4 _dispatch_queue_invoke
15 libdispatch.dylib              0x1830f15f0 _dispatch_client_callout
16 libdispatch.dylib              0x1830ffa88 _dispatch_root_queue_drain
17 libdispatch.dylib              0x1830ff224 _dispatch_worker_thread3
18 libsystem_pthread.dylib        0x183305470 _pthread_wqthread
19 libsystem_pthread.dylib        0x183305020 start_wqthread

I am using react-native 0.17.0 and react-native-code-push 1.5.2-beta on iOS. The version is little old, so I am not sure whether the bug still exist on latest version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions