renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
328 stars 66 forks source link

Segmentation fault (core dumped) #83

Closed umbe1987 closed 4 months ago

umbe1987 commented 6 years ago

As in #28 I get a "Segmentation fault (core dumped)" error. I am however not able to pinpoint the cause. It's happening as long as I start my game. I am using Ubuntu 16.04 with a nvidia graphic card if that does matter. "UserWarning: Pygame has already been imported, import_as_pygame may not work" warnings appear in the shell before the segmentation fault error. My game is in this repo and it is using bitcraft's pytmx module with some jpg and png files. Hope I can find a solution as this and RAPT projects seem amazing (trying to port my game on mobile)! Cheers.

umbe1987 commented 6 years ago

Ok so, after debugging around I discovered that the problem was somehow caused by the call to

from pytmx.util_pygame import load_pygame tiled_map = load_pygame('map.tmx')

Now, I would need to figure out if I can implement my game using both pygame_sdl2 and pytmx, because both are great and I really hope it is feasible. If anybody did so, would you mind telling me here that this is actually possible? Will leave this open to hopefully see someone responding. I'll be happy to share any code. However, it is visible in my repo (master branch, as I removed pytmx from my pygame_sdl2 for now...).