Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdl2 crash in macos arm64 #2282

Closed
Coloryr opened this issue Sep 16, 2024 · 10 comments
Closed

sdl2 crash in macos arm64 #2282

Coloryr opened this issue Sep 16, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@Coloryr
Copy link

Coloryr commented Sep 16, 2024

Summary

sdl2 crash in macos arm64

var sdl = Sdl.GetApi();

Steps to reproduce

  • Platform: Desktop
  • Framework Version: .NET8
  • API: SDL2
  • API Version: SDL2

Comments

2024-09-16.13-41-53.mov
@Perksey
Copy link
Member

Perksey commented Sep 16, 2024

Hi. We don’t support MAUI at this time, only .NET Android without MAUI. In addition, there’s not enough information on this issue to suggest anything other than following the Android example we have in the repo if you do want to pursue this.

@Perksey Perksey closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
@Coloryr
Copy link
Author

Coloryr commented Sep 16, 2024

this is avalonia not maui. and this desktop application

@Perksey
Copy link
Member

Perksey commented Sep 16, 2024

Ah ok. We don’t support Avalonia at all at this time, at least for SDL.

Coloryr added a commit to Coloryr/ColorMC that referenced this issue Oct 28, 2024
修复macos arm不支持的问题dotnet/Silk.NET#2282
@Coloryr
Copy link
Author

Coloryr commented Oct 29, 2024

So it never work in macos arm64?
I saw #2174 and #2173, it maybe work

@Perksey
Copy link
Member

Perksey commented Oct 29, 2024

By all means give it a go but Avalonia is not a scenario we support for SDL. I also have no idea what your error was, given that you did not include any details such as an exception or stack trace, so I did my best to identify the issue with the information provided.

@Coloryr
Copy link
Author

Coloryr commented Oct 30, 2024

Just crash went

var sdl = Sdl.GetApi();

not log and any info with osx-arm64 build.
But use osx-x64 build it's work by Rosetta.
I only see the SDL2 library in the runtimes/osx/native/ folder, can this library be used on x64 and arm64?
maybe like this libsdl-org/SDL#8696

@Perksey
Copy link
Member

Perksey commented Oct 30, 2024

Yes this library can be used on macOS arm64, that’s my daily driver. I advise making a brand new project and copying the code from an example in the repo to see whether known-good code works. If it does, then it’s likely a problem with your specific scenario.

@Coloryr
Copy link
Author

Coloryr commented Oct 31, 2024

Ok, I will try it out on the weekend.

@Coloryr
Copy link
Author

Coloryr commented Nov 2, 2024

Nope it just crash on consoleapp

@Coloryr
Copy link
Author

Coloryr commented Nov 2, 2024

yes, it's SDL arch issues, I replaced the sdl library built with arm64 and it work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants