|
segfault in chartdir.dll v6.0.1.0 |
Posted by Mikael on Jun-30-2016 21:28 |
|
After upgrading from 5.1 to 6.0 we started seeing EXCEPTION_ACCESS_VIOLATION (windows) and segfault (linux) using surface charts. I got it down to the following minimal repro:
chart = pychartdir.SurfaceChart(800, 600)
chart.setColorAxis(0, 0, pychartdir.TopLeft, 100, pychartdir.Left)
chart.makeChart("c:\\temp\\surfacechart.png")
All other charts we use appear to work as before and this particular example works in or 5.1 installations. Could you try this and let me know how to fix or to debug further?
Thanks,
Mikael
...vc12_win32binpython.exe: Unhandled EXCEPTION_ACCESS_VIOLATION caught at 0x06E12FC4: The thread tried to read from or write to a virtual address for which it does not have the appropriate access. The thread tried to read from the virtual address 0x00000024.
Backtrace follows:
runMethod (chartdir.dll)
(chartdir.dll)
runMethod (chartdir.dll)
Python backtrace follows:
Thread 22320 (tick_counter=66658)
...vc12_win32libpython2.7site-packagespychartdirpychartdir.py:63 in __call__ |
Re: segfault in chartdir.dll v6.0.1.0 |
Posted by Peter Kwan on Jul-01-2016 01:08 |
|
Hi Mikael,
Thanks a lot for informing us of this issue and taking the time to come up with a test case. We are able to reproduce the problem. As we can reproduce the problem, hopefully we will be able to come up with a patch by tomorrow.
Regards
Peter Kwan |
Re: segfault in chartdir.dll v6.0.1.0 |
Posted by Peter Kwan on Jul-01-2016 17:46 |
|
Hi Mikael,
I have just uploaded a patched "chartdir.dll" (for Windows 32-bit) to our web site, which you can download at:
http://www.advsofteng.com/chartdir60p3.zip
Please replace your existing "chartdir.dll" with the one in the zip file which should solve the problem.
Regards
Peter Kwan |
Re: segfault in chartdir.dll v6.0.1.0 |
Posted by Mikael on Jul-01-2016 18:40 |
|
Many thanks for the quick turnaround. The patched dll works nicely for us. When possible we'd appreciated win64, linux32 and linux64 versions.
Mikael |
Re: segfault in chartdir.dll v6.0.1.0 |
Posted by Peter Kwan on Jul-05-2016 20:48 |
|
Hi Mikael,
I have updated the ChartDirector for Python release on our web site for Win32, Win64, Linux32 and Linux64. Please download them and use the chartdir.dll or libchartdir.so inside to replace your existing ones, and this should solve the problem.
Regards
Peter Kwan |
Re: segfault in chartdir.dll v6.0.1.0 |
Posted by Mikael on Jul-06-2016 20:41 |
|
I've tested all four combinations and found them to work. Thank you.
Mikael |
|