GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » TGeoCompositeShape sustraction
TGeoCompositeShape sustraction [message #5085] Wed, 26 September 2007 16:49 Go to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
dear all,
i have tried to build a TGeoComposite Shape which is the substraction of other two volumes, and when i try to visualize them i get this error message.


Root >
*** Break *** segmentation violation
Generating stack trace...
0xffffe420 in <unknown function>
0x423a9410 in TGeoBoolNode::Paint(char const*) + 0x92 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeom.so
0x423aaddb in TGeoSubtraction::Paint(char const*) + 0x7f from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeom.so
0x423b8d6e in TGeoCompositeShape::PaintComposite(char const*) const + 0x286 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeom.so
0x42687481 in TGeoPainter::PaintShape(TGeoShape const&, char const*) const + 0x10d from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeomPainter.so
0x4268729a in TGeoPainter::PaintVolume(TGeoVolume*, char const*, TGeoMatrix*) + 0x7f8 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeomPainter.so
0x42686709 in TGeoPainter::Paint(char const*) + 0x1d1 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeomPainter.so
0x42428d63 in TGeoVolume::Paint(char const*) + 0x93 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGeom.so
0x412791ae in TPad::PaintModified() + 0x2b2 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGpad.so.5.12
0x4125bfe0 in TCanvas::Update() + 0xee from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGpad.so.5.12
0x41d625d7 in TRootCanvas::HandleContainerConfigure(Event_t*) + 0x55 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41d6300f in TRootContainer::HandleConfigureNotify(Event_t*) + 0x3b from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41caf86f in TGFrame::HandleEvent(Event_t*) + 0xc7 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41c85844 in TGClient::HandleMaskEvent(Event_t*, unsigned long) + 0x80 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41c8542a in TGClient::ProcessOneEvent() + 0x86 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41c85516 in TGClient::HandleInput() + 0x28 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x41c837fa in TGInputHandler::Notify() + 0x22 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libGui.so
0x402ca3eb in TUnixSystem::DispatchOneEvent(bool) + 0x57 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libCore.so.5.12
0x401d5b22 in TSystem::InnerLoop() + 0x22 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libCore.so.5.12
0x401d5ab8 in TSystem::Run() + 0x80 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libCore.so.5.12
0x4014d72f in TApplication::Run(bool) + 0x37 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libCore.so.5.12
0x4172b563 in TRint::Run(bool) + 0x449 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/lib/libRint.so.5.12
0x08048e64 in main + 0x90 from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/bin/root.exe
0x418b5e36 in __libc_start_main + 0xc6 from /lib/libc.so.6
0x08048d31 in TApplicationImp::ShowMembers(TMemberInspector&, char*) + 0x3d from /usr/local/pub/debian3.1/gcc335-13/rootmgr/512-00/bin/root.exe
Root >

Has any of you any idea?

best regards

alicia.
Re: TGeoCompositeShape sustraction [message #5086 is a reply to message #5085] Wed, 26 September 2007 17:02 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
I can see you are not using root 5.14, which should be the one for PandaRoot.
Is it possible that you messed up with the external packages?
Re: TGeoCompositeShape sustraction [message #5087 is a reply to message #5086] Wed, 26 September 2007 17:13 Go to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
Hi that is still the old release.

I have checked again, it works.
the problem was related with a bad copy numbering.


anyway if somebody tries to substrate two volumes by using
TGeoCompositeShape, pay attention because there is a bug in the root class documentation.

TGeoCompositeShape *cv = new TGeoCompositeShape("cv"," first\ second")

Don't use (\) for susbatration, it doesn't work.
The proper expression is (-)
TGeoCompositeShape *cv = new TGeoCompositeShape("cv"," first- second")

best regards
alicia
Previous Topic: Bug in trackbase
Next Topic: Problem with cmake
Goto Forum:
  


Current Time: Mon Nov 25 14:23:57 CET 2024

Total time taken to generate the page: 0.00706 seconds