高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】problem with zoomextents
problem with zoomextents
problem with zoomextents
hallo,
i iterate through the viewports and call zoomextents for each. for one dwg file i get the following backtrace !!!
what is wrong ????
#0 0x092d4681 in odrxlockparent ()
#1 0x092db02f in newodrxclass ()
#2 0x0887f443 in oddgsatmodeler::rxinit ()
#3 0x0887c23e in modelermodule::initapp ()
#4 0x092d98f2 in odrxdynamiclinkerimpl::loadmoduleobj ()
#5 0x092d6eb5 in odrxdynamiclinkerimpl::loadmodule ()
#6 0x092d5db9 in odrxdynamiclinkerimpl::loadapp ()
#7 0x08c8c0c4 in odrxgetmodelergeometrycreatorservice ()
#8 0x08d9610b in odmodelergeometryondemand::switchtomodeler ()
#9 0x08d9729a in odmodelergeometryondemand::worlddraw ()
#10 0x08c8cd21 in oddbmodelergeometryimpl::draworderededges ()
#11 0x08d05781 in oddbregion::worlddraw ()
#12 0x09156dcf in odgibasevectorizer::dodraw ()
#13 0x09102ad4 in odgsbasevectorizeview::dodraw ()
#14 0x09157f3a in odgibasevectorizer::draw ()
#15 0x082f3d32 in exsimpleview::draw (this=0x108d7e10, pdrawable=0xa8458e8) at exgssimpledevice.cc:228
#16 0x08f81222 in oddbblocktablerecord::worlddraw ()
#17 0x09156dcf in odgibasevectorizer::dodraw ()
#18 0x09102ad4 in odgsbasevectorizeview::dodraw ()
#19 0x09157e04 in odgibasevectorizer::draw ()
#20 0x082f3d32 in exsimpleview::draw (this=0x108d7e10, pdrawable=0xa82fb30) at exgssimpledevice.cc:228
#21 0x08bb46dc in oddbblockreferenceimpl::draw ()
#22 0x08bb4ac8 in oddbblockreference::worlddraw ()
#23 0x09156dcf in odgibasevectorizer::dodraw ()
#24 0x09102ad4 in odgsbasevectorizeview::dodraw ()
#25 0x09157f3a in odgibasevectorizer::draw ()
#26 0x082f3d32 in exsimpleview::draw (this=0x108d7e10, pdrawable=0xb0551c0) at exgssimpledevice.cc:228
#27 0x08f81222 in oddbblocktablerecord::worlddraw ()
#28 0x09156dcf in odgibasevectorizer::dodraw ()
#29 0x09102ad4 in odgsbasevectorizeview::dodraw ()
#30 0x09157f3a in odgibasevectorizer::draw ()
#31 0x082f3d32 in exsimpleview::draw (this=0x108d7e10, pdrawable=0xb053958) at exgssimpledevice.cc:228
#32 0x09115f34 in odgsbasevectorizeview::display ()
#33 0x09118e2d in odgsbasevectorizeview::update ()
#34 0x082f39e4 in exsimpleview::update (this=0x108d7e10) at exgssimpledevice.cc:296
#35 0x0910f61e in odgsbasevectorizedevice::update ()
hi,
what dwgdirect version did you use?
could you please attach sample file...
it will be very helpfull if you can modify one of our sample to reproduce the problem and publish code here.
hallo,
you can reproduce the problem with odreadex my dwg file 0309agrs00u10001.dwg
the filesize ist 3mbyte. you should have this file i think i uploaded 5 or file in one zip/tgz.
have you this file any more or ???? !!!!!
(gdb) bt
#0 0x08d730d1 in odrxlockparent ()
#1 0x08d79a7f in newodrxclass ()
#2 0x08336e43 in oddgsatmodeler::rxinit ()
#3 0x08333d40 in modelermodule::initapp ()
#4 0x08d78342 in odrxdynamiclinkerimpl::loadmoduleobj ()
#5 0x08d75905 in odrxdynamiclinkerimpl::loadmodule ()
#6 0x08d74809 in odrxdynamiclinkerimpl::loadapp ()
#7 0x08740fa4 in odrxgetmodelergeometrycreatorservice ()
#8 0x0884a0cb in odmodelergeometryondemand::switchtomodeler ()
#9 0x0884b25a in odmodelergeometryondemand::worlddraw ()
#10 0x0874844d in oddbmodelergeometryimpl::drawedges ()
#11 0x0874879d in oddbmodelergeometryimpl::worlddraw ()
#12 0x087b96a2 in oddbregion::worlddraw ()
#13 0x08c13990 in odgifastextcalc::draw ()
#14 0x08a23292 in oddbblocktablerecord::worlddraw ()
#15 0x08c13990 in odgifastextcalc::draw ()
#16 0x08665d88 in oddbblockreferenceimpl::draw ()
#17 0x08666178 in oddbblockreference::worlddraw ()
#18 0x08c13990 in odgifastextcalc::draw ()
#19 0x086b4d0a in getobjectextents<odgifastextcalc> ()
#20 0x0869e9d2 in oddbentity::getgeomextents ()
#21 0x08662724 in oddbblockreference::getgeomextents ()
#22 0x08a22d68 in oddbblocktablerecord::getgeomextents ()
#23 0x0807bedf in dbdumper::dumpblocks (this=0xbf9f427f, pdb=0x95e5b00, indent=1)
at ../../examples/odreadex/dbdumper.cpp:934
#24 0x08091d0f in dbdumper::dump (this=0xbf9f427f, pdb=0x95e5b00, indent=0) at ../../examples/odreadex/dbdumper.cpp:1379
#25 0x08076d02 in main (argc=2, argv=0xbf9f4364) at ../../examples/odreadex/odreadex.cpp:217
hallo,
sorry 3 files in post
did you use last version of dwgdirect ?
2.6.3 2.6.3 2.6.3
hello
did you use dgntoolkit ? i saw oddgsatmodeler in your dumb...
situation looks like you use dgndirect modeler geometry module with dwgdirect based application.
hello,
i think no !!! ????
makefile
-----------------------------------------------------------
...
objs = exsystemservices.o exhostappservices.o exundocontroller.o \
odfilebuf.o odreadex.o dbdumper.o exprotocolextension.o \
giworlddrawdumper.o exgirasterimage.o tostring.o \
exgssimpledevice.o giconveyorgeometrydumper.o gidumperimpl.o
# dwgdirect librarys required to build odreadex
libs = ../../lib/lnxx86_4.1/dd_$(plt)_modelergeometry.a ../../lib/lnxx86_4.1/dd_$(plt)_breprenderer.a \
../../lib/lnxx86_4.1/dd_$(plt)_br.a ../../lib/lnxx86_4.1/dd_$(plt)_acisbuilder.a \
../../lib/lnxx86_4.1/dd_$(plt)_db.a ../../lib/lnxx86_4.1/dd_$(plt)_gs.a \
../../lib/lnxx86_4.1/dd_$(plt)_spatialindex.a ../../lib/lnxx86_4.1/dd_$(plt)_gi.a \
../../lib/lnxx86_4.1/dd_$(plt)_ge.a ../../lib/lnxx86_4.1/dd_$(plt)_root.a \
../../lib/lnxx86_4.1/dd_$(plt)_dbroot.a \
../../lib/lnxx86_4.1/dd_$(plt)_rxrasterprocessor.a \
../../lib/lnxx86_4.1/gs_winbitmap.a \
../../lib/lnxx86_4.1/dd_$(plt)_ft.a ../../lib/lnxx86_4.1/dd_$(plt)_alloc.a \
../../lib/lnxx86_4.1/dd_$(plt)_recomputedimblock.a \
../../lib/lnxx86_4.1/dd_$(plt)_exfieldevaluator.a \
../../lib/lnxx86_4.1/dd_$(plt)_dwfimport.a \
../../lib/lnxx86_4.1/dd_$(plt)_dwfexport.a \
-ldwftk -ldwfcore -luuid -ljpeg -lz
.................................................. ......
hallo,
sorry i think yes.
i have looked in the wrong version. !!!!!!!!!!!!!!
makefile
----------------------------------------------------------------------------------------------------
# object files required to build odreadex
objs = exsystemservices.o exhostappservices.o exundocontroller.o \
odfilebuf.o odreadex.o dbdumper.o exprotocolextension.o \
giworlddrawdumper.o exgirasterimage.o tostring.o \
exgssimpledevice.o giconveyorgeometrydumper.o gidumperimpl.o
# dwgdirect librarys required to build odreadex
libs = ../../dgndirect/lib/lnxx86_4.1/dg_dgn7io.a ../../dgndirect/lib/lnxx86_4.1/dg_db.a \
../../dgndirect/lib/lnxx86_4.1/dg_dwgdb.a \
../../dgndirect/lib/lnxx86_4.1/dg_modelergeometry.a \
../../dgndirect/lib/lnxx86_4.1/oless.a \
../../dgndirect/lib/lnxx86_4.1/zlib.a ../../dgndirect/lib/lnxx86_4.1/pstoolkit.a \
../../lib/lnxx86_4.1/dd_$(plt)_modelergeometry.a ../../lib/lnxx86_4.1/dd_$(plt)_breprenderer.a \
../../lib/lnxx86_4.1/dd_$(plt)_br.a ../../lib/lnxx86_4.1/dd_$(plt)_acisbuilder.a \
../../lib/lnxx86_4.1/dd_$(plt)_db.a ../../lib/lnxx86_4.1/dd_$(plt)_gs.a \
../../lib/lnxx86_4.1/dd_$(plt)_spatialindex.a ../../lib/lnxx86_4.1/dd_$(plt)_gi.a \
../../lib/lnxx86_4.1/dd_$(plt)_ge.a ../../lib/lnxx86_4.1/dd_$(plt)_root.a \
../../lib/lnxx86_4.1/dd_$(plt)_dbroot.a \
../../lib/lnxx86_4.1/dd_$(plt)_rxrasterprocessor.a \
../../lib/lnxx86_4.1/gs_winbitmap.a \
../../lib/lnxx86_4.1/dd_$(plt)_ft.a ../../lib/lnxx86_4.1/dd_$(plt)_alloc.a \
../../lib/lnxx86_4.1/dd_$(plt)_recomputedimblock.a \
../../lib/lnxx86_4.1/dd_$(plt)_dwfimport.a \
../../lib/lnxx86_4.1/dd_$(plt)_dwfexport.a \
../../lib/lnxx86_4.1/dd_$(plt)_zip.a -ldwftk -ldwfcore -luuid -ljpeg -lz
oddgsatmodeler is a class from dg_modelergeometry - dgndirect part. dwgdirect should use modelergeometry.drx. could you please check your project... i think that here is some mistake... yours or ours... i'll check the linux zips content at first...
... good news... i thought that our zips were broken...
any solution ????
why did somebody add next lines to your make file ?
../../dgndirect/lib/lnxx86_4.1/dg_dgn7io.a ../../dgndirect/lib/lnxx86_4.1/dg_db.a \
../../dgndirect/lib/lnxx86_4.1/dg_dwgdb.a \
../../dgndirect/lib/lnxx86_4.1/dg_modelergeometry.a \
../../dgndirect/lib/lnxx86_4.1/oless.a \
../../dgndirect/lib/lnxx86_4.1/zlib.a ../../dgndirect/lib/lnxx86_4.1/pstoolkit.a \
compare your make file with original from zips... odreadex doesn't link dgn modules usually.
hallo,
yes but we want to import dgn files in our cad. at the moment we can comment this thinks out. but when we are right with our import filter we must link with this libs !!!!
i think this is right or !!! ????
|