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

Running macOS sample app crashes on startup #2567

Open
apexskier opened this issue Jun 29, 2024 · 1 comment
Open

Running macOS sample app crashes on startup #2567

apexskier opened this issue Jun 29, 2024 · 1 comment
Labels

Comments

@apexskier
Copy link

Describe the bug
Running the macOS sample app crashes on startup, either through the CLI as documented or through Xcode.

Crash is:

Assertion failed: (static_cast<RunLoop*>(Scheduler::GetCurrent())), function Get, file run_loop.cpp, line 56.

link to line of code

To Reproduce
Follow documentation linked above or run the macos_app target through Xcode 15.0.1.

Expected behavior
App runs

Screenshots
MapLibre — run_loop cpp - Xcode - 2024-06-29 at 10 14 10@2x

Platform information (please complete the following information):

  • OS: macOS 14.5 (23F79)
  • Platform: macOS
  • Version: main (c4c7545)
@apexskier apexskier added the bug Something isn't working label Jun 29, 2024
@louwers
Copy link
Collaborator

louwers commented Jun 29, 2024

Hi. On macOS the CFRunLoop was replaced with libuv because, it didn't work with glfw. We need to kick off the libuv based scheduler somewhere, right now AppKit has no scheduler active (I think AppKit kicked off a CFRunLoop automatically). I haven't gotten to it yet. #2205

If you just want to renderer run on macOS and use GLFW, you can use:

bazel run //platform/glfw:glfw_app --//:renderer=metal -- --style https://demotiles.maplibre.org/style.json

@louwers louwers added the macOS label Jun 29, 2024
@louwers louwers removed the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants