opening dwg file fails

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

opening dwg file fails

radar
when triing to open attached dwg. Librecad fails.
Librecad Version: 2.0.7+20160224.346-0~ubuntu14.04.1
RD_Snajdrovi_-_zakresleni_stavajiciho_stavu.dwg
this is output from the terminal:
~$ librecad
RS_DEBUG::setLevel(3)
RS_DEBUG: Critical
RS_DEBUG: Errors
RS_DEBUG: Warnings
cmd/rs_commands.cpp: duplicated command: obd is already taken by 96

cmd/rs_commands.cpp: duplicated command: prekr is already taken by 45

cmd/rs_commands.cpp: duplicated command: pp is already taken by 44

cmd/rs_commands.cpp: duplicated command: uz is already taken by 152

RS_FilterDXFRW::endEntity(): updating hatch failed: invalid hatch area
......
RS_FilterDXFRW::endEntity(): updating hatch failed: invalid hatch area
RS_FilterDXFRW::endEntity(): updating hatch failed: invalid hatch area
RS_FilterDXFRW::endEntity(): updating hatch failed: invalid hatch area
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Neúspěšně ukončen (SIGABRT) (core dumped [obraz paměti uložen])
Reply | Threaded
Open this post in threaded view
|

Re: opening dwg file fails

ravas
This post was updated on .
The person who built/uploaded that version somehow picked the one day we had several bugs...

https://github.com/LibreCAD/LibreCAD/issues/666

https://github.com/LibreCAD/LibreCAD/issues/670
Reply | Threaded
Open this post in threaded view
|

Re: opening dwg file fails

ravas
In reply to this post by radar
Please follow https://github.com/LibreCAD/LibreCAD/issues/670
there have been updates.
Reply | Threaded
Open this post in threaded view
|

Re: opening dwg file fails

radar
upgrade did not helped :-(

librecad (2.0.9+201603171.348-0~ubuntu14.04.1) …
with the same file this result:
~$ librecad
RS_DEBUG::setLevel(3)
RS_DEBUG: Critical
RS_DEBUG: Errors
RS_DEBUG: Warnings
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Neúspěšně ukončen (SIGABRT) (core dumped [obraz paměti uložen])
Reply | Threaded
Open this post in threaded view
|

Re: opening dwg file fails

ravas
It fixed what I thought was the problem... ;-]
However, there is another bug that has to do with splines (it looks like).

The problem seems to be in DRW_Hatch::parseDwg
                    for (dint32 j = 0; j < spline->ncontrol;++j){
                        DRW_Coord* crd = new DRW_Coord(buf->get3BitDouble());
                        spline->controllist.push_back(crd);
                        if(isRational)
                            crd->z =  buf->getBitDouble(); //RLZ: investigate how store weight
                        spline->controllist.push_back(crd);
                    }