[Dev] crash in GetLightOpacityStringForSurface with revision 229

Brian Fisher brian at hamsterrepublic.com
Tue Oct 28 15:37:21 PDT 2008


cool. If you don't get to it before I do, I'll do it. :)

On Tue, Oct 28, 2008 at 2:25 PM, James Paige <Bob at hamsterrepublic.com>wrote:

> Seems like it would be nice to have the fallback. 1.7 is still the
> packaged version in the stable releases of Debian and Ubuntu.
>
> ---
> James
>
> On Tue, Oct 28, 2008 at 01:37:35PM -0700, Brian Fisher wrote:
> >    If you wanted, you could make things fall back to a python-based
> >    RGBA_PREMULT conversion if the required function doesn't exist. We had
> >    such a function before, which I removed. Using it causes a
> significantly
> >    slower load time vs. using pygame's new 1.8.x feature.
> >
> >    On Tue, Oct 28, 2008 at 8:25 AM, James Paige <Bob at hamsterrepublic.com
> >
> >    wrote:
> >
> >      It has 1.7.1release. Do we require 1.8.x now?
> >
> >      ---
> >      James
> >      On Mon, Oct 27, 2008 at 10:18:58PM -0700, Brian Fisher wrote:
> >      >    That is a pygame version thing - what version of pygame is that
> box
> >      >    running?
> >      >
> >      >    On Mon, Oct 27, 2008 at 10:04 AM, James Paige
> >      <Bob at hamsterrepublic.com>
> >      >    wrote:
> >      >
> >      >      When I try to run using revision 229, I get a crash in
> >      >      GetLightOpacityStringForSurface where it says
> >      >
> >      >         return pygame.image.tostring(surface, "RGBA_PREMULT",
> True)
> >      >      ValueError: Unrecognized type of format
> >      >
> >      >      Here is the full traceback
> >      >
> >      >      ---
> >      >      James
> >      >
> >      >      james at doomtrain:~/src/mhgames/sidescroller$ python
> >      sidescroller.py
> >      >      Failed to find asset camera of type <class
> 'movement.SpeedStyle'>
> >      >      Traceback (most recent call last):
> >      >       File "sidescroller.py", line 105, in <module>
> >      >         game.run_game()
> >      >       File
> >      "/usr/lib/python2.5/site-packages/motherhamster/hamsterwheel.py",
> >      >      line 295, in run_game
> >      >         self._draw()
> >      >       File
> >      "/usr/lib/python2.5/site-packages/motherhamster/hamsterwheel.py",
> >      >      line 336, in _draw
> >      >         self.draw()
> >      >       File "sidescroller.py", line 85, in draw
> >      >         self.player.draw()
> >      >       File "/home/james/src/mhgames/sidescroller/player.py", line
> 104,
> >      in
> >      >      draw
> >      >         self.display.render(body, pos, scale=scale)
> >      >       File
> >      "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> >      >      line 409, in render
> >      >         self.pack_image(image)
> >      >       File
> >      "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> >      >      line 229, in pack_image
> >      >         if pack.pack_image(image):
> >      >       File
> >      "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> >      >      line 127, in pack_image
> >      >         pixels = GetLightOpacityStringForSurface(image.surface)
> >      >       File
> >      "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> >      >      line 33, in GetLightOpacityStringForSurface
> >      >         return pygame.image.tostring(surface, "RGBA_PREMULT",
> True)
> >      >      ValueError: Unrecognized type of format
> >      >      _______________________________________________
> >      >      Dev mailing list
> >      >      Dev at lists.motherhamster.org
> >      >
> http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
> >
> >      > _______________________________________________
> >      > Dev mailing list
> >      > Dev at lists.motherhamster.org
> >      > http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
> >
> >      _______________________________________________
> >      Dev mailing list
> >      Dev at lists.motherhamster.org
> >      http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
>
> > _______________________________________________
> > Dev mailing list
> > Dev at lists.motherhamster.org
> > http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
>
> _______________________________________________
> Dev mailing list
> Dev at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/dev-motherhamster.org/attachments/20081028/a6bcdafd/attachment-0001.htm>


More information about the Dev mailing list