Skip to content

RN integration app crash upon root view invalidation #15

@gdaghero

Description

@gdaghero

I'm trying to integrate your lib in a react native project but whenever the app reloads and the root content is invalidated the app crashes (RCTRootContentView invalidate) .

Any help is much appreciated, leaving the stack trace below:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_UITextLayoutCanvasView contentViewInvalidated]: unrecognized selector sent to instance 0x7fbec9e34950'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011220128d __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00000001106b5894 objc_exception_throw + 48
	2   CoreFoundation                      0x00000001122163a3 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
	3   UIKitCore                           0x000000013442fd3c -[UIResponder doesNotRecognizeSelector:] + 266
	4   CoreFoundation                      0x0000000112205a20 ___forwarding___ + 1459
	5   CoreFoundation                      0x0000000112207c28 _CF_forwarding_prep_0 + 120
	6   Company                              0x00000001052d670c -[RCTRootContentView invalidate] + 124
	7   Company                              0x0000000105307675 __26-[RCTUIManager invalidate]_block_invoke + 533
	8   Company                              0x000000010531ca9a __RCTExecuteOnMainQueue_block_invoke + 26
	9   libdispatch.dylib                   0x0000000115605747 _dispatch_call_block_and_release + 12
	10  libdispatch.dylib                   0x00000001156069f7 _dispatch_client_callout + 8
	11  libdispatch.dylib                   0x0000000115616856 _dispatch_main_queue_drain + 1362
	12  libdispatch.dylib                   0x00000001156162f6 _dispatch_main_queue_callback_4CF + 31
	13  CoreFoundation                      0x000000011215d850 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	14  CoreFoundation                      0x000000011215818b __CFRunLoopRun + 2463
	15  CoreFoundation                      0x0000000112157409 CFRunLoopRunSpecific + 557
	16  GraphicsServices                    0x000000011df58187 GSEventRunModal + 137
	17  UIKitCore                           0x00000001343f83a2 -[UIApplication _run] + 972
	18  UIKitCore                           0x00000001343fce10 UIApplicationMain + 123
	19  Company                              0x0000000104c86748 main + 104
	20  dyld                                0x000000010f8023ee start_sim + 10
	21  ???                                 0x00000002070003a6 0x0 + 8707376038

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions