Bug #719

Build of Makehuman nightly crashes due new debug code.

Added by LaurentR2D2 (Forum User) almost 4 years ago. Updated over 3 years ago.

Status:FixedStart date:03/03/2015
Priority:ImmediateDue date:
Assignee:Jonas Hauquier% Done:

100%

Category:Programming
Target version:MakeHuman 1.1.0

Description

Hello,

I've built Makehuman from the nightly build sources, but when I launch it it crashes. I've tried on two different machine.

The first one run Mac OS X Yosemite 10.0.3. Here is the log : http://pastie.org/9995807

The second one run Mac OS X Mavericks last version. The log is : http://pastie.org/9995913

I've followed the instructions to build Makehuman on my Mac, so I've installed qt-opensource-mac-4.8.6-1.dmg, and python-2.7.6-macosx10.6.dmg.

The dmg file of the Makehuman version I've built is available here : https://dl.dropboxusercontent.com/u/51818/makehumanhg-r1728-osx.dmg


Related issues

Related to MakeHuman - Bug #403: Windows pyinstaller build silently fails on other python Fixed 05/26/2014

Associated revisions

History

#1 Updated by LaurentR2D2 (Forum User) almost 4 years ago

I forgot to mention that I have Xcode 6.1.1

#2 Updated by Francois Grobbelaar almost 4 years ago

I found the problem after looking at the error log of the uploaded MakeHuman.app.

For some reason the additional debug info that has been added to debugdump.py causes MH to crash on startup for Mac. I can actually see the debug logging appear in the log prior to it just crashing. Ends with KeyError: 'QT_PLUGIN_PATH' - in short, I think the Mac doesn't like it.

The log is as below:

PYQT.VERSION: 4.8.6
PYQT.JPG_SUPPORT: supported
PYQT.SVG_SUPPORT: supported
QT.PLUGIN_PATH: /Users/Francois/Development/dist.old copy/MakeHuman.app/Contents/PlugIns:/Users/Francois/Development/dist.old copy/MakeHuman.app/Contents/MacOS
Traceback (most recent call last):
  File "/Users/Francois/Development/dist.old copy/MakeHuman.app/Contents/Resources/__boot__.py", line 316, in <module>
    _run()
  File "/Users/Francois/Development/dist.old copy/MakeHuman.app/Contents/Resources/__boot__.py", line 311, in _run
    exec(compile(source, path, 'exec'), globals(), globals())
  File "/Users/Francois/Development/dist.old copy/MakeHuman.app/Contents/Resources/makehuman.py", line 648, in <module>
    main()
  File "/Users/Francois/Development/dist.old copy/MakeHuman.app/Contents/Resources/makehuman.py", line 640, in main
    application.run()
  File "./core/mhmain.py", line 1669, in run
    self.start()
  File "./lib/qtui.py", line 687, in start
    self.OnInit()
  File "./core/mhmain.py", line 1638, in OnInit
    mh.Application.OnInit(self)
  File "./lib/qtui.py", line 674, in OnInit
    debugdump.dump.appendQt()
  File "./lib/debugdump.py", line 145, in appendQt
    self.write("QT.PLUGIN_PATH_ENV: %s" % os.environ['QT_PLUGIN_PATH'])
  File "UserDict.pyc", line 23, in __getitem__
KeyError: 'QT_PLUGIN_PATH'

#3 Updated by LaurentR2D2 (Forum User) almost 4 years ago

This is effectively the problem, and raziel2001au has given me the way to solve it. I quote him below :

"Some additional debugging was added in the last couple of days, and for some reason that is causing MH to crash on Mac. For the time being, open up the MakeHuman.app package contents and navigate to: Contents/Resources/lib. Delete 'debugdump.pyc' and edit 'debugdump.py', removing the following line:
self.write("QT.PLUGIN_PATH_ENV: %s" % os.environ['QT_PLUGIN_PATH'])"

Following its instructions, I can launch Makehuman without problem.

#4 Updated by Rob Baer almost 4 years ago

  • Related to Bug #403: Windows pyinstaller build silently fails on other python added

#5 Updated by Rob Baer almost 4 years ago

This is not MacOS specific. The latest windows build also fails on startup (see comment on issue #403) for which this debug code was added.

#6 Updated by Anonymous almost 4 years ago

  • Priority changed from Normal to Immediate

Thanks. Indeed I'm receiving reports from everywhere, any OS. I modified the priority to "immediate".

#7 Updated by Anonymous almost 4 years ago

  • Subject changed from Build of Makehuman nightly crashes on Mac Os X Yosemite and Mavericks to Build of Makehuman nightly crashes due new debug code.
  • Status changed from New to Accepted

#8 Updated by Jonas Hauquier almost 4 years ago

Oh, I thought os.environ handled keyerrors gracefully.

#9 Updated by Jonas Hauquier almost 4 years ago

  • Status changed from Accepted to Fix exists, needs testing
  • % Done changed from 0 to 90

Applied in changeset commit:makehuman_hg|8021d78ca5c1.

#10 Updated by LaurentR2D2 (Forum User) almost 4 years ago

I've built the last revision last night on my Mac, and the problem is solved. I can launch Makehuman without problem. Here is the url to the dmg file :

https://dl.dropboxusercontent.com/u/51818/makehumanhg-r1729-osx.dmg

#11 Updated by Rob Baer almost 4 years ago

Reported fixed on Mac; confirmed fixed on Windows. Marking as fixed
.

#12 Updated by Rob Baer almost 4 years ago

  • Status changed from Fix exists, needs testing to Fixed

#13 Updated by Jonas Hauquier over 3 years ago

  • Target version set to MakeHuman 1.1.0
  • % Done changed from 90 to 100

Also available in: Atom