Dear developers, I am currently trying to run PLCopen Editor from Beremiz on Mac
OS Sierra. I am aware of the discussion on this list that has been
going on a few weeks ago. I am able to start the editor by doing the following: 1. Install MacPorts 2. Install python27, py27-pip and py27-wxpython-3.0 via MacPorts 3. Install pyro, nevow, numpy, matplotlib (version 1.4.3) and lxml via Python PIP It is essential to use matplotlib 1.4.3 since there seems to be some kind of issue with wxpython and/or matplotlib versions after 1.4.3 that leads to an error "unknown encoding" on Mac OS. Now having set up all of the above, I am able to start PLCopen by running "python2 PLCOpenEditor.py" from the terminal. I can also open the example program HelloWorld (https://docs.google.com/uc?export=download&confirm=no_antivirus&id=0BwyThwktWLAla1pFWVl2ZjgxdTQ) from www.openplcproject.com via the open dialog. However, when double clicking on the "My_program" entry in the
project tree on the left side the editor will crash with the
following segmentation fault: Thread 0 Crashed:: Dispatch queue:
com.apple.main-thread The segfault seems to be triggered
by dc.DrawEllipticArc() in the Draw() method of LD_Objects.py. I
already started to investigate the issue but haven't been able
to find a cause yet. This issue only occurs on Mac OS, on Linux
it is running fine (haven't tried Windows). Maybe you have an idea what is causing this? Thanks in advance ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Beremiz-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/beremiz-devel |
Hi Hendrik,
On 17-06-28 14:17, [hidden email] wrote: > Dear developers, > > I am currently trying to run PLCopen Editor from Beremiz on Mac OS > Sierra. I am aware of the discussion on this list that has been going on > a few weeks ago. > > I am able to start the editor by doing the following: > > 1. Install MacPorts > > 2. Install python27, py27-pip and py27-wxpython-3.0 via MacPorts > > 3. Install pyro, nevow, numpy, matplotlib (version 1.4.3) and lxml via > Python PIP > > It is essential to use matplotlib 1.4.3 since there seems to be some > kind of issue with wxpython and/or matplotlib versions after 1.4.3 that > leads to an error "unknown encoding" on Mac OS. > Feel free to add you investigations there. https://bitbucket.org/skvorl/beremiz/wiki/Home > Now having set up all of the above, I am able to start PLCopen by > running "python2 PLCOpenEditor.py" from the terminal. I can also open > the example program HelloWorld > (https://docs.google.com/uc?export=download&confirm=no_antivirus&id=0BwyThwktWLAla1pFWVl2ZjgxdTQ) > from www.openplcproject.com via the open dialog. > > However, when double clicking on the "My_program" entry in the project > tree on the left side the editor will crash with the following > segmentation fault: > > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread > 0 libwx_osx_cocoau_core-3.0.dylib 0x000000010cec3c54 > wxGraphicsPath::GetBox(double*, double*, double*, double*) const + 8 > 1 libwx_osx_cocoau_core-3.0.dylib 0x000000010cec389d > wxGraphicsPath::GetBox() const + 43 > 2 libwx_osx_cocoau_core-3.0.dylib 0x000000010ce8ff69 > wxGCDCImpl::DoDrawEllipticArc(int, int, int, int, double, double) + 889 > 3 _gdi_.so 0x000000010d905339 _wrap_DC_DrawEllipticArc(_object*, > _object*, _object*) + 873 > 73 org.python.python 0x000000010c1a0824 PyRun_FileExFlags + 164 > 74 org.python.python 0x000000010c1a035e PyRun_SimpleFileExFlags + 702 > 75 org.python.python 0x000000010c1b6b1d Py_Main + 2925 > 76 libdyld.dylib 0x00007fff9edd7235 start + 1 > > The segfault seems to be triggered by dc.DrawEllipticArc() in the Draw() > method of LD_Objects.py. I already started to investigate the issue but > haven't been able to find a cause yet. This issue only occurs on Mac OS, > on Linux it is running fine (haven't tried Windows). > > Maybe you have an idea what is causing this? I've looked at the code dc.DrawEllipticArc in Draw method and don't see anything that could cause a problem. But if you eventually fix the problem for you and the change will not cause regressions on Windows and GNU/Linux, feel free to submit a patch. Happy hacking. ;-) -- Best regards, Andrey Skvortsov ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Beremiz-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/beremiz-devel |
Free forum by Nabble | Edit this page |