Page MenuHomePhabricator

JavaScript problem when reselecting image with image statistics plugin loaded.
Closed, ResolvedPublic

Description

  • Perform steps of Image Statistics Bundle Test 2 until Step 4.
  • Sometimes(2/5), the attached JavaScript problem message appears.
  • After selecting No in the problem message, everything seems to continue normally.

ReleaseBug.png (132×502 px, 20 KB)

Event Timeline

Additional testing showed: this problem seams to appear randomly when selecting/deselecting an image in the datamanager when statistics view is active.
Could not be reproduced in Windows, although this might just be coincidence.

Mority could you have a look at it?

Analyzed problem: the javascript is for some reason duplicated when the mitk window is resized. This causes the script to run two (or more depending on number of previous resizes) times, causing random crashes. We assume.

New remote branch pushed: bug-16158-AvoidDoubleSignalEnvocation

[7a62e8]: Merge branch 'bug-16158-AvoidDoubleSignalEnvocation'

Merged commits:

2013-10-16 16:58:53 Sebastian Wirkert [db5ae9]
Avoided double invocation.

I recognized there is a memory leak in the QmitkHistogramJSWidget, which is probably a bug of the Qt Web Kit.

see: https://bugs.webkit.org/show_bug.cgi?id=75984

[7e59c7]: Merge branch 'bug-16158-AvoidDoubleSignalEnvocation'

Merged commits:

2013-11-21 14:07:45 Moritz Petry [4ecc18]
last corrections


2013-11-20 16:01:06 Moritz Petry [500dd3]
Implemented a new WebPage class to prevent Qt from showing a dialog to stop the JavaScript, which is used in the histogram.


2013-11-14 14:58:53 Moritz [e953fb]
added comment.


2013-11-13 16:20:04 Moritz [f543b2]
Implemented a method in JavaScript to disconnect signals of Qt before the webpage is reloaded.