divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Setting yRange randomly causes app to crash #374

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Spent weeks already to find it, but it seems complete random other then it has 
to do with:
plotSpace.yRange       = [CPTPlotRange 
plotRangeWithLocation:CPTDecimalFromFloat(min) 
length:CPTDecimalFromFloat(length)];
The min and length parameters in my last crash were:
min = 0, length = 130

What is the expected output? What do you see instead?
I expect no crash, but do get one. Strack trace points at:
Dec  1 09:41:31 unknown com.apple.launchd[1] <Warning>: 
(UIKitApplication:[0x153d]) Job appears to have crashed: Segmentation fault: 11

Incident Identifier: 4E11CA8E-5AA7-4337-9B0F-3748B9BBF0E2
CrashReporter Key:   241b21c58fd9df301d905883f0e80041268cbaa3
Hardware Model:      iPhone3,1
Process:         xx [1318]
Path:            
/var/mobile/Applications/D2DF400F-F6AC-41AF-8106-EBB72491C28D/xx.app/xx
Identifier:      xx
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2011-12-01 09:41:30.442 +0100
OS Version:      iPhone OS 5.0.1 (9A405)
Report Version:  104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x676e7036
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x34552fbc 0x3454f000 + 16316
1   xx                      0x0005db3e -[ThermometerGraphViewController 
setupRangeAxisLegend] (ThermometerGraphViewController.m:135)
2   xx                      0x0005e174 -[ThermometerGraphViewController 
displayDayGraph] (ThermometerGraphViewController.m:228)
3   xx                      0x0005f01a -[ThermometerGraphViewController 
segmentButtonHandler:] (ThermometerGraphViewController.m:622)
4   xx                      0x0005d4b4 -[ThermometerGraphViewController 
viewDidLoad] (ThermometerGraphViewController.m:26)

What version of the product are you using? On what operating system?
I use the latest build: 0.9, iOS 5.01 was the latest test, but have seen this 
on 5.0 as well.

Please provide any additional information below.

Original issue reported on code.google.com by E.Marges on 1 Dec 2011 at 8:59

GoogleCodeExporter commented 9 years ago
Can you post the code from -displayDayGraph and -setupRangeAxisLegend? It's 
difficult to reproduce a random crash without the relevant code.

Original comment by eskr...@mac.com on 3 Dec 2011 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 16 Jan 2012 at 1:56

GoogleCodeExporter commented 9 years ago
I am having a similar issue, with a stack trace pointing to: 
0x001a2cbe -[CPTXYPlotSpace setXRange:] (CPTXYPlotSpace.m:209)
E. Marges - did you resolve this issue? 

Original comment by joelfern...@gmail.com on 22 Feb 2012 at 4:32

GoogleCodeExporter commented 9 years ago
What version of Core Plot are you using? I don't know if it will help, but 1.0 
was released a couple of days ago.

I can't reproduce the problem without more information. If you can help me 
track it down, I'll reopen this issue.

Original comment by eskr...@mac.com on 23 Feb 2012 at 12:07

GoogleCodeExporter commented 9 years ago
 I just tried with 1.0 and the issue does not seem to be reproducible anymore. 

Note however that this is the "armv7 i386" universal binary of 1.0 and I 
changed my project to compile armv7 only. I don't know if that made any 
difference, so I will retest with a "armv6 armv7 i386"  core plot library once 
I am able to build that. I wonder if it is some weird compiler glitch.

Original comment by joelfern...@gmail.com on 23 Feb 2012 at 12:39