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
App is crashing when using Alert module from react-native.
Same App (release APK) is working fine with jsc-android@latest, jsc-android@next and with RN debugger(while running in dev mode)
I am getting two different stack trace but every time there is Intermittent App crash while showing the Alert
Stack-trace 1
07-04 20:59:21.821 23725-23742/com.reactnativememoryprofile E/ReactNativeJS: TypeError: s.DialogManagerAndroid.showAlert is not a function
This error is located at:
in n
in withNavigationFocus(n)
in withNavigation(withNavigationFocus(n))
in p
in RCTView
in RCTView
in RCTView
in u
in RCTView
in u
in C
in n
in E
in RCTView
in n
in RCTView
in u
in PanGestureHandler
in n
in L
in RCTView
in n
in t
in P
in v
in A
in RCTView
in RCTView
in c
2.Install downloaded APK or react-native run-android on real device/ emulator or cd android && ./gradlew assembleRelease
3. Open App
4. Click on Crash Test button
5. In there is no crash, go back to home and repeat step 4
6. App generally crash in 4-5 attempts
The text was updated successfully, but these errors were encountered:
Summary:
JSI uses PointerValue to allocate String, Object, ...etc,
and JSI controls life cycle itself from invalidate().
JSCRuntime did use JSValueUnprotect() to prevent these values being GCed.
For V8Runtime, we just need to keep they wrapped as v8::Glocal<> and not as weak.
App is crashing when using Alert module from react-native.
Same App (release APK) is working fine with jsc-android@latest, jsc-android@next and with RN debugger(while running in dev mode)
I am getting two different stack trace but every time there is Intermittent App crash while showing the Alert
Stack-trace 1
Stack-trace 2
Environment:
React Native Version 0.60.0
OS: Mac OS Mojave 10.14.5
Android Studio: Version 3.4.1
Android Device : Emulator
CPU/ABI: Google APIs Intel Atom (x86_64)
Target: google_apis [Google APIs] (API level 23)
Skin: 720x1280
SD Card: 512M
fastboot.chosenSnapshotFile:
runtime.network.speed: full
hw.accelerometer: yes
hw.lcd.width: 1280
hw.initialOrientation: Portrait
image.androidVersion.api: 23
tag.id: google_apis
hw.mainKeys: yes
hw.camera.front: emulated
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: false
fastboot.forceColdBoot: no
hw.cpu.ncore: 4
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 720
vm.heapSize: 80
skin.dynamic: yes
hw.device.manufacturer: User
hw.gps: yes
skin.path.backup: _no_skin
hw.audioInput: yes
image.sysdir.1: system-images/android-23/google_apis/x86_64/
showDeviceFrame: no
hw.camera.back: virtualscene
hw.lcd.density: 320
hw.arc: false
hw.device.hash2: MD5:76591743eff70968fb44614cfd0d863d
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google APIs
runtime.network.latency: none
disk.dataPartition.size: 800M
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
Steps To Reproduce
1.1 Or Clone https://github.com/bhaskarGyan/react-native-memory-profile.git
1.2 checkout bug/rn-alert-crash
1.3 npm i
2.Install downloaded APK or react-native run-android on real device/ emulator or cd android && ./gradlew assembleRelease
3. Open App
4. Click on Crash Test button
5. In there is no crash, go back to home and repeat step 4
6. App generally crash in 4-5 attempts
The text was updated successfully, but these errors were encountered: