Author Topic: AM crashes regularly on OS X  (Read 6463 times)

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
AM crashes regularly on OS X
« on: June 14, 2015, 04:56:29 AM »
AM crashes on OS X. It happens from time to time.

Finally, I found a way how to replicate this behavior.

1. open AM in window mode (to be able to ALT-TAB to another program)
2. don't start the game, and ALT-TAB to another program
3. let AM idle in the background for a few minutes.
4. bam... I crashes.

----

If you open AM and start the game in a short time - it doesn't crash.
Because when the game is running - AM sits in the background in some kind of "freeze" state. Activity monitor reports that AM is "not responding".

----

OS X Crash report in attachment.
« Last Edit: July 28, 2015, 06:12:04 AM by verion »

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: AM crashes regularly on OS X
« Reply #1 on: June 14, 2015, 08:32:08 AM »
I ran it for about an hour and a half in the background in Windowed mode and didn't have any crashes.

One issue I did notice is even for fullscreen, if you alt-tab out the audio is still playing which is pretty annoying :)

How do you get the debug output on OSX?

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: AM crashes regularly on OS X
« Reply #2 on: June 14, 2015, 10:28:03 AM »
Applications folder > Utilities folder > Console

If this is what you are looking for.

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
Re: AM crashes regularly on OS X
« Reply #3 on: June 15, 2015, 12:21:00 AM »
Since liquid8d can't reproduce this crash on virtually the same setup (except hardware) it seems that this crashing is an isolated case somehow related to my particular hardware/other software combination.

I'll make a clean os install and see if it goes away.
« Last Edit: June 17, 2015, 02:30:01 PM by verion »

wirelessjava2002

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
    • Paul Rowland Apps
Re: AM crashes regularly on OS X
« Reply #4 on: June 26, 2015, 01:07:27 PM »
I'm new to AM, but hopefully this may also be helpful for the Devs, here's my observations:

  • Open AM 'verticools' layout
  • TAB change display to 'Orbit'
  • ESC
  • Crash

It will then crash on opening evrytime. Re-boot, will still crash

To fix:

System Preferences -> Change resolution from ‘Default for Display’ to scaled. Chose another resolution then AM will open as expected.
Can change back to ‘Default for display’ and will still be fine until you change displays within AM

This is from a 27inch iMac. AM doesn’t seem to like the very big resolutions, or probably a change in the screen resolution either by AM itself, or another app using alt tab or similar.

Crash dump excerpt here:


Code: [Select]
Process:               attract [2772]
Path:                  /Applications/attract-1.5.2-osx/Attract.app/Contents/MacOS/./attract
Identifier:            org.attractmode.attract
Version:               1.0 (1)
Code Type:             X86-64 (Native)
Parent Process:        bash [2770]
Responsible:           bash [2770]
User ID:               501

Date/Time:             2015-06-26 20:24:39.975 +0100
OS Version:            Mac OS X 10.10.3 (14D136)
Report Version:        11
Anonymous UUID:        F43C3A4E-7E20-606E-DE6F-1E35D62F3A37

Sleep/Wake UUID:       0A119387-388F-4AC0-913B-7D98F3400EDD

Time Awake Since Boot: 90000 seconds
Time Since Wake:       1600 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
Assertion failed: (x + width <= m_size.x), function update, file /tmp/sfml-e9ko/SFML-2.1/src/SFML/Graphics/Texture.cpp, line 324.
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        0x00007fff847e6286 __pthread_kill + 10
1   libsystem_c.dylib              0x00007fff8fd6db53 abort + 129
2   libsystem_c.dylib              0x00007fff8fd35c39 __assert_rtn + 321
3   libsfml-graphics.2.1.dylib    0x00000001001dc12e sf::Texture::update(unsigned char const*, unsigned int, unsigned int, unsigned int, unsigned int) + 108
4   libsfml-graphics.2.1.dylib    0x00000001001caef0 sf::Font::loadGlyph(unsigned int, unsigned int, bool) const + 712
5   libsfml-graphics.2.1.dylib    0x00000001001cafed sf::Font::getGlyph(unsigned int, unsigned int, bool) const + 165
6   attract                        0x000000010006de54 FeTextPrimative::fit_string(std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > const&, int, int&, int&) + 292
7   attract                        0x000000010006f138 FeTextPrimative::setString(std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > const&, int) + 152
8   attract                        0x000000010006fe2a FeTextPrimative::setString(std::string const&) + 74
9   attract                        0x0000000100073515 FeText::on_new_selection(FeSettings*) + 85
10  attract                        0x000000010005b080 FePresent::update(bool, bool) + 288
11  attract                        0x000000010005b133 FePresent::update_to_new_list(int, bool) + 35
12  attract                        0x000000010005c462 FePresent::load_layout(bool) + 370
13  attract                        0x00000001000acce7 main + 4727
14  attract                        0x0000000100006bf8 start + 52...

Hope this helps

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 861
    • View Profile
    • new projects
[solved] AM crashes regularly on OS X
« Reply #5 on: July 28, 2015, 05:44:42 AM »
EDIT: it still crashes after the update :( but it takes longer to crash - maybe it is somehow screensaver related? I'll investigate this. But still - if you have any problems with AM - it's worth to check if newer build doesn't solve this.

Problem solved by updating to the latest AM OS X build = no more AM crashes

http://build.zaplabs.com/bot/attractmode/attract64-osx-v1.5.3-29-8f49b528.zip
provided by h0tw1r3 here - http://forum.attractmode.org/index.php?topic=289.0

Just download it and replace you current AM.
ATTENTION - all your layouts and configs are "within" app bundle - but if you added more layouts or you already now that.
Just right click on app and select "Show Package Content" and backup your layouts or configs.

---

One thing (not exactly build related) was not working out-of-the-box
I couldn't change layout in MENU > DISPLAY > LAYOUT until I delete
"org.attractmode.attract.savedState" folder under ~/Library/Saved Application State
After that - everything works ok.

---

How to:

#1
open FINDER
from menubar select GO > GO TO FOLDER
paste:
~/Library/Saved Application State

and then delete folder
org.attractmode.attract.savedState

#2
open terminal
paste the code below and press RETURN/ENTER

Code: [Select]
rm -r ~/Library/Saved\ Application\ State/org.attractmode.attract.savedState
« Last Edit: July 28, 2015, 06:15:40 AM by verion »