RepairShopr / react-native-signature-capture

A simple modular component for react native (iOS) to capture a signature as an image
MIT License
963 stars 514 forks source link

iOS crash on mount #212

Open antoinerousseau opened 4 years ago

antoinerousseau commented 4 years ago

on iPhone 8 plus, iOS 13.3.1, randomly:

EXC_BAD_ACCESS Attempted to dereference garbage pointer 0x1cc. 
    Frameworks/OpenGLES.framework/OpenGLES +[EAGLContext setCurrentContext:]
    node_modules/react-native-signature-capture/ios/PPSSignatureView.m:130:8 -[PPSSignatureView commonInit]
    node_modules/react-native-signature-capture/ios/PPSSignatureView.m:169:54 -[PPSSignatureView initWithFrame:context:]
    node_modules/react-native-signature-capture/ios/RSSignatureView.m:64:10 -[RSSignatureView layoutSubviews]
    PrivateFrameworks/UIKitCore.framework/UIKitCore -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
    Frameworks/QuartzCore.framework/QuartzCore -[CALayer layoutSublayers]
    Frameworks/QuartzCore.framework/QuartzCore CA::Layer::layout_if_needed(CA::Transaction*)
    Frameworks/QuartzCore.framework/QuartzCore CA::Layer::layout_and_display_if_needed(CA::Transaction*)
    Frameworks/QuartzCore.framework/QuartzCore CA::Context::commit_transaction(CA::Transaction*, double)
    Frameworks/QuartzCore.framework/QuartzCore CA::Transaction::commit()
    Frameworks/QuartzCore.framework/QuartzCore CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
    Frameworks/CoreFoundation.framework/CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
    Frameworks/CoreFoundation.framework/CoreFoundation ___CFRunLoopDoObservers
    Frameworks/CoreFoundation.framework/CoreFoundation ___CFRunLoopRun
    Frameworks/CoreFoundation.framework/CoreFoundation _CFRunLoopRunSpecific
    PrivateFrameworks/GraphicsServices.framework/GraphicsServices _GSEventRunModal
    PrivateFrameworks/UIKitCore.framework/UIKitCore _UIApplicationMain
    PaPlar/main.m:14:12 main
    /usr/lib/system/libdyld.dylib _start

https://github.com/RepairShopr/react-native-signature-capture/blob/b8236b8635eeba0fc31083388808c58b5518c7e1/ios/PPSSignatureView.m#L130

tusharmutreja200 commented 4 years ago

facing same issue

fengarenas commented 3 years ago

@antoinerousseau https://stackoverflow.com/questions/12603161/ios-6-mkmapview-crashes-on-eaglcontext-setcurrentcontext https://developer.apple.com/library/archive/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/ConcurrencyandOpenGLES/ConcurrencyandOpenGLES.html#//apple_ref/doc/uid/TP40008793-CH409-SW7

Jazibabdullah commented 2 years ago

@tusharmutreja200 Have you found any solution?

vishalSharmaCfcs commented 3 months ago

use IOS 17.2 in latest it get crashed