Here is the (minimized) project code:
SetPhysicsScale(0.005)
imgId = LoadImage("bone.png")
sprId = CreateSprite(imgId)
setSpritePhysicsOn(sprId, 2)
SetSpriteShape(sprId, 3)
SetSpritePhysicsMass(sprId, 50)
To reproduce:
-In AppGameKit editor, create new project
-Paste above code in the project main.agc. You do not need a loop or anything else because the last statement crashes the program.
-Put the attached bone.png in the project media folder
-Run the project
-Observe AppGameKit Player crash
Some notes:
-Only tried it on OSX.
-I tried to email someone at TGC about this (to avoid attaching my awesome assets here of course) but I guess they could not reproduce. Maybe it is OS specific or something, maybe someone else can try as well.
-This has happened to me at least with two sprites of different sizes with different images but with these same physics parameters (the crash at SetPhysicsMass)
-Changing the mass to 5 caused the crash to go away. Changing the scale to 0.05 also cause it to go away. So I guess it has something to do with specific parameter combinations.
-I have many sprites with different images that do not have this issue, even with these physics parameters, so you also need some specific attributes for the sprite. The bone image I attached always "works" for me.