Skip to content

Update build.yaml#2

Closed
rfranco wants to merge 1 commit into
hsource:masterfrom
rfranco:patch-1
Closed

Update build.yaml#2
rfranco wants to merge 1 commit into
hsource:masterfrom
rfranco:patch-1

Conversation

@rfranco
Copy link
Copy Markdown

@rfranco rfranco commented Feb 18, 2025

No description provided.

@rfranco rfranco closed this Feb 18, 2025
@rfranco rfranco deleted the patch-1 branch February 18, 2025 03:28
@rfranco rfranco restored the patch-1 branch February 18, 2025 03:28
thomaslestum added a commit to thomaslestum/pobfrontend that referenced this pull request Mar 7, 2026
Four separate issues prevented PoB from running on ARM64 macOS:

1. Native fullscreen crash (OpenGL context destroyed on transition)
   - Add macos_window.mm with disableNativeFullscreen() that strips
     NSWindowCollectionBehaviorFullScreenPrimary from the NSWindow,
     making the green button zoom/maximize instead of entering native
     fullscreen. Called via QTimer::singleShot(500ms) after show() —
     must not be called from initializeGL() as winId() there disrupts
     the GL surface.
   - Also set Qt::WindowFullscreenButtonHint false in POBWindow ctor.
   - Wire macos_window.mm into meson.build (objcpp language + AppKit).

2. Lua PANIC on any error ("error in error handling")
   - l_PCall uses "traceback" from the Lua registry as its error
     handler, but nothing ever stored it there. Any Lua error inside
     PCall caused LUA_ERRERR -> unprotected lua_error -> PANIC.
   - Fix: store debug.traceback in the registry after luaL_openlibs.

3. Crash on skill tree / tooltips (invalid font 'FONTIN')
   - PoB's Lua code uses FONTIN, FONTIN ITALIC, FONTIN SC, and
     FONTIN SC ITALIC throughout, but the fontMap in DrawString only
     knew FIXED, VAR, and VAR BOLD. luaL_checkoption raised a Lua
     error for any FONTIN call, which then hit bug hsource#2 -> PANIC.
   - Fix: add all four FONTIN variants (mapped to Liberation Sans)
     in DrawString, DrawStringWidth, and DrawStringCursorIndex.

4. Hardcoded SDK path breaks builds on most machines
   - meson.build had -isysroot /Library/.../MacOSX12.3.sdk hardcoded,
     failing on any machine without that exact SDK installed.
   - Fix: remove the -isysroot flag; use the default host SDK.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant