Homebrew version of FreeCiv 2.6.0 crashes

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
tvleavitt
Posts: 2
Joined: Mon Jan 14, 2019 12:33 pm

Homebrew version of FreeCiv 2.6.0 crashes

Postby tvleavitt » Mon Jan 14, 2019 12:41 pm

I'm running OS X, Mojave, 10.14.12

I'm able to run the freeciv client, freeciv-gtk2, but as soon as I start a game (or right after, occasionally), it crashes out. The key here (which I've seen referenced in every crash, including crash reports submitted to Apple), is ERROR_CGDataProvider_BufferIsNotBigEnough

Here's the debug output:

Thomass-iMac:~ tvleavitt$ lldb /usr/local/bin/freeciv-gtk2
(lldb) target create "/usr/local/bin/freeciv-gtk2"
Current executable set to '/usr/local/bin/freeciv-gtk2' (x86_64).
(lldb) run
Process 14188 launched: '/usr/local/bin/freeciv-gtk2' (x86_64)
2019-01-14 04:06:54.812191-0800 freeciv-gtk2[14188:59883] no saved enable hardware sample rate converter preference found
2019-01-14 04:06:56.768299-0800 freeciv-gtk2[14188:59883] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=14188
2019-01-14 04:06:56.768373-0800 freeciv-gtk2[14188:59883] SecTaskCopyDebugDescription: freeciv-gtk2[14188]/0#-1 LF=0
2: Loading tileset "amplio2".
2: last message repeated 2 times
Process 14188 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x109c657ff)
frame #0: 0x00007fff3f78ef9b CoreGraphics`ERROR_CGDataProvider_BufferIsNotBigEnough + 43
CoreGraphics`ERROR_CGDataProvider_BufferIsNotBigEnough:
-> 0x7fff3f78ef9b <+43>: movb (%rax,%rcx), %al
0x7fff3f78ef9e <+46>: movb %al, -0x1(%rbp)
0x7fff3f78efa1 <+49>: addq $0x20, %rsp
0x7fff3f78efa5 <+53>: popq %rbp
Target 1: (freeciv-gtk2) stopped.

I dug around, and there's a discussion here:

https://forum.juce.com/t/crashes-with-j ... 2/29524/38

That seems to reference a similar issue, along with fixes, here:

https://github.com/WeAreROLI/JUCE/commi ... 7443de8081

Any insights?

tvleavitt
Posts: 2
Joined: Mon Jan 14, 2019 12:33 pm

Re: Homebrew version of FreeCiv 2.6.0 crashes

Postby tvleavitt » Mon Jan 14, 2019 12:50 pm