Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dumped) #83

Closed
umbe1987 opened this issue Jan 19, 2018 · 1 comment
Closed

Segmentation fault (core dumped) #83

umbe1987 opened this issue Jan 19, 2018 · 1 comment

Comments

@umbe1987
Copy link

umbe1987 commented Jan 19, 2018

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
Copy link
Author

umbe1987 commented Jan 21, 2018

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...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants