Giter Club home page Giter Club logo

Comments (9)

slime73 avatar slime73 commented on June 9, 2024

Does this only happen on macOS 11 in particular, for you? I just tried running that code with love 11.5 on macOS 14 and didn't crash.

from love.

143mailliw avatar 143mailliw commented on June 9, 2024

Does this only happen on macOS 11 in particular, for you? I just tried running that code with love 11.5 on macOS 14 and didn't crash.

Yes. It works on Ventura and Sonoma, at the very least, but I know for a fact that Big Sur and Catalina (at least) have this problem.

from love.

slime73 avatar slime73 commented on June 9, 2024

In that case I wonder if it's an Apple bug where app references to the system zlib library APIs aren't compatible with an older deployment target version when a newer SDK is used to compile, or something.

from love.

qubitter avatar qubitter commented on June 9, 2024

I can add that the segfault trace looks like this (thanks to MacOS's really remarkably good error tracing):

Thread 22 Crashed:: @engine/save_manager.lua
0   ???                               000000000000000000 0 + 0
1   love2d.love                       0x00000001047b8e8d love::data::zlibCompressor::compress(love::data::Compressor::Format, char const*, unsigned long, int, unsigned long&) + 429
2   love2d.love                       0x000000010474dc16 love::data::compress(love::data::Compressor::Format, char const*, unsigned long, int) + 70

With the following error flags set:

Crashed Thread:        22  @engine/save_manager.lua

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [36532]

from love.

qubitter avatar qubitter commented on June 9, 2024

Update: when compiling 11.5 from scratch on 11.7.10 (20G1427) and attempting to reproduce the program functions completely normally. So it appears to be yet another compiler bug.

from love.

slime73 avatar slime73 commented on June 9, 2024

I wonder if this Xcode update fixes it: https://developer.apple.com/documentation/xcode-release-notes/xcode-15_1-release-notes#Linking

I can try uploading a rebuilt version of 11.5 using Xcode 15.2 later, if you want to try.

from love.

143mailliw avatar 143mailliw commented on June 9, 2024

I wonder if this Xcode update fixes it: https://developer.apple.com/documentation/xcode-release-notes/xcode-15_1-release-notes#Linking

I can try uploading a rebuilt version of 11.5 using Xcode 15.2 later, if you want to try.

Seems like the issue. I can't get to compiling LOVE today but if a build was made I can certainly report if the issue's been resolved.

from love.

143mailliw avatar 143mailliw commented on June 9, 2024

@slime73 I'm not sure if it was upgrading to Xcode 15.2, or building with MACOSX_DEPLOYMENT_TARGET=10.13 (I got a warning about 10.11 not being valid anymore), but I was able to build a version of LOVE that works correctly on Big Sur.

from love.

slime73 avatar slime73 commented on June 9, 2024

I've updated the 11.5 macOS build in the releases section after recompiling with Xcode 15.2. That should fix it, but let me know if you still run into issues.

from love.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.