| CARVIEW |
Select Language
HTTP/2 200
date: Sun, 18 Jan 2026 10:22:49 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"605583b4dc2a0c3b8fe16bcb8afdcdaa"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=hzKmM5iL3IRYIRKhXTvDriOzD9QNO9HkMmLt4oRl87NyMI%2FwOVE0aP%2BovKKTMjKb0udxl3%2B3OYVHXSCVftzp4r8ZI6T29bwpWYp1ZzduIF6GToUvcpZ5ladbe0yEytcabQ0iBsIf8nZKo%2F212JSy7tHmWsiOEMTKLMU81XGAZ8ClNmZG3jMv1Jkg67BJK1%2FMEgU%2B4O%2BAhisooSGNESLOKM6NqThTaJ3ZbUknBEiY70Huem7rrpapd5RqAmdmCRR7MKB0lFbT132kyEbTwW8ErQ%3D%3D--Ad7dA78idpnN9AoU--OegDNnvijYrFcVKbCSCskQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2106306032.1768731768; Path=/; Domain=github.com; Expires=Mon, 18 Jan 2027 10:22:48 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 18 Jan 2027 10:22:48 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C050:9FC25:1F32E4A:252190B:696CB478
MacOS tips · haskell-gi/haskell-gi Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 75
MacOS tips
Iñaki edited this page Aug 6, 2020
·
2 revisions
If you try to run gi-gtk code in recent versions of MacOS under the ghci interpreter, you might encounter an error like the following:
santi~/haskell_exploit/Exploit/src$ stack runghc Main.hs
2019-07-28 10:02:37.957 ghc[51071:1657595] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff4aadbcfd __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff75185a17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff4aaf585d -[NSException raise] + 9
3 AppKit 0x00007fff4812a7ae -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
4 AppKit 0x00007fff48127bdb -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
5 AppKit 0x00007fff4812760e -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
6 AppKit 0x00007fff483f3f08 -[NSWindow initWithContentRect:styleMask:backing:defer:screen:] + 52
7 libgdk-3.0.dylib 0x00000001152aacb0 -[GdkQuartzNSWindow initWithContentRect:styleMask:backing:defer:screen:] + 64
8 libgdk-3.0.dylib 0x00000001152b7d1e _gdk_quartz_display_create_window_impl + 1454
9 libgdk-3.0.dylib 0x0000000115294008 gdk_window_new + 952
10 libgtk-3.0.dylib 0x000000011923b27a gtk_window_realize + 1242
11 libgtk-3.0.dylib 0x0000000118f384aa gtk_application_window_real_realize + 186
12 libgobject-2.0.0.dylib 0x000000010d67d6f6 _g_closure_invoke_va + 214
13 libgobject-2.0.0.dylib 0x000000010d6942b8 g_signal_emit_valist + 1352
14 libgobject-2.0.0.dylib 0x000000010d694d32 g_signal_emit + 130
15 libgtk-3.0.dylib 0x00000001192159d3 gtk_widget_realize + 291
16 libgtk-3.0.dylib 0x000000011923a6c3 gtk_window_show + 211
17 libgobject-2.0.0.dylib 0x000000010d67d4fd g_closure_invoke + 189
18 libgobject-2.0.0.dylib 0x000000010d693624 signal_emit_unlocked_R + 1316
19 libgobject-2.0.0.dylib 0x000000010d6946b1 g_signal_emit_valist + 2369
20 libgobject-2.0.0.dylib 0x000000010d694d32 g_signal_emit + 130
21 libgtk-3.0.dylib 0x0000000119215197 gtk_widget_show + 359
22 libHSgi-gtk-3.0.30-6QmVefkNP3Q8GQ3yTLidxY-ghc8.6.5.dylib 0x0000000116a1953c sFK6L_info + 132
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
This problem is due to some extra checks done in recent versions of MacOS, and is discussed in issue #243. A workaround is to pass the flag -fno-ghci-sandbox to ghci, which can be conveniently done by adding to .ghci the following:
:cmd pure $ if System.Info.os == "darwin" then ":set -fno-ghci-sandbox" else ""
Thanks to @deech and @ArturGajowy for the tip!
You can’t perform that action at this time.