Skip to content

Hardcode UniqueID in streams keys#308

Merged
keeshux merged 2 commits intomasterfrom
bugfix/hardcode-stream-ids
Mar 1, 2026
Merged

Hardcode UniqueID in streams keys#308
keeshux merged 2 commits intomasterfrom
bugfix/hardcode-stream-ids

Conversation

@keeshux
Copy link
Member

@keeshux keeshux commented Mar 1, 2026

Now that Foundation is ubiquitous, we can use UniqueID/UUID directly. Fixes a weird runtime crash in a missing Hashable witness table (OID → RandomlyInitialized → Hashable).

@keeshux keeshux self-assigned this Mar 1, 2026
@keeshux keeshux added bug Something isn't working refactoring Reworks the software architecture labels Mar 1, 2026
@keeshux keeshux added this to the Multiplatform: ABI milestone Mar 1, 2026
@keeshux keeshux moved this to In Progress in 2026 Q1 Android Mar 1, 2026
@keeshux keeshux merged commit 0cd79e1 into master Mar 1, 2026
1 check passed
@keeshux keeshux deleted the bugfix/hardcode-stream-ids branch March 1, 2026 07:00
@keeshux keeshux moved this from In Progress to Done in 2026 Q1 Android Mar 1, 2026
keeshux added a commit to partout-io/passepartout that referenced this pull request Mar 1, 2026
@keeshux
Copy link
Member Author

keeshux commented Mar 3, 2026

Something similar had happened when linking to libpartout.a statically, where Hashable implementation metadata were lost in the linking process. There was a runtime crash on dict[key] = value because the Swift runtime was not able to find the Hashable implementation of the key type (LoggingCategory IIRC).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working refactoring Reworks the software architecture

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant