This is driving me crazy. I build my pygame app with py2exe (Windows 7) and it seems to start (app blanks the screen black and then should display login box) but as soon as it blanks the screen it crashes with error:
Runtime error! The application has requested the runtime to terminate it in an unusual way. Here are the Windows problem details: Problem signature: Problem Event Name: APPCRASH Application Name: start.exe_Netrek Pygame Application Version: 0.3.1.0 Application Timestamp: 491801a4 Fault Module Name: MSVCR90.dll Fault Module Version: 9.0.30729.4926 Fault Module Timestamp: 4a1750b0 Exception Code: 40000015 Exception Offset: 00000000000555c7 OS Version: 6.1.7600.2.0.0.256.1 Locale ID: 1033 Additional Information 1: ea57 Additional Information 2: ea576043c39cb5e0986f167cb52b7a1f Additional Information 3: 45c4 Additional Information 4: 45c4c558f159e0fb8bf8eaee810ac14b I note file MSVCR90.dll, I already have the Microsoft Visual C Runtime 9.0 installed since I have Vistual Studio 2008 Express. I even placed a copy of this DLL in my Python DLL directory and in my py2exe build directory. I then made a manifest file as instructed. Is it possible to get more helpful info as to why my pygame app is crashing in particular? I tried adding print statements in the code but nothing is printed on screen. Here is my py2exe build script: ####################################################### from distutils.core import setup import py2exe, pygame import glob, shutil import sys, os import operator, fnmatch, zlib data_files = [('images', ['C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\activity-stop.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\axis-75x75.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\close.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-00.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-01.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-02.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-03.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-04.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-05.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-06.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-07.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-08.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-09.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\exp-10.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\explosion.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-8x8.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-as-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-as.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-bb-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-bb.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-ca-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-ca.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-dd-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-dd.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-sb-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-sb.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-sc-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\fed-sc.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\go-previous.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\help.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\hubble-crab.jpg', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\hubble-helix.jpg', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\hubble-orion.jpg', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\hubble-spire.jpg', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ind-8x8.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-8x8.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-as-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-as.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-bb-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-bb.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-ca-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-ca.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-dd-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-dd.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-sb-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-sb.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-sc-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\kli-sc.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\locator.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\netrek.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-8x8.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-as-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-as.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-bb-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-bb.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-ca-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-ca.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-dd-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-dd.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-sb-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-sb.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-sc-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ori-sc.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-fed-30x30.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-fed.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-ind-30x30.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-ind.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-kli-30x30.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-kli.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-ori-30x30.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-ori.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-overlay-army.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-overlay-attack.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-overlay-fuel.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-overlay-lock.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-overlay-repair.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-rom-30x30.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\planet-rom.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\plasma-explode.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\plasma-move.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ring-36x36.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-8x8.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-as-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-as.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-bb-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-bb.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-ca-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-ca.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-dd-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-dd.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-sb-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-sb.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-sc-40x40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\rom-sc.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\servers-icon.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\servers-player.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\shield-80x80.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\ship-cloak.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\stars.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\system-logout.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\system-restart.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\team-box-fed.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\team-box-kli.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\team-box-ori.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\team-box-rom.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-det.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-10.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-100.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-120.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-140.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-160.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-180.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-20.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-200.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-30.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-40.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-50.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-60.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode-80.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-explode.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-fed.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-ind.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-kli.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-me.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-off.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-ori.png', 'C:\\Users\\Administrator\\Desktop\\python\\netrek-client-pygame-0.6\\images\\torp-rom.png'])] setup( windows=["start.py"], data_files = data_files, name='Netrek Pygame', version='0.3.1', description='Netrek Pygame Client', author='James Cameron', author_email='', url='www.netrek.org', py_modules=['__init__','cache','cap','client','constants','mercenary','meta','rcd','repair','mis','motd','options','util'] ) shutil.copyfile('freesansbold.ttf', 'dist/freesansbold.ttf') ####################################################### Here is the source files if you want to try and run it yourself. Just unpack and the python files are in the "netrek" directory. Rename "netrek-client-pygame" to start.py before you run py2exe: python build.py py2exe http://quozl.linux.org.au/netrek-client-pygame/netrek-client-pygame-0.6.tar.gz I'm using: py2exe-0.6.9.win64-py2.6.amd64.exe, pygame-1.9.2pre.win-amd64-py2.6.exe, and python-2.6.amd64.msi Zach <>< http://www.fidei.org ><>