GenerallyHelpfulSoftware / SVGgh

A framework for using SVG artwork in iOS Apps. Includes a UIView and a button class, printing and PDF export.
MIT License
141 stars 38 forks source link

totalLengthOfCGPath EXC_BAD_ACCESS #16

Closed taher-mosbah closed 8 years ago

taher-mosbah commented 8 years ago

I have the following in Crashlytics (Fabric) : I don't have more informations sorry.

Thread : Crashed: com.apple.main-thread 0 CoreGraphics 0x271f2d14 CG::Path::apply(void, void ()(void, CGPathElementType, CGPoint const)) const + 3 1 CoreGraphics 0x271f2d0b CGPathApply + 38 2 app-name 0x34ce53 +GHPathUtilities totalLengthOfCGPath: 3 app-name 0x15006f -appVC lengthInPath: 4 app-name 0x15016d -appVC distanceFromPortionStartInPath: 5 app-name 0x183209 -appVC tableView:cellForRowAtIndexPath: 6 app-name 0x342613 -SLExpandableTableView tableView:cellForRowAtIndexPath: 7 UIKit 0x2b3e7d77 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 678 8 UIKit 0x2b3e7e9d -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 68 9 UIKit 0x2b3d8571 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2268 10 UIKit 0x2b3ec497 -[UITableView _performWithCachedTraitCollection:] + 78 11 UIKit 0x2b19be5f -[UITableView layoutSubviews] + 178 12 UIKit 0x2b0b16ab -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 694 13 QuartzCore 0x2a97d67d -[CALayer layoutSublayers] + 128 14 QuartzCore 0x2a978d79 CA::Layer::layout_ifneeded(CA::Transaction) + 352 15 QuartzCore 0x2a978c09 CA::Layer::layout_and_display_ifneeded(CA::Transaction) + 16 16 QuartzCore 0x2a978129 CA::Context::commit_transaction(CA::Transaction*) + 368 17 QuartzCore 0x2a977deb CA::Transaction::commit() + 590 18 UIKit 0x2b0b43e7 _UIApplicationHandleEventQueue + 5334 19 CoreFoundation 0x26f66827 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 14 20 CoreFoundation 0x26f66417 CFRunLoopDoSources0 + 454 21 CoreFoundation 0x26f6477f CFRunLoopRun + 806 22 CoreFoundation 0x26eb71e9 CFRunLoopRunSpecific + 516 23 CoreFoundation 0x26eb6fdd CFRunLoopRunInMode + 108 24 GraphicsServices 0x3015baf9 GSEventRunModal + 160 25 UIKit 0x2b11c17d UIApplicationMain + 144 27 libdyld.dylib 0x39081873 start + 2

grhowes commented 8 years ago

Is it possible that the CGPathRef being passed is null?

--glenn Sent from my iPhone

On Nov 18, 2015, at 10:58 AM, Mohamed Taher Mosbah notifications@github.com wrote:

I have the following in Crashlytics (Fabric) : I don't have more informations sorry.

Thread : Crashed: com.apple.main-thread 0 CoreGraphics 0x271f2d14 CG::Path::apply(void, void ()(void, CGPathElementType, CGPoint const)) const + 3 1 CoreGraphics 0x271f2d0b CGPathApply + 38 2 app-name 0x34ce53 +GHPathUtilities totalLengthOfCGPath: 3 app-name 0x15006f -appVC lengthInPath: 4 app-name 0x15016d -appVC distanceFromPortionStartInPath: 5 app-name 0x183209 -appVC tableView:cellForRowAtIndexPath: 6 paradiski-experience 0x342613 -SLExpandableTableView tableView:cellForRowAtIndexPath: 7 UIKit 0x2b3e7d77 -[UITableView createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 678 8 UIKit 0x2b3e7e9d -[UITableView createPreparedCellForGlobalRow:willDisplay:] + 68 9 UIKit 0x2b3d8571 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2268 10 UIKit 0x2b3ec497 -[UITableView _performWithCachedTraitCollection:] + 78 11 UIKit 0x2b19be5f -[UITableView layoutSubviews] + 178 12 UIKit 0x2b0b16ab -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 694 13 QuartzCore 0x2a97d67d -[CALayer layoutSublayers] + 128 14 QuartzCore 0x2a978d79 CA::Layer::layout_if_needed(CA::Transaction) + 352 15 QuartzCore 0x2a978c09 CA::Layer::layout_and_display_if_needed(CA::Transaction) + 16 16 QuartzCore 0x2a978129 CA::Context::commit_transaction(CA::Transaction*) + 368 17 QuartzCore 0x2a977deb CA::Transaction::commit() + 590 18 UIKit 0x2b0b43e7 _UIApplicationHandleEventQueue + 5334 19 CoreFoundation 0x26f66827 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 14 20 CoreFoundation 0x26f66417 CFRunLoopDoSources0 + 454 21 CoreFoundation 0x26f6477f __CFRunLoopRun + 806 22 CoreFoundation 0x26eb71e9 CFRunLoopRunSpecific + 516 23 CoreFoundation 0x26eb6fdd CFRunLoopRunInMode + 108 24 GraphicsServices 0x3015baf9 GSEventRunModal + 160 25 UIKit 0x2b11c17d UIApplicationMain + 144 27 libdyld.dylib 0x39081873 start + 2

— Reply to this email directly or view it on GitHub.

taher-mosbah commented 8 years ago

Apparently that was the problem, sorry for the late reply.

grhowes commented 8 years ago

No problem. Thanks for both taking the time to report and close the issue.