FSWisdom crached when saving timestamp (std::bad_alloc)

Bug #404110 reported by Martin Flodin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Forssim
Fix Released
High
Ulrika Dreifaldt

Bug Description

I was saving a lot of timestamps to test the speed of the database by simply starting up an exercise and immediately quitting and saving w/o drilling anything. I did this maybe 7 times before it suddenly crached with the following printout:

Constructing Updater_QTableWidget
Constructed Updater_QTableWidget
Destroying Updater_QTableWidget
Updater_QProgressBar_PlaybackProgressBar Constructing
Updater_QProgressBar_PlaybackProgressBar Constructed
exitX3DWithStandardGuiWindow
VolumeModel: Saving Timestamps
to file named: /home/hiq/logDirectory/martin/090724160549.nrrd
Saving data of type double to nrrd file /home/hiq/logDirectory/martin/090724160549.nrrd
terminate called after throwing an instance of 'std::bad_alloc'
  what(): std::bad_alloc
Aborted

Tags: memoryleak
Martin Flodin (mflodin)
Changed in forssim:
importance: Undecided → High
Revision history for this message
Martin Flodin (mflodin) wrote :
Revision history for this message
Ulrika Dreifaldt (ulrika-dreifaldt) wrote :

Please retest and comment

Changed in forssim:
assignee: nobody → JohanO (johan-olofsson)
Revision history for this message
JohanO (johan-olofsson) wrote :

Also valid for XP v.0.2.2. See bug 419855.

Revision history for this message
JohanO (johan-olofsson) wrote :

Tested on branch SLOTSIGNALDeallocation and it is still valid. Always happens when the eight exercise is launched (same for all the cases). Counter issue?

Error message:
StateMachine Model Constructing
StateMachine Model Constructed
StateMachine Model Initializing
StateMachine Model Initialized
[W] WARNING: Route error. Could not find field named "gimbalAngles" in "HDEV" Node (/home/hiq/caseDirectory/Remove Wisdom Tooth Mouse v1/x3d/index.x3d line 222)
Initializing Highlight Node
Initialized Highlight Node
[W] WARNING: Route error. Could not find field named "engageHighlightField" in "HN" Node (/home/hiq/caseDirectory/Remove Wisdom Tooth Mouse v1/x3d/index.x3d line 229)
Initializing Drillable Node
Initialized Drillable Node
Initializing ADrillForce Node
Initializing Save Volume Node
Initializing Volume Playback Node
Initialized Volume Playback Node
[W] Warning: None of the urls in ImageTexture with url [ "textures/Ben_Eye.jpg"] could be loaded. Either they don't exist or the file format is not supported by any H3DImageLoaderNode that is available (in Unnamed ImageTexture)
Killed

JohanO (johan-olofsson)
Changed in forssim:
assignee: JohanO (johan-olofsson) → jocke (jocke-karlsson)
Revision history for this message
JohanO (johan-olofsson) wrote :

Still valid in the branch check_pedals.

FsWisdom is killed when the eight save is made on a launched exercise

Steps to reproduce:
1) Start FsWisdom and login
2) Launch an exercise
3) Press Exit button when the exercise is launched
4) Press Yes button
5) Repeat step 2-4 and then when the eight save is made FsWisdom is killed

tags: added: memoryleak
Revision history for this message
Daniel Stehn (daniel-stehn) wrote :

This bug was connected to the other memory leakage crasches.

Changed in forssim:
assignee: jocke (jocke-karlsson) → Daniel Stehn (daniel-stehn)
status: New → Fix Committed
Revision history for this message
Daniel Stehn (daniel-stehn) wrote :

Fixed in branch MemoryFix_for_Perform_selected_exercise

Changed in forssim:
assignee: Daniel Stehn (daniel-stehn) → JohanO (johan-olofsson)
Revision history for this message
Ulrika Dreifaldt (ulrika-dreifaldt) wrote :

Tried this 9 successful times with lp:~forsslundsystems/forssim/forssim_0.2.7

Changed in forssim:
assignee: JohanO (johan-olofsson) → Ulrika Dreifaldt (ulrika-dreifaldt)
Revision history for this message
Ulrika Dreifaldt (ulrika-dreifaldt) wrote :

Released in Forssim 0.2.7

Changed in forssim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.