UltraStar-Deluxe / USDX

The free and open source karaoke singing game UltraStar Deluxe, inspired by Sony SingStarâ„¢
https://usdx.eu
GNU General Public License v2.0
803 stars 157 forks source link

Fresh compiled USDX crashing on start in MacOS 10.15 (Catalina) #507

Open vladox opened 4 years ago

vladox commented 4 years ago

Please, do not create duplicate issues

Actual behaviour

After building and configuring USDX in MacOS 10.15 when I try to start the app it crashes leaving only this in the console:

com.apple.xpc.launchd[1] (org.ultrastardeluxe.ultrastardeluxe.6720[40284]): Service exited with abnormal code: 217

Expected behaviour

App opens without crashing

Steps to reproduce

  1. Build App using instructions in https://github.com/Ultrastar-Deluxe/USDX#compiling-on-macos-high-sierra-and-above
  2. run open UltraStarDeluxe.app

Details

Provide some additional information:

s09bQ5 commented 4 years ago

Do you get more output if you directly run the ultrastardx executable from the Contents/MacOS folder of the bundle?

vladox commented 4 years ago

I get this:

An unhandled exception occurred at $0000000100026759: EInOutError: Invalid file handle $0000000100026759 $000000010006602C

s09bQ5 commented 4 years ago

Please configure with --enable-debug to increase the usefulness of this output.

s09bQ5 commented 4 years ago

I can't reproduce your problem. If you don't help us perform tests, we can't fix this.

onchestus commented 4 years ago

Having the same problem, ran through the same steps.

Error.Log File added. Error.log

basisbit commented 4 years ago

@onchestus Please configure with --enable-debug to increase the usefulness of this output. The relevant output should appear when starting the game from the console.

onchestus commented 4 years ago

@onchestus Please configure with --enable-debug to increase the usefulness of this output. The relevant output should appear when starting the game from the console.

Run with: ultrastardx --enable-debug

Error.log

Terminal Output: Sorry, an error ocurred! Please report this error to the game-developers. Also check the Error.log file in the game folder. Stacktrace: Exception class: EAccessViolation Message: Access violation $00000001000CFD49 $000000010005CEF8 $0000000100059125 $0000000100059252 $00000001000683C8 $0000000100066E2F $000000010006C5A9

console output.docx

basisbit commented 4 years ago

you'll have to recompile the game and add the --enable-debug for the ./configure step

onchestus commented 4 years ago

Run ./configure --enable-debug Run make macosx-standalone-app Run ultrastardx from inside Contents

Error.log

console output.docx

Terminal Output: Sorry, an error ocurred! Please report this error to the game-developers. Also check the Error.log file in the game folder. Stacktrace: Exception class: EAccessViolation Message: Access violation $00000001000CFD49 $000000010005CEF8 $0000000100059125 $0000000100059252 $00000001000683C8 $0000000100066E2F $000000010006C5A9

basisbit commented 4 years ago

@s09bQ5 any idea how to get the compile result on macOS with debug symbols / line numbers and so on?

onchestus commented 4 years ago

Is this what you are after?

Run lldb ultrastardx

Terminal: Process 43520 launched: '/Users/Adam/USDX/UltraStarDeluxe.app/Contents/MacOS/ultrastardx' (x86_64) 2020-02-21 23:40:41.076652+1100 ultrastardx[43520:1306918] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x104635ff0> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2020-02-21 23:40:41.098186+1100 ultrastardx[43520:1306918] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine 2020-02-21 23:40:41.098526+1100 ultrastardx[43520:1306918] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine Process 43520 stopped

Error.log

rubinhos commented 3 years ago

Is this what you are after?

Run lldb ultrastardx

Terminal: Process 43520 launched: '/Users/Adam/USDX/UltraStarDeluxe.app/Contents/MacOS/ultrastardx' (x86_64) 2020-02-21 23:40:41.076652+1100 ultrastardx[43520:1306918] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x104635ff0> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2020-02-21 23:40:41.098186+1100 ultrastardx[43520:1306918] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine 2020-02-21 23:40:41.098526+1100 ultrastardx[43520:1306918] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine Process 43520 stopped

  • thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BADACCESS (code=1, address=0x0) frame #0: 0x00000001000cfd49 ultrastardx`TEXTGL$$SETFONTSIZE$REAL + 105 ultrastardx`TEXTGL$$_SETFONTSIZE$REAL: 0x1000cfd49 <+105>: movq (%rax), %rax 0x1000cfd4c <+108>: callq *0x180(%rax) 0x1000cfd52 <+114>: leave 0x1000cfd53 <+115>: retq Target 0: (ultrastardx) stopped.

Error.log

Getting the same error here, using Mac OS 10.15.6

s09bQ5 commented 3 years ago

I get the exact same error on Linux if fonts/fonts.ini can't be found or is empty.

s09bQ5 commented 3 years ago

Please try the findingfontsinfo branch and provide the generated Error.log file after the crash. Also please search for the NotoSans-Regular.ttf file that should have been installed by UltraStar Deluxe and tell me where you found it.