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

Error when calling Share.share() on iOS #18

Open
Pitoum opened this issue Aug 13, 2016 · 2 comments
Open

Error when calling Share.share() on iOS #18

Pitoum opened this issue Aug 13, 2016 · 2 comments

Comments

@Pitoum
Copy link

Pitoum commented Aug 13, 2016

Hi,
Thanks for that solution so simple it made me cry (tears of joy of course) !
Unfortunately if it works perfectly on android, flash and windows, I didn't managed to make it work on iOS. I've traced the error on Xcode (it shuts down the app):
libc++abi.dylib: terminating with unexpected exception of type NSException

Have you any idea?
Thanks!

@Pitoum
Copy link
Author

Pitoum commented Aug 14, 2016

Full log:

MainScene.hx:238: 345.582608695652 -179.5 362 41
2016-08-14 16:09:26.010 proetry~[6681:30187] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[**NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]'
* First throw call stack:
(
0 CoreFoundation 0x000000010594ce65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000105d10deb objc_exception_throw + 48
2 CoreFoundation 0x000000010580b652 -[__NSPlaceholderArray initWithObjects:count:] + 290
3 CoreFoundation 0x00000001058687e4 +[NSArray arrayWithObjects:count:] + 52
4 proetry~ 0x00000001013b8988 ZN20openflShareExtension7doShareEPKcS1_S1_S1 + 248
5 proetry~ 0x00000001013b882e ZL8share_doP6_valueS0_S0_S0 + 78
6 proetry~ 0x0000000101cb9799 ZN17ExternalPrimitive5__runERK7DynamicS2_S2_S2 + 569
7 proetry~ 0x00000001013ba320 ZN7DynamicclERKS_S1_S1_S1 + 128
8 proetry~ 0x00000001019edacb _ZN9extension5share9Share_obj5shareE6StringS2_S2_S2_S2_S2_S2_7DynamicN2hx9ObjectPtrIN6openfl7_legacy7display14BitmapData_objEEE + 4123
9 proetry~ 0x0000000101b42138 _ZN13MainScene_obj6updateEv + 872
10 proetry~ 0x0000000101c00700 _ZN3com8haxepunk10Engine_obj6updateEv + 3968
11 proetry~ 0x0000000101c03c06 _ZN3com8haxepunk10Engine_obj12onEnterFrameEN2hx9ObjectPtrIN6openfl7_legacy6events9Event_objEEE + 854
12 proetry~ 0x0000000101c040a5 _ZN3com8haxepunk24__Engine_objonEnterFrameEPN2hx6ObjectERK7Dynamic + 85
13 proetry~ 0x0000000101d176e4 _ZN2hx16CMemberFunction15__runERK7Dynamic + 68
14 proetry~ 0x0000000101cc8b2d ZN7DynamicclERKS + 93
15 proetry~ 0x0000000101c4d6a2 _ZN6openfl7_legacy6events19EventDispatcher_obj13dispatchEventEN2hx9ObjectPtrINS1_9Event_objEEE + 2210
16 proetry~ 0x0000000101c1d602 _ZN6openfl7_legacy7display17DisplayObject_obj15__dispatchEventEN2hx9ObjectPtrINS0_6events9Event_objEEE + 610
17 proetry~ 0x0000000101c1d163 _ZN6openfl7_legacy7display17DisplayObject_obj11__broadcastEN2hx9ObjectPtrINS0_6events9Event_objEEE + 179
18 proetry~ 0x0000000101c12549 _ZN6openfl7_legacy7display26DisplayObjectContainer_obj11__broadcastEN2hx9ObjectPtrINS0_6events9Event_objEEE + 1193
19 proetry~ 0x0000000101c122dd _ZN6openfl7_legacy7display26DisplayObjectContainer_obj11__broadcastEN2hx9ObjectPtrINS0_6events9Event_objEEE + 573
20 proetry~ 0x0000000101c122dd _ZN6openfl7_legacy7display26DisplayObjectContainer_obj11__broadcastEN2hx9ObjectPtrINS0_6events9Event_objEEE + 573
21 proetry~ 0x0000000101532256 _ZN6openfl7_legacy7display9Stage_obj8__renderEb + 550
22 proetry~ 0x0000000101525d0f _ZN6openfl7_legacy7display9Stage_obj13__checkRenderEv + 863
23 proetry~ 0x0000000101531f3e _ZN6openfl7_legacy7display9Stage_obj12__pollTimersEv + 302
24 proetry~ 0x0000000101526a01 _ZN6openfl7_legacy7display9Stage_obj21__doProcessStageEventE7Dynamic + 3121
25 proetry~ 0x00000001015284a8 _ZN6openfl7_legacy7display9Stage_obj19__processStageEventE7Dynamic + 216
26 proetry~ 0x0000000101528589 _ZN6openfl7_legacy7display30__Stage_obj__processStageEventEPN2hx6ObjectERK7Dynamic + 89
27 proetry~ 0x0000000101d176e4 _ZN2hx16CMemberFunction15__runERK7Dynamic + 68
28 proetry~ 0x0000000101c57fab val_call1 + 123
29 proetry~ 0x00000001012ecf09 _Z16external_handlerRN3nme5EventEPv + 457
30 proetry~ 0x00000001012dacbe _ZN3nme5Stage11HandleEventERNS_5EventE + 1374
31 proetry~ 0x00000001012a1356 _ZN8IOSStage6OnPollEv + 310
32 QuartzCore 0x0000000104303a8c _ZN2CA7Display15DisplayLinkItem8dispatchEv + 50
33 QuartzCore 0x0000000104303956 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 418
34 CoreFoundation 0x00000001058acc84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
+ 20
35 CoreFoundation 0x00000001058ac831 __CFRunLoopDoTimer + 1089
36 CoreFoundation 0x000000010586e241 __CFRunLoopRun + 1937
37 CoreFoundation 0x000000010586d828 CFRunLoopRunSpecific + 488
38 GraphicsServices 0x0000000107125ad2 GSEventRunModal + 161
39 UIKit 0x0000000102c55610 UIApplicationMain + 171
40 proetry~ 0x00000001012a11f1 _ZN3nme15CreateMainFrameEPFvPNS_5FrameEEiijPKcPNS_7SurfaceE + 161
41 proetry~ 0x00000001012ecc1a _Z21nme_create_main_framePP6_valuei + 234
42 proetry~ 0x0000000101cb8b1c _ZN17ExternalPrimitive5__RunERK5ArrayI7DynamicE + 572
43 proetry~ 0x0000000101d11c82 ZN7DynamicclERKS_S1_S1_S1_S1_S1 + 226
44 proetry~ 0x0000000101c3326b _ZN6openfl7_legacy7Lib_obj6createE7DynamiciiN2hx4NullIdEENS4_IiEES6_6StringNS3_9ObjectPtrINS0_7display14BitmapData_objEEENS8_INS3_9Class_objEEE + 1483
45 proetry~ 0x0000000101c5189e _ZN19ApplicationMain_obj4mainEv + 1486
46 proetry~ 0x0000000101c54fed __hxcpp_main + 13
47 proetry~ 0x0000000101c55029 __hxcpp_lib_main + 41
48 proetry~ 0x0000000101cdf351 hxRunLibrary + 49
49 proetry~ 0x0000000100fcb1e0 main + 96
50 libdyld.dylib 0x000000010a02292d start + 1
)
libc++abi.dylib: terminating with unexpected exception of type NSException
(lldb)

@fbricker
Copy link
Contributor

Hi, can you provide some information about what are you calling / doing when the app crashes?

A piece of code reproducing the crash will be the best 👍

Thanks!
Federico

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