skiptools / skiptools/skip-bridge

Complex closure crashes when being executed

Open
#101 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
6
Forks
7
PR merge metrics
No merged PRs in 30d

Description

From Swift:

let onDeposit: (@MainActor (@escaping @MainActor () -> Void) -> Void)

When calling it, we get:

SkipBridge/BridgedTypes.swift:198: Fatal error: Unable to bridge Swift instance (Function) of type: @MainActor @Sendable () -> ()

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproducer in the issue and inspect SkipBridge/BridgedTypes.swift around line 198 to trace how the complex @MainActor closure is bridged. Reproduce the fatal error, then verify that calling the shown closure no longer crashes and that existing bridge behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, swift
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.