Page MenuHomePhabricator

Levelwindow presets ar not shown if application is run via an installer
Closed, ResolvedPublic

Description

Building and running the ExtApp works fine. BUT building an installer and then running the ExtApp makes problems: The level window presets are not shown, when right clicking on the level window bar. If you close the application afterwards it crashes with the following error log message:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff85ba2ce2 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff848427d2 pthread_kill + 95
2 libsystem_c.dylib 0x00007fff84833a7a abort + 143
3 libPocoFoundation.1.3.5.dylib 0x00000001006ed7de Poco::SignalHandler::handleSignal(int) + 62
4 libsystem_c.dylib 0x00007fff84894cfa _sigtramp + 26
5 QtCore 0x0000000101657bbb QObject::~QObject() + 43
6 libQmitk.dylib 0x000000010fc001a1 QmitkLevelWindowWidgetContextMenu::getContextMenu(QMenu*) + 2545
7 libQmitk.dylib 0x000000010fc1790f QmitkSliderLevelWindowWidget::contextMenuEvent(QContextMenuEvent*) + 223
8 QtGui 0x00000001008fb331 QWidget::event(QEvent*) + 1905

Event Timeline

Ok I investigated this problem further:

  • The crash is a general problem -> I will file a new bug for that

The installer was built with Mac OS X 10.6 and everything works fine on Mac OS X 10.6

But on 10.7 there is the problem that the level window presets are not shown and the application icon is not shown.

There are two reasons for this:

  1. Application icon: wrong path in the application's .plist file. There an absolute path is stored which is basically the path on the machine where the installer was build
  1. Levelwindow presets: The presets a read from the current working directory which is in case of mac os x the /Applicationfolder. However the presets are stored in the .app/Contents/MacOS directory.

Renamed bug and splitting it since these are different issues. New application icon bug is T13517

Changed to high priority.

New remote branch pushed: bug-12221-levelwindowPresetsNotShownOnMac

Wrote change request and asked for core modification.

[a3e3ac]: Merge branch 'bug-12221-levelwindowPresetsNotShownOnMac'

Merged commits:

2012-11-07 13:26:44 Andreas Fetzer [758074]
Fixed not included level window presets on mac

Added the executable path to the search directories of the mitk::StandardFileLocations