Modes crashing in Ubuntu

7 views
Skip to first unread message

Greg Sealby

unread,
Jul 27, 2019, 9:36:41 AM7/27/19
to MPF Users
I have been testing my game on an Ubuntu installation as this is going to be our OS for the hardware in our machine, and am experiencing a crash on four key game modes.  All other modes seem to be running perfectly well and use many of the same components as the modes that are crashing (fonts, styles, images, sounds etc).

The weird thing is that there is no exception raised in either my MPF or MC logs.  The issue seems to be MC crashing out.  The screen freezes, but when I check the logs I can see that the MPF logs still contains timer and other events occuring whilst the screen is freezing.  In the MC log it has no log information after the activation of the mode intro screen.  This all works fine when I run it on Windows.  I've checked for upper/lower case inconsistencies as I've had issues with this before, but no luck.

Does anyone have any ideas on how I can debug this?  Without an exception being thrown I am really not sure where to start looking for issues.

Greg Sealby

unread,
Jul 27, 2019, 10:01:57 AM7/27/19
to MPF Users
OK, so I have "solved" this one.  By this I mean I have found the area that was causing a problem and changed it so that it works now.  

I commented out all my slide_player and events to create slides ... and the mode ran!  I could hear the callouts and the scoring was coming up.  I then progressively added back in my slides until I found the one that was causing the fault.  I then did the same with each widget and eventually found that my text widget was causing the fault.  It contained the line "Shoot the Green Standups", I changed this to "Hit the Green Standups" and I no longer had any issues.

I do not know why this causes an issue, so I can't pass on any wisdom as to the root cause.  Perhaps "Shoot" is a reserved word?  But then why does it work fine in Windows? No idea... anyway, hope this helps someone else at some stage.

jabdoa

unread,
Jul 27, 2019, 10:29:35 AM7/27/19
to MPF Users
Hi Greg,

If you can reproduce the hang please try this and post the output: http://docs.missionpinball.org/en/dev/troubleshooting/index.html?highlight=Gdb#debug-crashes-segfaults-hangs. That will help us find the root cause.

Jan

Reply all
Reply to author
Forward
0 new messages