Problem 1755

Summary: drawProjection of energydeposit in qt driver can't rotate
Product: Geant4 Reporter: Li Chuanlong <chuanlong.li>
Component: digits_hits/utilsAssignee: asai
Status: RESOLVED INVALID    
Severity: trivial    
Priority: P5    
Version: 10.1   
Hardware: PC   
OS: Linux   

Description Li Chuanlong 2015-06-11 15:41:13 CEST
bug reproduce:
use example RE03 in Geant4.10.01.p01 in linux.
run1.mac like this:
########################################
#
# define scoring mesh
#
/score/create/boxMesh boxMesh_1
#
/score/mesh/boxSize 100. 100. 100. cm
/score/mesh/nBin 30 30 30
#
/score/quantity/energyDeposit eDep
#/score/quantity/nOfStep nOfStepGamma
#/score/filter/particle gammaFilter gamma
#/score/quantity/nOfStep nOfStepEMinus
#/score/filter/particle eMinusFilter e-
#/score/quantity/nOfStep nOfStepEPlus
#/score/filter/particle ePlusFilter e+
#
/score/close
#
/score/list
#
########################################
#
/vis/disable
/control/verbose 2
/run/verbose 1
#######/event/verbose 1
#######/tracking/verbose 1
/gun/particle e-
/run/beamOn 20
/vis/enable
#
########################################
#
# drawing projections
#
/score/drawProjection boxMesh_1 eDep
#/score/drawProjection boxMesh_1 nOfStepGamma
#/score/drawProjection boxMesh_1 nOfStepEMinus
#/score/drawProjection boxMesh_1 nOfStepEPlus
#
########################################
#
# drawing slices
#
#/vis/scene/create
#/vis/sceneHandler/attach scene-2
#/score/colorMap/setMinMax ! 0. 800.
#/control/loop drawSlice.mac iColumn 0 29 7
#
########################################
#
# Dump scores to a file
#
#/score/dumpQuantityToFile boxMesh_1 nOfStepGamma nOfStepGamma.txt
#
#

in interactive mode with qt driver vis
when rotate the box of drawprojection the qt driver crash with call back like this:
ERROR: 8 - Floating point invalid operation.

Call Stack:
37: /usr/local/lib/libG4run.so
36: /usr/local/lib/libG4run.so
35: /lib/x86_64-linux-gnu/libc.so.6
34: /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QColor::setRgbF(double, double, double, double)
33: /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
32: /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 : QGLWidget::renderText(double, double, double, QString const&, QFont const&, int)
31: /usr/local/lib/libG4OpenGL.so : G4OpenGLQtViewer::DrawText(G4Text const&)
30: /usr/local/lib/libG4OpenGL.so : G4OpenGLSceneHandler::AddPrimitive(G4Text const&)
29: /usr/local/lib/libG4OpenGL.so : G4OpenGLStoredViewer::DrawDisplayLists()
28: /usr/local/lib/libG4OpenGL.so : G4OpenGLStoredQtViewer::ComputeView()
27: /usr/local/lib/libG4OpenGL.so : G4OpenGLStoredQtViewer::paintGL()
26: /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 : QGLWidget::glDraw()
25: /usr/local/lib/libG4OpenGL.so : G4OpenGLStoredQtViewer::updateQWidget()
24: /usr/local/lib/libG4OpenGL.so : G4OpenGLQtViewer::rotateQtScene(float, float)
23: /usr/local/lib/libG4OpenGL.so : G4OpenGLQtViewer::G4MouseMoveEvent(QMouseEvent*)
22: /usr/local/lib/libG4OpenGL.so : G4OpenGLStoredQtViewer::mouseMoveEvent(QMouseEvent*)
21: /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QWidget::event(QEvent*)
20: /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 : QGLWidget::event(QEvent*)
19: /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplicationPrivate::notify_helper(QObject*, QEvent*)
18: /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplication::notify(QObject*, QEvent*)
17: /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QCoreApplication::notifyInternal(QObject*, QEvent*)
16: /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)
15: /usr/lib/x86_64-linux-gnu/libQtGui.so.4
14: /usr/lib/x86_64-linux-gnu/libQtGui.so.4 : QApplication::x11ProcessEvent(_XEvent*)
13: /usr/lib/x86_64-linux-gnu/libQtGui.so.4
12: /lib/x86_64-linux-gnu/libglib-2.0.so.0
11: /lib/x86_64-linux-gnu/libglib-2.0.so.0
10: /lib/x86_64-linux-gnu/libglib-2.0.so.0
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
8: /usr/lib/x86_64-linux-gnu/libQtGui.so.4
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
6: /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4 : QCoreApplication::exec()
4: /usr/local/lib/libG4interfaces.so : G4UIQt::SessionStart()
3: /usr/local/lib/libG4interfaces.so : G4UIExecutive::SessionStart()
2: ./RE03
1: /lib/x86_64-linux-gnu/libc.so.6
0: ./RE03
Aborted (core dumped)
Comment 1 Li Chuanlong 2015-06-11 15:45:49 CEST
call stack ,not call back
Comment 2 asai 2015-06-11 15:51:54 CEST
Thank you for reporting the issue.
Could you please specify which version of Linux you are using as well as the version of your Qt?
Kind regards,
Makoto
Comment 3 asai 2015-08-21 15:39:49 CEST
We tried to reproduce the problem but could not.
We cannot make any further investigation unless we hear the versions of OS, compiler and Qt from the reporter.

We close this report.