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

Crash on iOS #482

Open
BryanYin opened this issue Dec 14, 2023 · 4 comments
Open

Crash on iOS #482

BryanYin opened this issue Dec 14, 2023 · 4 comments

Comments

@BryanYin
Copy link

Below error happens on iOS 17, does anyone knows how to fix it?

[Bugly]  Trapped uncaught exception 'NSInvalidArgumentException', reason: '-[CSToastStyle signetDisplayShadow]: unrecognized selector sent to instance 0x282d4cb60' 
(
	0   CoreFoundation                      0x00000001b39c087c B37A1273-B0C2-312E-9E0B-7143FB645C69 + 968828
	1   libobjc.A.dylib                     0x00000001abce3c00 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001b3a5119c B37A1273-B0C2-312E-9E0B-7143FB645C69 + 1560988
	3   CoreFoundation                      0x00000001b3905ff8 B37A1273-B0C2-312E-9E0B-7143FB645C69 + 204792
	4   CoreFoundation                      0x00000001b3a46b10 _CF_forwarding_prep_0 + 96
	5   Runner                              0x00000001003e9004 -[UIView(SignetToast) toastViewForMessage:title:image:style:] + 332
	6   Runner                              0x00000001003e8564 -[UIView(SignetToast) makeToast:duration:position:style:] + 88
	7   fluttertoast                        0x000000010177cd4c __56-[FluttertoastPlugin makeToast:duration:position:style:]_block_invoke + 92
	8   libdispatch.dylib                   0x0000000102242b34 _dispatch_client_callout + 20
	9   libdispatch.dylib                   0x0000000102245c20 _dispatch_continuation_pop + 676
	10  libdispatch.dylib                   0x000000010225d078 _dispatch_source_latch_and_call + 480
	11  libdispatch.dylib                   0x000000010225bacc _dispatch_source_invoke + 860
	12  libdispatch.dylib                   0x0000000102252ebc _dispatch_main_queue_drain + 780
	13  libdispatch.dylib                   0x0000000102252ba0 _dispatch_main_queue_callback_4CF + 44
	14  CoreFoundation                      0x00000001b390b20c B37A1273-B0C2-312E-9E0B-7143FB645C69 + 225804
	15  CoreFoundation                      0x00000001b3907f18 B37A1273-B0C2-312E-9E0B-7143FB645C69 + 212760
	16  CoreFoundation                      0x00000001b3907668 CFRunLoopRunSpecific + 608
	17  GraphicsServices                    0x00000001f6cd25ec GSEventRunModal + 164
	18  UIKitCore                           0x00000001b5d242b4 F1A8BD61-9CF2-3054-B622-CB63D6CEB4CB + 2278068
	19  UIKitCore                           0x00000001b5d238f0 UIApplicationMain + 340
	20  Runner                              0x00000001002bcc8c main + 64
	21  dyld                                0x00000001d635adcc A795AD37-6266-385E-95E6-C1CA804C926E + 24012
)
@qianYuanJ
Copy link

me too

@qianYuanJ
Copy link

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CSToastStyle horizontalIntervalPadding]: unrecognized selector sent to instance 0x600003191380'
*** First throw call stack:
(
0 CoreFoundation 0x000000010e954761 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x000000010dcff904 objc_exception_throw + 48
2 CoreFoundation 0x000000010e969873 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x000000010e958ef4 forwarding + 1459
4 CoreFoundation 0x000000010e95b0f8 _CF_forwarding_prep_0 + 120
5 TUICore 0x000000010aa28992 -[UIView(TUIToast) toastViewForMessage:title:image:style:] + 4338
6 TUICore 0x000000010aa2659e -[UIView(TUIToast) makeToast:duration:position:style:] + 142
7 fluttertoast 0x000000010a9999b2 __56-[FluttertoastPlugin makeToast:duration:position:style:]_block_invoke + 98
8 libdispatch.dylib 0x0000000114d9c9f7 _dispatch_client_callout + 8
9 libdispatch.dylib 0x0000000114d9fc04 _dispatch_continuation_pop + 812
10 libdispatch.dylib 0x0000000114db5a2d _dispatch_source_invoke + 2228
11 libdispatch.dylib 0x0000000114dac6bf _dispatch_main_queue_drain + 955
12 libdispatch.dylib 0x0000000114dac2f6 _dispatch_main_queue_callback_4CF + 31
13 CoreFoundation 0x000000010e8b0dc4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
14 CoreFoundation 0x000000010e8ab6ff __CFRunLoopRun + 2463
15 CoreFoundation 0x000000010e8aa97d CFRunLoopRunSpecific + 557
16 GraphicsServices 0x000000011bf2708f GSEventRunModal + 137
17 UIKitCore 0x000000012fff053d -[UIApplication _run] + 972
18 UIKitCore 0x000000012fff4fab UIApplicationMain + 123
19 Runner 0x0000000100a11e2f main + 63
20 dyld 0x000000010950a3e0 start_sim + 10
21 ??? 0x0000000200d20386 0x0 + 8603698054
)
libc++abi: terminating due to uncaught exception of type NSException

@BryanYin
Copy link
Author

@qianYuanJ Just FYI, I switched to https://pub.dev/packages/overlay_support it also supports toast, with global overlay, it supports toast without BuildContext param.

@qianYuanJ
Copy link

qianYuanJ commented Jan 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants