iPhone 4 Crash


#1

I am experiencing difficultiy getting my app to run on an iPhone 4 device.

The same code executes perfectly on an iPhone 4S and iPhone 5 running the same versions of iOS.

It seems an error is encountered at 0x00187240 +[ShinobiChartLog fatalLogMessage:fromSource:] + 20

Please advise if the exact error can be found somewhere, or if this is a known issue.

The backtrace:

Thread 0 name:  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:

0   libsystem_kernel.dylib        0x3b8fd350 __pthread_kill + 8

1   libsystem_c.dylib             0x3b87411e pthread_kill + 54

2   libsystem_c.dylib             0x3b8b096e abort + 90

3   PinPoint                      0x00187240 +[ShinobiChartLog fatalLogMessage:fromSource:] + 20

4   PinPoint                      0x0015fad6 GLDie(unsigned int, char const*, …) + 158

5   PinPoint                      0x00160a42 -[SChartGLView setupFrameBuffer] + 490

6   PinPoint                      0x0015f416 -[SChartGLView initWithFrame:] + 1430

7   PinPoint                      0x00168e1a -[SChartCanvas initWithFrame:usingChart:] + 150

8   PinPoint                      0x001741fc -[ShinobiChart initialiseChart] + 724

9   PinPoint                      0x0017437a -[ShinobiChart initWithFrame:] + 66

10  PinPoint                      0x0011fb8a +[ShinobiChart(PieCharts) pieChartForBranchSummaryByDayWithFrame:] (ShinobiChart+PieCharts.m:46)

11  PinPoint                      0x0011378c -[BranchSummaryByDayGraphView initBranchGraphs:andData:forDates:] (BranchSummaryByDayGraphView.m:45)

12  PinPoint                      0x00112712 -[BranchSummaryByDayViewController addBranchView:withBranchName:onPage:] (BranchSummaryByDayViewController.m:344)

13  PinPoint                      0x00112506 -[BranchSummaryByDayViewController BranchSummaryByDayHandler:] (BranchSummaryByDayViewController.m:328)

14  PinPoint                      0x00104fd6 -[SoapRequest connectionDidFinishLoading:] (SoapRequest.m:180)

15  Foundation                    0x340956fa __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 14

16  Foundation                    0x33fd51f4 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 196

17  Foundation                    0x33fd5110 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56

18  CFNetwork                     0x3343745c ___delegate_didFinishLoading_block_invoke_0 + 24

19  CFNetwork                     0x33436b40 ___withDelegateAsync_block_invoke_0 + 52

20  CFNetwork                     0x3345efc8 ___performAsync_block_invoke_068 + 16

21  CoreFoundation                0x336a074a CFArrayApplyFunction + 174

22  CFNetwork                     0x3345f426 RunloopBlockContext::perform() + 70

23  CFNetwork                     0x333c303a MultiplexerSource::perform() + 186

24  CoreFoundation                0x3372f680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12

25  CoreFoundation                0x3372eee4 __CFRunLoopDoSources0 + 208

26  CoreFoundation                0x3372dcb2 __CFRunLoopRun + 642

27  CoreFoundation                0x336a0eb8 CFRunLoopRunSpecific + 352

28  CoreFoundation                0x336a0d44 CFRunLoopRunInMode + 100

29  GraphicsServices              0x372642e6 GSEventRunModal + 70

30  UIKit                         0x355b62fc UIApplicationMain + 1116

31  PinPoint                      0x000f44e2 main (main.m:18)

32  libdyld.dylib                 0x3b836b1c start + 0


GL Error: Please Contact Shinobi Support!
#2

I had this same issue.  For me, it was because the chart being allocated was larger than the display size.  In my case, it was because the NIB files were originally sized for iPhone 5 and being scaled down for iPhone 4.  I changed it to default to the iPhone 4 and scale up to the iPhone 5 and that solved the problem.    Not sure why it worked on the iPhone 4s and iPhone 3GS though.  Hope this helps.


#3

jmonroe, you might have a point there as i am using a single xib file for all devices.

i’ll be able to test as soon as the apple developer portal is back up.

i’ll keep you updated once i’m there. thanks.


#4

jmonroe, your comment has been accepted as the correct solution.

I had an iPad UIView in Interface Builder that I populated a Pie into.

This caused a crash on the iPhone 4 only (Not 4S or 5).

I created a iPhone version of the same UIView and that works 100%.

Thanks for your feedback.