Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1852

[realm-core-11.14.0] Assertion failed: ObjectWrap<ParentClassType>::s_ctor

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      SDK and version

      SDK : Cocoa
      Version: [realm-core-11.14.0]

      Observations

      • How frequent do the crash occur?
        Happens on reload(when triggering RCTTriggerReloadCommandListeners)
      • Does it happen in production or during dev/test?
        Happens on production only, and not on dev.
      • Can the crash be reproduced by you?
        Reloading the app can reproduce this issue
      • Can you provide instructions for how we can reproduce it?

      modules in RN app:

          "react": "17.0.2",
          "react-native": "0.66.4",
          "react-native-action-button": "2.8.5",
          "react-native-camera": "3.1.1",
          "react-native-contacts": "5.0.2",
          "react-native-device-info": "v2.3.2",
          "react-native-image-crop-picker": "0.25.3",
          "react-native-linear-gradient": "2.5.6",
          "react-native-simple-toast": "0.1.1",
          "react-native-video": "5.2.0",
          "react-native-webview": "6.9.0",
          "react-native-youtube-iframe": "2.2.2",
          "react-navigation": "2.18.0",
          "realm": "10.20.0-beta.5",
      

      This is happening on reloading the app by running command on production mode only, and not on dev mode.

      dispatch_sync(dispatch_get_main_queue(), ^{
              RCTTriggerReloadCommandListeners(@"Restart");
      });
      

      Crash log / stacktrace

      ``` /Users/kraen.hansen/Projects/realm-js/src/jsi/jsi_class.hpp:357: [realm-core-11.14.0] Assertion failed: ObjectWrap<ParentClassType>::s_ctor
      0 Ajjas 0x0000000102b5cbbc ZN5realm4utilL18terminate_internalERNSt3_118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
      1 Ajjas 0x0000000102b5ce60 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 328
      2 Ajjas 0x000000010278e7f8 _ZN5realm2js8realmjsi10ObjectWrapINS0_8SetClassINS1_5TypesEEEE18create_constructorENS0_6JsiEnvE + 5124
      3 Ajjas 0x00000001027843c0 _ZN5realm2js10RealmClassINS0_8realmjsi5TypesEE18create_constructorENS0_6JsiEnvE + 112
      4 Ajjas 0x00000001027841d4 realm_jsi_init + 32
      5 Ajjas 0x000000010272a510 __24-[RealmReact setBridge:]_block_invoke + 296
      6 Ajjas 0x0000000102516488 ZN8facebook5react17tryAndReturnErrorERKNSt3_18functionIFvvEEE + 32
      7 Ajjas 0x000000010250b428 -[RCTCxxBridge _tryAndHandleError:] + 100
      8 Foundation 0x000000019794df00 EE1ABAF2-3D71-37FB-9067-15AA79528619 + 253696
      9 CoreFoundation 0x00000001961d3414 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 766996
      10 CoreFoundation 0x00000001961e41a0 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 836000
      11 CoreFoundation 0x000000019611d694 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 22164
      12 CoreFoundation 0x000000019612305c 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 45148
      13 CoreFoundation 0x0000000196136bc8 CFRunLoopRunSpecific + 600
      14 Ajjas 0x000000010250b35c +[RCTCxxBridge runRunLoop] + 264
      15 Foundation 0x000000019797941c EE1ABAF2-3D71-37FB-9067-15AA79528619 + 431132
      16 libsystem_pthread.dylib 0x0000000207b199ac _pthread_start + 148
      17 libsystem_pthread.dylib 0x0000000207b18e68 thread_start + 8!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose2022-08-28 14:57:31.039648+0530 Ajjas[84515:4453266] /Users/kraen.hansen/Projects/realm-js/src/jsi/jsi_class.hpp:357: [realm-core-11.14.0] Assertion failed: ObjectWrap<ParentClassType>::s_ctor
      0 Ajjas 0x0000000102b5cbbc ZN5realm4utilL18terminate_internalERNSt3_118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 28
      1 Ajjas 0x0000000102b5ce60 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 328
      2 Ajjas 0x000000010278e7f8 _ZN5realm2js8realmjsi10ObjectWrapINS0_8SetClassINS1_5TypesEEEE18create_constructorENS0_6JsiEnvE + 5124
      3 Ajjas 0x00000001027843c0 _ZN5realm2js10RealmClassINS0_8realmjsi5TypesEE18create_constructorENS0_6JsiEnvE + 112
      4 Ajjas 0x00000001027841d4 realm_jsi_init + 32
      5 Ajjas 0x000000010272a510 __24-[RealmReact setBridge:]_block_invoke + 296
      6 Ajjas 0x0000000102516488 ZN8facebook5react17tryAndReturnErrorERKNSt3_18functionIFvvEEE + 32
      7 Ajjas 0x000000010250b428 -[RCTCxxBridge _tryAndHandleError:] + 100
      8 Foundation 0x000000019794df00 EE1ABAF2-3D71-37FB-9067-15AA79528619 + 253696
      9 CoreFoundation 0x00000001961d3414 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 766996
      10 CoreFoundation 0x00000001961e41a0 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 836000
      11 CoreFoundation 0x000000019611d694 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 22164
      12 CoreFoundation 0x000000019612305c 6B22DD81-3585-3BE6-BC77-BA19810EC0F2 + 45148
      13 CoreFoundation 0x0000000196136bc8 CFRunLoopRunSpecific + 600
      14 Ajjas 0x000000010250b35c +[RCTCxxBridge runRunLoop] + 264
      15 Foundation 0x000000019797941c EE1ABAF2-3D71-37FB-9067-15AA79528619 + 431132
      16 libsystem_pthread.dylib 0x0000000207b199ac _pthread_start + 148
      17 libsystem_pthread.dylib 0x0000000207b18e68 thread_start + 8!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose
      dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib```

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: