Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard crash on Mac (iPad Compatibility) when setting multiline=true #257

Open
robertherber opened this issue Mar 31, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@robertherber
Copy link

Setting multiline to true when running on Mac (in iPad compatibility mode) results in a hard app crash for some reason.

I've tried to see if I can see anything in the logs, but so far no luck.

@tomekzaw
Copy link
Collaborator

tomekzaw commented Apr 1, 2024

@robertherber Thanks for reporting this issue. Let me know if you can provide the logs.

@tomekzaw tomekzaw added the bug Something isn't working label Apr 3, 2024
@tomekzaw
Copy link
Collaborator

Here's the crash:

Screenshot 2024-04-13 at 00 05 52

Here's the stack trace

Thread 1 Queue : com.apple.main-thread (serial)
#0	0x000000018508fff0 in objc_release ()
#1	0x0000000102e2aa7c in -[MarkdownLayoutManager setMarkdownUtils:] ()
#2	0x0000000186619d7c in -[NSObject(NSKeyValueCoding) setValue:forKey:] ()
#3	0x0000000102e2b328 in -[MarkdownTextInputDecoratorView didMoveToWindow] at /Users/tomekzaw/Expensify/react-native-live-markdown/ios/MarkdownTextInputDecoratorView.mm:76
#4	0x00000001b3ecc06c in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()
#5	0x00000001b3ecbcac in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()
#6	0x00000001b3ecbcac in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()
#7	0x00000001b3ecbcac in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()
#8	0x00000001b3e93c2c in __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke ()
#9	0x00000001b3e93ac4 in -[UIView(Hierarchy) _postMovedFromSuperview:] ()
#10	0x00000001b3e92e00 in -[UIView(Internal) _addSubview:positioned:relativeTo:] ()
#11	0x0000000102f46214 in -[UIView(React) didUpdateReactSubviews] at /Users/tomekzaw/Expensify/react-native-live-markdown/example/node_modules/react-native/React/Views/UIView+React.m:175
#12	0x0000000102f261a0 in -[RCTView didUpdateReactSubviews] at /Users/tomekzaw/Expensify/react-native-live-markdown/example/node_modules/react-native/React/Views/RCTView.m:580
#13	0x0000000102ef9e54 in __48-[RCTUIManager _dispatchChildrenDidChangeEvents]_block_invoke at /Users/tomekzaw/Expensify/react-native-live-markdown/example/node_modules/react-native/React/Modules/RCTUIManager.m:1284
#14	0x0000000102ef9404 in __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke at /Users/tomekzaw/Expensify/react-native-live-markdown/example/node_modules/react-native/React/Modules/RCTUIManager.m:1208
#15	0x0000000102ef96c8 in __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke_2 at /Users/tomekzaw/Expensify/react-native-live-markdown/example/node_modules/react-native/React/Modules/RCTUIManager.m:1228
#16	0x0000000102e991e8 in __RCTExecuteOnMainQueue_block_invoke at /Users/tomekzaw/Expensify/react-native-live-markdown/example/node_modules/react-native/React/Base/RCTUtils.m:265
#17	0x0000000106328f14 in _dispatch_call_block_and_release ()
#18	0x000000010632ab4c in _dispatch_client_callout ()
#19	0x000000010633ddcc in _dispatch_main_queue_drain ()
#20	0x000000010633d970 in _dispatch_main_queue_callback_4CF ()
#21	0x000000018557cea4 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#22	0x000000018553a760 in __CFRunLoopRun ()
#23	0x000000018553993c in CFRunLoopRunSpecific ()
#24	0x000000018fb02448 in RunCurrentEventLoopInMode ()
#25	0x000000018fb02284 in ReceiveNextEventCommon ()
#26	0x000000018fb01fdc in _BlockUntilNextEventMatchingListInModeWithFilter ()
#27	0x0000000188d18ed0 in _DPSNextEvent ()
#28	0x0000000189503eec in -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] ()
#29	0x0000000188d0c37c in -[NSApplication run] ()
#30	0x0000000188ce3640 in NSApplicationMain ()
#31	0x0000000188f358fc in _NSApplicationMainWithInfoDictionary ()
#32	0x000000019e1e16b8 in UINSApplicationMain ()
#33	0x00000001b3e440f8 in UIApplicationMain ()
#34	0x0000000102ba028c in main at /Users/tomekzaw/Expensify/react-native-live-markdown/example/ios/LiveMarkdownExample/main.m:8
#35	0x00000001850dd0e0 in start ()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants