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

Issue #6 open
created an issue


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/", line 86, in main File "build/bdist.linux-i686/egg/lithosphere/", line 171, in run File "build/bdist.linux-i686/egg/pyglet/app/", line 123, in run File "build/bdist.linux-i686/egg/pyglet/app/", line 133, in run self._run_estimated() File "build/bdist.linux-i686/egg/pyglet/app/", line 172, in _run_estimated if not platform_event_loop.step(estimate) and estimate != 0.0: File "build/bdist.linux-i686/egg/pyglet/app/", line 121, in step File "build/bdist.linux-i686/egg/pyglet/canvas/", line 165, in select dispatch(e) File "build/bdist.linux-i686/egg/pyglet/window/xlib/", line 861, in dispatch_platform_event_view event_handler(e) File "build/bdist.linux-i686/egg/pyglet/window/xlib/", line 1167, in _event_button x, y, button, modifiers) File "build/bdist.linux-i686/egg/pyglet/window/", line 1150, in dispatch_event if EventDispatcher.dispatch_event(self, args) != False: File "build/bdist.linux-i686/egg/pyglet/", line 355, in dispatch_event if handler(args): File "build/bdist.linux-i686/egg/halogen/", line 35, in on_mouse_release self.dispatch_event('on_click') File "build/bdist.linux-i686/egg/pyglet/", line 365, in dispatch_event if getattr(self, event_type)(*args): File "build/bdist.linux-i686/egg/halogen/", line 45, in show self.show_dir() File "build/bdist.linux-i686/egg/halogen/", line 67, in show_dir file_col.refresh() File "build/bdist.linux-i686/egg/halogen/", line 105, in refresh self.update() File "build/bdist.linux-i686/egg/halogen/", line 113, in update self.rect.width, self.rect.height = self.width, self.height File "build/bdist.linux-i686/egg/halogen/", line 69, in width return max(child.width for child in self)+left+right File "build/bdist.linux-i686/egg/halogen/", line 69, in <genexpr> return max(child.width for child in self)+left+right File "build/bdist.linux-i686/egg/halogen/", line 33, in width return File "build/bdist.linux-i686/egg/halogen/", line 90, in compute_width glyph = self.get_glyph(c) File "build/bdist.linux-i686/egg/halogen/", line 65, in get_glyph glyph = self.font.get_glyphs(char)[0] File "build/bdist.linux-i686/egg/pyglet/font/", 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