1

When I envoke '[GlympseLiteWrapper instance].glympse->sendTicket(_glympseTicket, wizardFlags);'

I am getting a debugger breakpoint (exception) in Thread 1: it seems to originate from +[NSBundle(glympse) liteBundle]_block_invoke

Anyone else having this issue or know how to fix this problem?

Glympse API version: 1.0.5

I have used version 1.0.2 on iOS 6 and iOS 7.0 with success, but this problem seemed to appear when building with Xcode 5.1 against iOS 7.1.

I do have the "-ObjC" flag set.

Note: I originally posted this in the wrong location: https://github.com/Glympse/glympse-app-sdk/issues/1#issuecomment-39362544

Edit #1: (I also tried this using iOS 7.0 base, so now I am not sure what is going on) Here is the full stack trace: Thread 1, Queue : com.apple.main-thread

#0  0x036948b9 in objc_exception_throw ()
#1  0x04d09fbb in +[NSException raise:format:] ()
#2  0x011bd78e in -[NSBundle initWithURL:] ()
#3  0x000bc78c in __31+[NSBundle(glympse) liteBundle]_block_invoke at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/Categories/NSBundle+glympse.mm:35
#4  0x03a154d0 in _dispatch_client_callout ()
#5  0x03a04e12 in dispatch_once_f ()
#6  0x03a04d55 in dispatch_once ()
#7  0x000bc70d in _dispatch_once(long*, void () block_pointer) [inlined] at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/include/dispatch/once.h:68
#8  0x000bc6f5 in +[NSBundle(glympse) liteBundle] at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/Categories/NSBundle+glympse.mm:34
#9  0x00115df6 in -[GLYConfiguratorViewerOwner ensureWindowCreated] at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:113
#10 0x0011625c in -[GLYConfiguratorViewerOwner showSendWizard:ticket:intro:flags:listener:] at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:166
#11 0x00115b7d in +[GLYConfiguratorViewerOwner showSendWizard:ticket:intro:flags:listener:] at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYConfigurator/GLYConfiguratorViewerOwner.mm:80
#12 0x001192ad in Glympse::ControlsFactory::showSendWizard(Glympse::O<Glympse::IGlympse> const&, Glympse::O<Glympse::ITicket> const&, bool, int, Glympse::O<Glympse::IUiControlListener> const&) at /Users/egorpushkin/Projects/Glympse/ClientAPI/Cpp/Platforms/iOS/controls/GLYCommon/ControlsFactory.mm:23
#13 0x002a41a9 in Glympse::GlympseLite::sendTicket(Glympse::O<Glympse::ITicketLite> const&, int) ()
#14 0x00062b02 in -[LiveDataViewController sendGlympse] at /Users/sgano/Desktop/HotAir_v8.0.2/Classes/LiveDataViewController.mm:2845
#15 0x0005a82c in __40-[LiveDataViewController viewDidAppear:]_block_invoke at /Users/sgano/Desktop/HotAir_v8.0.2/Classes/LiveDataViewController.mm:475
#16 0x03a007b8 in _dispatch_call_block_and_release ()
#17 0x03a154d0 in _dispatch_client_callout ()
#18 0x03a029c6 in _dispatch_after_timer_callback ()
#19 0x03a154d0 in _dispatch_client_callout ()
#20 0x03a0be93 in _dispatch_source_latch_and_call ()
#21 0x03a0643f in _dispatch_source_invoke ()
#22 0x03a036b6 in _dispatch_main_queue_callback_4CF ()
#23 0x04d6f43e in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#24 0x04cb05cb in __CFRunLoopRun ()
#25 0x04caf9d3 in CFRunLoopRunSpecific ()
#26 0x04caf7eb in CFRunLoopRunInMode ()
#27 0x04a155ee in GSEventRunModal ()
#28 0x04a1542b in GSEventRun ()
#29 0x01546f9b in UIApplicationMain ()
#30 0x000029df in main at /Users/sgano/Desktop/HotAir_v8.0.2/main.m:14
ShawnG
  • 123
  • 1
  • 6
  • Could you please attach complete stack trace of the crash you are seeing? – Egor Pushkin Apr 03 '14 at 02:21
  • Sure thing; I just added it. – ShawnG Apr 03 '14 at 02:38
  • @ShawnG Thanks for posting the issue here, I'm looking into it and will get back to you ASAP. As a side note, does running the History sample included in the 1.0.5 download produce this same crash for you? – MechEthan Apr 03 '14 at 02:53
  • Yes - the examples run fine under iOS 7.1. (though the clock and battery icons appear over the top of the Glympse view - but that is a different issue, and if I could get that far I would be quite happy). Ugh - so that means there is some setting/flag/or issue within my project that is not calling the Glympse SDK properly. I am still digging to find differences. I did have this working before migrating to iOS 7; trying to figure out what changed. – ShawnG Apr 03 '14 at 03:25
  • I am really grasping for differences, not sure if this means anything but in my GlympseLiteWrapper (which is the exact same as the demos) the line "_apiKey = Glympse::LiteFactory::createString" is all in green in Xcode, however in the demo that same line is mostly blue. Does this mean the framework is not being loaded properly? – ShawnG Apr 03 '14 at 04:06
  • (note: I am using the "midnight" color scheme in Xcode) – ShawnG Apr 03 '14 at 04:13
  • My project is also using ARC; I noticed the example wasn't (just trying to list the differences incase any of it helps). – ShawnG Apr 03 '14 at 16:20

1 Answers1

1

I believe I have just solved the problem! I needed to add the "GlympseResourcesLite.bundle" to the Copy Bundle Resources area of the Target's Build Phases section. Once I did that it cleared up the exception.

You may want to add that note (and the -ObjC linker flag requirement) to the Client Integration Guide -- it might help out future devs.

Note: I got this idea from reading abbood's answer to this question: Objective-C categories in static library

Community
  • 1
  • 1
ShawnG
  • 123
  • 1
  • 6
  • Thank you for following up on this, it's greatly appreciated. Documentation updates are queued up to happen. Thanks again! – MechEthan Apr 15 '14 at 18:14