View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001180 | SkyChart | 1-Software | public | 13-08-29 14:16 | 14-03-29 17:55 |
| Reporter | Andrew Hood | Assigned To | Patrick Chevalley | ||
| Priority | normal | Severity | crash | Reproducibility | sometimes |
| Status | closed | Resolution | fixed | ||
| Platform | x86_64 | OS | Windows | OS Version | 7 |
| Product Version | 3.9 SVN | ||||
| Target Version | 3.10 | Fixed in Version | 3.9 SVN | ||
| Summary | 0001180: enable "draw local horizon" crashes CdC | ||||
| Description | I get a popup about an arithmetic overflow. Since CdC catches it and selecting either "OK" or "Cancel" leads to a clean exit I can't get a gdb trace. If I select "OK" and save the config I get the same popup when I restart CdC. If I choose "OK" then turn off local horizon and horizon fill and resave the config it starts OK next time. Where should I be setting a breakpoint to catch the overflow before the handler processes it? Note that displaying a horizon picture does not cause the arith overflow, but does slow things down dramatically. | ||||
| Steps To Reproduce | Start CdC. Enable fill horizon and local horizon line. Apply. If it doesn't arith overflow immediately, change the FOV a few times. If it still doesn't, save the config and exit and restart. Arith overflow is about 99% probable. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
|
I cannot reproduce the problem using the default setting and the horizon file horizon_Geneve.txt Can you upload here a zip file containing your horizon file and a saved chart menu File / Save as..) made just before activating the horizon in a position it produce the crash. |
|
|
Patrick, I did the "save as", turned on "fill with horizon colour" and "display the local horizon line", and clicked "ok". Immediate arith overflow. After selecting cancel I repeated the sequence start,fill,display,ok,overflow,cancel several times and it did it every time. If I click "apply" instead of "ok" it appears to loop for a while and then arith overflow. I have been using this horizon line for ages and up until some point it did not cause the overflow, but I couldn't say exactly when it started, just that it is now reproducible. |
|
|
I have loaded your two files but I cannot get a crash, all is working fine. Maybe this is related to another setting not in the saved chart. Can you zip and upload your full configuration file skychart.ini located in C:\Users\[user]\AppData\Local\Skychart |
|
|
zipped skychart.ini uploaded. Patrick, can you tell me where to set a breakpoint to trap the arith overflow handler so I can get a backtrace? |
|
|
It was difficult to reproduce and trap the problem! In fact it crash only when running in Windows 64bit and the program is compiled with full optimization (-O3), so it work without problem when I use a debug version with no optimization. The source of the problem is probably a bug with the compiler optimizer but it is very difficult to trace because -O3 is not debugger safe, so the line number I get for the crash is wrong. Can you install the debug version available from: http://sourceforge.net/projects/skychart/files/0-beta/debug/ This version is compiled with -O1 so it must fix the problem for you. Please confirm me if it work so I can change the build procedure for the next beta. |
|
|
Patrick, I can turn on "fill with horizon colour" and "display the local horizon line" as long as the FOV is 90 degrees or less. Above that I get the arith overflow. I can set the FOV to 180 and then turn on the horizon line and apply OK, but as soon as I turn on fill it overflows. |
|
|
The problem is fixed by changing the compiler options from "-O3 -OoREGVAR -Ch524288 -CX -XX -Xs" to "-O1 -Ch524288 -CX -XX -Xs" |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 13-08-29 14:16 | Andrew Hood | New Issue | |
| 13-08-31 09:57 | Patrick Chevalley | Note Added: 0002557 | |
| 13-08-31 09:57 | Patrick Chevalley | Assigned To | => Patrick Chevalley |
| 13-08-31 09:57 | Patrick Chevalley | Status | new => feedback |
| 13-08-31 12:46 | Andrew Hood | File Added: 1180.zip | |
| 13-08-31 12:54 | Andrew Hood | Note Added: 0002562 | |
| 13-08-31 12:54 | Andrew Hood | Status | feedback => assigned |
| 13-09-01 11:37 | Patrick Chevalley | Note Added: 0002563 | |
| 13-09-01 11:37 | Patrick Chevalley | Status | assigned => feedback |
| 13-09-01 13:43 | Andrew Hood | File Added: 1180-1.zip | |
| 13-09-01 13:45 | Andrew Hood | Note Added: 0002564 | |
| 13-09-01 13:45 | Andrew Hood | Status | feedback => assigned |
| 13-09-02 18:07 | Patrick Chevalley | Note Added: 0002565 | |
| 13-09-02 18:07 | Patrick Chevalley | Status | assigned => feedback |
| 13-09-02 22:10 | Andrew Hood | Note Added: 0002570 | |
| 13-09-02 22:10 | Andrew Hood | Status | feedback => assigned |
| 13-09-02 22:13 | Andrew Hood | Note Edited: 0002570 | |
| 13-09-02 22:14 | Andrew Hood | Note Edited: 0002570 | |
| 13-09-18 07:58 | Patrick Chevalley | Note Added: 0002577 | |
| 13-09-18 07:58 | Patrick Chevalley | Status | assigned => resolved |
| 13-09-18 07:58 | Patrick Chevalley | Resolution | open => fixed |
| 13-09-18 07:58 | Patrick Chevalley | Fixed in Version | 0.3.0 => 3.9 SVN |
| 13-09-18 07:58 | Patrick Chevalley | Target Version | 0.3.0 => 3.10 |
| 14-03-29 17:55 | Patrick Chevalley | Status | resolved => closed |