Crash when saving block

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Crash when saving block

DanFreeman
Running package 2.0.0~rc3+nolibs-1~daily~ubuntu12.04.1 from PPA on Ubuntu 12.04.

In searching for any existing threads on this topic, I was not able to find any.

Whenever I attempt to save a block, LibreCAD crashes. I click the disk icon in the Block List. File requester pops up. I choose the location and name. Click "Save". Immediate Seg fault.

A file *is* written containing the following two lines.

999
dxfrw 0.5.10

I ran librecad once with the --debug option. Here are the last few lines of the debug file:

Setting active pen...
QC_MDIWindow::slotPenChanged() begin
QC_MDIWindow::slotPenChanged() end
QC_ApplicationWindow::slotPenChanged() end
RVT_PORT emit windowsChanged(true);
QC_ApplicationWindow::slotWindowActivated end
QG_GraphicView::paintEvent begin
QG_GraphicView::paintEvent end
QC_ApplicationWindow::slotWindowActivated begin
RS_Graphic::saveAs: Entering...
RS_Graphic::save: Entering...
RS_Graphic::save: File: /tmp/test.dxf
RS_Graphic::save: Format: 2
RS_Graphic::save: Export...
RS_FileIO::fileExport
Setting up LFF filter...
RS_FilterDXFRW::RS_FilterDXFRW()
RS_FilterDXFRW::RS_FilterDXFRW(): OK
RS_FilterDXFDW::fileExport: exporting file '/tmp/test.dxf'...
RS_FilterDXFDW::fileExport: file type '2'

I'm happy to do whatever I can in gathering more debugging data to assist in troubleshooting.


Reply | Threaded
Open this post in threaded view
|

Re: Crash when saving block

DanFreeman
Oops. I see that I may have posted this to the wrong area. Can an admin move this to the appropriate area? Or should I re-post there?

My apologies.

Reply | Threaded
Open this post in threaded view
|

Re: Crash when saving block

dxli
In reply to this post by DanFreeman
this bug was fixed after 2.0.0, and will be in 2.0.1.

Can you build and verify this bug is fixed?

To build on ubuntu from the newest git source:

http://librecad.org/cms/home/from-source/linux.html



DanFreeman wrote
Running package 2.0.0~rc3+nolibs-1~daily~ubuntu12.04.1 from PPA on Ubuntu 12.04.

In searching for any existing threads on this topic, I was not able to find any.

Whenever I attempt to save a block, LibreCAD crashes. I click the disk icon in the Block List. File requester pops up. I choose the location and name. Click "Save". Immediate Seg fault.

A file *is* written containing the following two lines.

999
dxfrw 0.5.10

I ran librecad once with the --debug option. Here are the last few lines of the debug file:

Setting active pen...
QC_MDIWindow::slotPenChanged() begin
QC_MDIWindow::slotPenChanged() end
QC_ApplicationWindow::slotPenChanged() end
RVT_PORT emit windowsChanged(true);
QC_ApplicationWindow::slotWindowActivated end
QG_GraphicView::paintEvent begin
QG_GraphicView::paintEvent end
QC_ApplicationWindow::slotWindowActivated begin
RS_Graphic::saveAs: Entering...
RS_Graphic::save: Entering...
RS_Graphic::save: File: /tmp/test.dxf
RS_Graphic::save: Format: 2
RS_Graphic::save: Export...
RS_FileIO::fileExport
Setting up LFF filter...
RS_FilterDXFRW::RS_FilterDXFRW()
RS_FilterDXFRW::RS_FilterDXFRW(): OK
RS_FilterDXFDW::fileExport: exporting file '/tmp/test.dxf'...
RS_FilterDXFDW::fileExport: file type '2'

I'm happy to do whatever I can in gathering more debugging data to assist in troubleshooting.
Reply | Threaded
Open this post in threaded view
|

Re: Crash when saving block

DanFreeman
dxli wrote
this bug was fixed after 2.0.0, and will be in 2.0.1.

Can you build and verify this bug is fixed?

To build on ubuntu from the newest git source:

http://librecad.org/cms/home/from-source/linux.html
I tried. Make failed.

These were the steps I took:

- copied/pasted the apt-get line from the page you referenced to install all the packages necessary for the build environment
- coped/pasted the git line for downloading a local copy from the repository
- cd into LibreCAD dir
- qmake librecad.pro
- make

This was the result:

cd libraries/ && make -f Makefile
make[1]: Entering directory `/usr/local/src/LibreCAD/libraries'
cd libdxfrw/ && make -f Makefile
make[2]: Entering directory `/usr/local/src/LibreCAD/libraries/libdxfrw'
g++ -c -m64 -pipe -std=c++11 -g -O2 -Wall -W -fPIC -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../../generated/lib/libdxfrw/moc -o ../../generated/lib/libdxfrw/obj/libdxfrw.o src/libdxfrw.cpp
cc1plus: error: unrecognized command line option ‘-std=c++11’
make[2]: *** [../../generated/lib/libdxfrw/obj/libdxfrw.o] Error 1
make[2]: Leaving directory `/usr/local/src/LibreCAD/libraries/libdxfrw'
make[1]: *** [sub-libdxfrw-make_default] Error 2
make[1]: Leaving directory `/usr/local/src/LibreCAD/libraries'
make: *** [sub-libraries-make_default-ordered] Error 2


Reply | Threaded
Open this post in threaded view
|

Re: Crash when saving block

dxli
First, it should be:

qmake -r

to run qmake recursively into subdirectories.

I realize your ubuntu is probably too old for std=c++11.

can you run:

sed -i'' -e 's/c++11/c++0x/g' common.pri

to use std=c++0x, and run "qmake -r" again, followed by "make"

DanFreeman wrote

I tried. Make failed.

These were the steps I took:

- copied/pasted the apt-get line from the page you referenced to install all the packages necessary for the build environment
- coped/pasted the git line for downloading a local copy from the repository
- cd into LibreCAD dir
- qmake librecad.pro
- make

This was the result:

cd libraries/ && make -f Makefile
make[1]: Entering directory `/usr/local/src/LibreCAD/libraries'
cd libdxfrw/ && make -f Makefile
make[2]: Entering directory `/usr/local/src/LibreCAD/libraries/libdxfrw'
g++ -c -m64 -pipe -std=c++11 -g -O2 -Wall -W -fPIC -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I../../generated/lib/libdxfrw/moc -o ../../generated/lib/libdxfrw/obj/libdxfrw.o src/libdxfrw.cpp
cc1plus: error: unrecognized command line option ‘-std=c++11’
make[2]: *** [../../generated/lib/libdxfrw/obj/libdxfrw.o] Error 1
make[2]: Leaving directory `/usr/local/src/LibreCAD/libraries/libdxfrw'
make[1]: *** [sub-libdxfrw-make_default] Error 2
make[1]: Leaving directory `/usr/local/src/LibreCAD/libraries'
make: *** [sub-libraries-make_default-ordered] Error 2