Skip to content

Instantly share code, notes, and snippets.

@stoffen
Created September 11, 2014 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoffen/9f99e5f90256ab6e4c51 to your computer and use it in GitHub Desktop.
Save stoffen/9f99e5f90256ab6e4c51 to your computer and use it in GitHub Desktop.
* thread #12: tid = 0x105f06e, 0x000000011065600b libobjc.A.dylib`objc_msgSend + 11, stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
* frame #0: 0x000000011065600b libobjc.A.dylib`objc_msgSend + 11
frame #1: 0x0000000110654178 libobjc.A.dylib`objc_object::sidetable_release_slow((anonymous namespace)::SideTable*, bool) + 162
frame #2: 0x000000011065424c libobjc.A.dylib`objc_object::sidetable_release(bool) + 170
frame #3: 0x000000010da2035c godtkart`AGSFileFormatForImageFormatWithJPEGEqualToJPG + 396
frame #4: 0x000000010daa8020 godtkart`-[AGSWMTSLayer urlForTileKey:] + 64
frame #5: 0x000000010daa1237 godtkart`-[AGSTiledServiceLayer requestTileForKey:] + 71
frame #6: 0x000000010daa35ad godtkart`AGSTileRequestCallback::request_tile(int, int, int) + 109
frame #7: 0x000000010e0aa0a2 godtkart`Esri_runtimecore::Map_renderer::Service_tile_layer::send_tile_request_(std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Tile_layer::Tile_request_message> const&) + 290
frame #8: 0x000000010e0a9b59 godtkart`Esri_runtimecore::Map_renderer::Service_tile_layer::process_message_(std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Layer_2D::Message> const&) + 313
frame #9: 0x000000010e087744 godtkart`Esri_runtimecore::Map_renderer::Layer_2D::Message::on_process_() + 116
frame #10: 0x000000010dda64ad godtkart`Esri_runtimecore::Common::Queued_thread::process_message_(std::__1::shared_ptr<Esri_runtimecore::Common::Message_queue::Message> const&) + 125
frame #11: 0x000000010dda652f godtkart`Esri_runtimecore::Common::Queued_thread::execute_() + 63
frame #12: 0x000000010dda5bc9 godtkart`Esri_runtimecore::Common::Thread::thread_proc(Esri_runtimecore::Common::Thread*) + 73
frame #13: 0x000000010e4aed4f godtkart`void* std::__1::__thread_proxy<std::__1::tuple<void (*)(Esri_runtimecore::Common::Thread*), Esri_runtimecore::Common::Thread*> >(void*) + 95
frame #14: 0x0000000113459899 libsystem_pthread.dylib`_pthread_body + 138
frame #15: 0x000000011345972a libsystem_pthread.dylib`_pthread_start + 137
frame #16: 0x000000011345dfc9 libsystem_pthread.dylib`thread_start + 13
@stoffen
Copy link
Author

stoffen commented Sep 11, 2014

This code:

func getOnlineMapLayer() -> AGSLayer {
    println("sourceUrl: \(self.sourceUrl) layer: \(self.layer)")
    return AGSWMTSLayer.wmtsLayerWithUrl(NSURL(string:self.sourceUrl), title: self.layer, imageFormat: AGSImageFormatPNG24, tileMatrixSet: "EPSG:32633") as AGSWMTSLayer
}

Produce this:

sourceUrl: http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts layer: topo2
setting capabilities full envelope
godtkart(58752,0x116471000) malloc: *** error for object 0x7fd4f9c4f670: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
(lldb) bt

  • thread #13: tid = 0x106e2a4, 0x000000010638f866 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT
    • frame #0: 0x000000010638f866 libsystem_kernel.dylib__pthread_kill + 10 frame #1: 0x00000001063d535c libsystem_pthread.dylibpthread_kill + 92
      frame #2: 0x000000010612219a libsystem_sim_c.dylibabort + 129 frame #3: 0x0000000106265553 libsystem_malloc.dylibfree + 428
      frame #4: 0x00000001035c79ec libobjc.A.dylibobject_dispose + 30 frame #5: 0x0000000104001949 CoreFoundation-[_NSArrayI dealloc] + 121
      frame #6: 0x00000001035cf178 libobjc.A.dylibobjc_object::sidetable_release_slow((anonymous namespace)::SideTable*, bool) + 162 frame #7: 0x00000001035cf24c libobjc.A.dylibobjc_object::sidetable_release(bool) + 170
      frame #8: 0x0000000100998ebc godtkartAGSFileFormatForImageFormatWithJPEGEqualToJPG + 396 frame #9: 0x0000000100a20b80 godtkart-[AGSWMTSLayer urlForTileKey:] + 64
      frame #10: 0x0000000100a19d97 godtkart-[AGSTiledServiceLayer requestTileForKey:] + 71 frame #11: 0x0000000100a1c10d godtkartAGSTileRequestCallback::request_tile(int, int, int) + 109
      frame #12: 0x0000000101022c02 godtkartEsri_runtimecore::Map_renderer::Service_tile_layer::send_tile_request_(std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Tile_layer::Tile_request_message> const&) + 290 frame #13: 0x00000001010226b9 godtkartEsri_runtimecore::Map_renderer::Service_tile_layer::process_message
      (std::_1::shared_ptr<Esri_runtimecore::Map_renderer::Layer_2D::Message> const&) + 313
      frame #14: 0x00000001010002a4 godtkartEsri_runtimecore::Map_renderer::Layer_2D::Message::on_process_() + 116 frame #15: 0x0000000100d1f00d godtkartEsri_runtimecore::Common::Queued_thread::process_message
      (std::_1::shared_ptr<Esri_runtimecore::Common::Message_queue::Message> const&) + 125
      frame #16: 0x0000000100d1f08f godtkartEsri_runtimecore::Common::Queued_thread::execute_() + 63 frame #17: 0x0000000100d1e729 godtkartEsri_runtimecore::Common::Thread::thread_proc(Esri_runtimecore::Common::Thread
      ) + 73
      frame #18: 0x00000001014278af godtkartvoid_ std::__1::__thread_proxy<std::__1::tuple<void (*)(Esri_runtimecore::Common::Thread*), Esri_runtimecore::Common::Thread*> >(void*) + 95 frame #19: 0x00000001063d4899 libsystem_pthread.dylib_pthread_body + 138
      frame #20: 0x00000001063d472a libsystem_pthread.dylib_pthread_start + 137 frame #21: 0x00000001063d8fc9 libsystem_pthread.dylibthread_start + 13

@stoffen
Copy link
Author

stoffen commented Sep 22, 2014

The previous crash I believe I´ve only seen in the simulator. This one I´m seeing on device as well.

Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x0000000197e63bd0 objc_msgSend + 16
1 Foundation 0x0000000188670614 NSKeyValuePushPendingNotificationPerThread + 340
2 Foundation 0x000000018865d64c NSKeyValueWillChange + 560
3 Foundation 0x0000000188647328 -[NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] + 224
4 godtkart 0x00000001002a1cc0 -[AGSMapViewBase updateRotationAngleIVar:withKVO:forceUpdateIfNoChange:] + 88
5 godtkart 0x00000001002a157c -[AGSMapViewBase ags_mapHasDrawn] + 736
6 godtkart 0x00000001001d23e4 -[AGSMapRenderer drawRequested] + 636
7 godtkart 0x00000001001d1dc0 -[AGSMapRenderer pulse:] + 268
8 QuartzCore 0x000000018b99164c CA::Display::DisplayLinkItem::dispatch() + 32
9 QuartzCore 0x000000018b9914e4 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 324
10 IOKit 0x00000001889add84 IODispatchCalloutFromCFMessage + 376
11 CoreFoundation 0x000000018780cf34 CFMachPortPerform + 180
12 CoreFoundation 0x0000000187821b38 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 56
13 CoreFoundation 0x0000000187821a98 __CFRunLoopDoSource1 + 436
14 CoreFoundation 0x000000018781fa18 __CFRunLoopRun + 1640
15 CoreFoundation 0x000000018774d664 CFRunLoopRunSpecific + 396
16 GraphicsServices 0x000000019088f5a4 GSEventRunModal + 168
17 UIKit 0x000000018c052984 UIApplicationMain + 1488
18 godtkart 0x000000010013ea98 top_level_code (AppDelegate.swift)
19 godtkart 0x000000010013ead8 main (AppDelegate.swift)
20 libdyld.dylib 0x00000001984bea08 start + 4

@stoffen
Copy link
Author

stoffen commented Nov 2, 2014

  • thread #22: tid = 0x1f478a8, 0x0608669e libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT
    • frame #0: 0x0608669e libsystem_kernel.dylib__pthread_kill + 10 frame #1: 0x060b4fd5 libsystem_pthread.dylibpthread_kill + 101
      frame #2: 0x05e2da5a libsystem_sim_c.dylibabort + 156 frame #3: 0x05f61039 libsystem_malloc.dylibfree + 428
      frame #4: 0x04a97f71 libobjc.A.dylibobject_dispose + 28 frame #5: 0x05083d4e CoreFoundation-[_NSArrayI dealloc] + 126
      frame #6: 0x04aa0658 libobjc.A.dylibobjc_object::sidetable_release_slow((anonymous namespace)::SideTable*, bool) + 170 frame #7: 0x04aa0728 libobjc.A.dylibobjc_object::sidetable_release(bool) + 174
      frame #8: 0x04a9fe9b libobjc.A.dylibobjc_release + 43 frame #9: 0x002b2121 godtkartAGSFileFormatForImageFormatWithJPEGEqualToJPG + 401
      frame #10: 0x00351fb4 godtkart-[AGSWMTSLayer urlForTileKey:] + 68 frame #11: 0x00349b1f godtkart-[AGSTiledServiceLayer requestTileForKey:] + 79
      frame #12: 0x0034c784 godtkartAGSTileRequestCallback::request_tile(int, int, int) + 116 frame #13: 0x009d29f8 godtkartEsri_runtimecore::Map_renderer::Service_tile_layer::send_tile_request
      (std::1::shared_ptr<Esri_runtimecore::Map_renderer::Tile_layer::Tile_request_message> const&) + 296
      frame #14: 0x009d24c1 godtkartEsri_runtimecore::Map_renderer::Service_tile_layer::process_message_(std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Layer_2D::Message> const&) + 337 frame #15: 0x009af85d godtkartEsri_runtimecore::Map_renderer::Layer_2D::Message::on_process
      () + 109
      frame #16: 0x006b899e godtkartEsri_runtimecore::Common::Queued_thread::process_message_(std::__1::shared_ptr<Esri_runtimecore::Common::Message_queue::Message> const&) + 126 frame #17: 0x006b8a2b godtkartEsri_runtimecore::Common::Queued_thread::execute
      () + 75
      frame #18: 0x006b8138 godtkartEsri_runtimecore::Common::Thread::thread_proc(Esri_runtimecore::Common::Thread*) + 72 frame #19: 0x00ee56b1 godtkartvoid* std::__1::__thread_proxy<std::__1::tuple<void ()(Esri_runtimecore::Common::Thread), Esri_runtimecore::Common::Thread*> >(void*) + 97
      frame #20: 0x060b2ecf libsystem_pthread.dylib_pthread_body + 138 frame #21: 0x060b2e45 libsystem_pthread.dylib_pthread_start + 162
      frame #22: 0x060b0f0e libsystem_pthread.dylib`thread_start + 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment