Crash when using File -> save or File -> open (Linux x86_64)

Issue #6 open
adrgt
created an issue

Hello,

Lithosphere crashes with the following Python stack-trace when using the File -> Save or File -> Open buttons:

{{{ Traceback (most recent call last): File "build/bdist.linux-i686/egg/lithosphere/main.py", line 86, in main application.run() File "build/bdist.linux-i686/egg/lithosphere/application.py", line 171, in run pyglet.app.run() File "build/bdist.linux-i686/egg/pyglet/app/init.py", line 123, in run event_loop.run() File "build/bdist.linux-i686/egg/pyglet/app/base.py", line 133, in run self._run_estimated() File "build/bdist.linux-i686/egg/pyglet/app/base.py", line 172, in _run_estimated if not platform_event_loop.step(estimate) and estimate != 0.0: File "build/bdist.linux-i686/egg/pyglet/app/xlib.py", line 121, in step device.select() File "build/bdist.linux-i686/egg/pyglet/canvas/xlib.py", line 165, in select dispatch(e) File "build/bdist.linux-i686/egg/pyglet/window/xlib/init.py", line 861, in dispatch_platform_event_view event_handler(e) File "build/bdist.linux-i686/egg/pyglet/window/xlib/init.py", line 1167, in _event_button x, y, button, modifiers) File "build/bdist.linux-i686/egg/pyglet/window/init.py", line 1150, in dispatch_event if EventDispatcher.dispatch_event(self, args) != False: File "build/bdist.linux-i686/egg/pyglet/event.py", line 355, in dispatch_event if handler(args): File "build/bdist.linux-i686/egg/halogen/button.py", line 35, in on_mouse_release self.dispatch_event('on_click') File "build/bdist.linux-i686/egg/pyglet/event.py", line 365, in dispatch_event if getattr(self, event_type)(*args): File "build/bdist.linux-i686/egg/halogen/dialogs.py", line 45, in show self.show_dir() File "build/bdist.linux-i686/egg/halogen/dialogs.py", line 67, in show_dir file_col.refresh() File "build/bdist.linux-i686/egg/halogen/node.py", line 105, in refresh self.update() File "build/bdist.linux-i686/egg/halogen/node.py", line 113, in update self.rect.width, self.rect.height = self.width, self.height File "build/bdist.linux-i686/egg/halogen/rowcol.py", line 69, in width return max(child.width for child in self)+left+right File "build/bdist.linux-i686/egg/halogen/rowcol.py", line 69, in <genexpr> return max(child.width for child in self)+left+right File "build/bdist.linux-i686/egg/halogen/label.py", line 33, in width return self.style.font.compute_width(self.text) File "build/bdist.linux-i686/egg/halogen/font.py", line 90, in compute_width glyph = self.get_glyph(c) File "build/bdist.linux-i686/egg/halogen/font.py", line 65, in get_glyph glyph = self.font.get_glyphs(char)[0] File "build/bdist.linux-i686/egg/pyglet/font/base.py", line 370, in get_glyphs for c in get_grapheme_clusters(unicode(text)): UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128) }}}

Machine: Intel core i7 860 (x86_64 quad-core w/ HT) GPU: AMD Radeon HD 5870 OS: Ubuntu 10.04 x86_64 Python version: 2.6.5

Comments (6)

  1. adrgt reporter

    Well, I do not have an x86 machine capable of running lithosphere handy, and am reluctant to install another OS on my main box. VirtualBox's 3D acceleration does not support floating-point textures, thus no "virtual" lithosphere either :-/

    Can you give me further debugging instructions on x86_64 ?

  2. Florian Bösch repo owner

    Nah I don't think it's a 64 bit problem. I remember there was a similar issue a while ago. I think it's a unicode filename problem, I'll look into this that should be easy to test for myself.

    Do you use the version from the site or a source clone?

  3. Anonymous

    Hi, got the exact same error when saving heightfield. Got only ASCII in the path to the python script.

    Nvidia GPU, core 2 duo CPU (x64 too), OpenSuSE distro.

  4. Log in to comment