Things to try in order of easiest to do...
0) try different bit depths than 32.
1) try building pygame with SDL2.
2) instructions on how to debug things and get stack traces.
3) ask your vendor for support.
1) try building pygame with SDL2.
Some things are still buggy, but a lot of things work (maybe enough for your program).
I recall 'reading on the interwebs' that 'the raspberry pi touch screen does not work with pygame'.
2) instructions on how to debug things.
try this:
$ gdb python yourscript.py
Then when it segfaults, you should get a backtrace.
You can type `backtrace full` to see the trace, where it should show where it fails.
The best resources on how to debug in Debian and with GDB are here:
You will probably need to install pygame and SDL with debug symbols...
I don't think Debian/Ubuntu/Raspberian make pygame or libsdl debug builds... (see with this command)
$ apt-cache search libsdl | grep dbg
So we need to build pygame from source...
# install pygame dependencies (might be slightly different on rasperian... I dunno).
sudo apt-get build-dep python-pygame libsdl1.2debian libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 python3
sudo apt-get install git python3-dev python3-setuptools python3-numpy python3-opengl
sudo apt-get install libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev
sudo apt-get install libsdl1.2-dev libportmidi-dev libtiff5-dev libx11-6 libx11-dev fluid-soundfont-gm
sudo apt-get install timgm6mb-soundfont xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf libfreetype6-dev gdb
$ git clone git@xxxxxxxxxx:pygame/pygame.git
$ python setup.py -config -auto
# Edit `Setup` file. Add -g to the DEBUG= line.
DEBUG= -g
$ python -m pip uninstall pygame
$ python setup.py install pygame
You may also need to install the dependencies of SDL with debug symbols.
Remember... this guide is available if you get stuck:
https://wiki.debian.org/HowToGetABacktrace
I don't think Debian/Ubuntu/Raspberian make libsdl debug builds... (see with this command)
$ apt-cache search libsdl | grep dbg
If they are not there, it's sort of easy to make your own...
# get gdb.
$ sudo apt-get install build-essential fakeroot gdb
$ sudo apt-get build-dep libsdl1.2debian libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0
$ DEB_BUILD_OPTIONS="nostrip noopt" fakeroot apt-get -b source libsdl1.2debian
$ ls -lat *.deb
$ sudo dpkg -i libsdl1.2*.deb
You may want to install the python with debug symbols as well.
$ sudo apt-get install python3-dbg
Also, you may want to try building SDL-1.2 from source using the 'SDL-1.2' bugfix branch.