Skip to content

Fix Tooltip EXC_BAD_ACCESS from Optional.map initializer#598

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/repoprompt-a1-tooltip-crash
Open

Fix Tooltip EXC_BAD_ACCESS from Optional.map initializer#598
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/repoprompt-a1-tooltip-crash

Conversation

@sentry

@sentry sentry Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This PR addresses an EXC_BAD_ACCESS crash (REPOPROMPT-A1) occurring when Optional.map was used with a direct reference to a struct initializer (TooltipContent.init). The root cause was identified as a Swift compiler bug related to the metadata or calling convention generated for struct initializers when passed as first-class function references to generic methods.

The fix involves replacing text.map(TooltipContent.init) with an explicit closure text.map { TooltipContent($0) } in TooltipBubble.swift line 260. This change bypasses the problematic compiler code generation path, resolving the crash.

Fixes REPOPROMPT-A1

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.

0 participants