home.social

#bugs_ — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bugs_, aggregated by home.social.

  1. “Import from iPhone or iPad” doesn’t work when any view contains a SwiftUI Toggle

    This is a public reposting of FB14893699, in case it’s helpful to anyone else or especially in case someone else has seen this too and knows how to work around it.

    If any view in the [active] window contains a Toggle - even one that’s disabled or hidden - then Continuity Camera (re. ImportFromDevicesCommands and importableFromServices) doesn’t work; all the submenu items under “Import from iPhone or iPad” are disabled.

    I don’t know if this is truly specific to Toggle, that’s [...]

    wadetregaskis.com/import-from-

  2. “Import from iPhone or iPad” doesn’t work when any view contains a SwiftUI Toggle

    This is a public reposting of FB14893699, in case it’s helpful to anyone else or especially in case someone else has seen this too and knows how to work around it.

    If any view in the [active] window contains a Toggle - even one that’s disabled or hidden - then Continuity Camera (re. ImportFromDevicesCommands and importableFromServices) doesn’t work; all the submenu items under “Import from iPhone or iPad” are disabled.

    I don’t know if this is truly specific to Toggle, that’s [...]

    wadetregaskis.com/import-from-

  3. “Import from iPhone or iPad” doesn’t work when any view contains a SwiftUI Toggle

    This is a public reposting of FB14893699, in case it’s helpful to anyone else or especially in case someone else has seen this too and knows how to work around it.

    If any view in the [active] window contains a Toggle - even one that’s disabled or hidden - then Continuity Camera (re. ImportFromDevicesCommands and importableFromServices) doesn’t work; all the submenu items under “Import from iPhone or iPad” are disabled.

    I don’t know if this is truly specific to Toggle, that’s [...]

    wadetregaskis.com/import-from-

  4. NSPasteboard crashes due to unsafe, internal concurrent memory mutation when handling file promises

    This is a public reposting of FB14885505, in case it's helpful to anyone else or especially in case someone else has seen this too and knows how to work around it.

    NSPasteboard mutates itself simultaneously from the main thread and the global concurrent Dispatch pool, w.r.t. to its internal type cache. This is surprisingly trivial to reproduce (sample code below) by just dropping, e.g. a file promise (such as by opening a PNG in Preview, revealing the thumbnails sidebar, and then dragging [...]

    wadetregaskis.com/nspasteboard

  5. NSPasteboard crashes due to unsafe, internal concurrent memory mutation when handling file promises

    This is a public reposting of FB14885505, in case it's helpful to anyone else or especially in case someone else has seen this too and knows how to work around it.

    NSPasteboard mutates itself simultaneously from the main thread and the global concurrent Dispatch pool, w.r.t. to its internal type cache. This is surprisingly trivial to reproduce (sample code below) by just dropping, e.g. a file promise (such as by opening a PNG in Preview, revealing the thumbnails sidebar, and then dragging [...]

    wadetregaskis.com/nspasteboard

  6. NSPasteboard crashes due to unsafe, internal concurrent memory mutation when handling file promises

    This is a public reposting of FB14885505, in case it's helpful to anyone else or especially in case someone else has seen this too and knows how to work around it.

    NSPasteboard mutates itself simultaneously from the main thread and the global concurrent Dispatch pool, w.r.t. to its internal type cache. This is surprisingly trivial to reproduce (sample code below) by just dropping, e.g. a file promise (such as by opening a PNG in Preview, revealing the thumbnails sidebar, and then dragging [...]

    wadetregaskis.com/nspasteboard

  7. Stellaris AI construction & science ship spam bugs

    There's a couple of bugs in Stellaris, that have been present for year(s), where the AI inexplicably builds absurd numbers of construction and/or science ships, then has them sit idle forever.

    This AI behaviour would be merely eccentric if it didn't cause major performance issues with the game.

    For the case of too many science ships, the effect seems subtle - just a small, evenly-spread slow-down of the game. Probably not worth worrying about generally, though if you happen to notice an [...]

    wadetregaskis.com/stellaris-ai

  8. Stellaris AI construction & science ship spam bugs

    There's a couple of bugs in Stellaris, that have been present for year(s), where the AI inexplicably builds absurd numbers of construction and/or science ships, then has them sit idle forever.

    This AI behaviour would be merely eccentric if it didn't cause major performance issues with the game.

    For the case of too many science ships, the effect seems subtle - just a small, evenly-spread slow-down of the game. Probably not worth worrying about generally, though if you happen to notice an [...]

    wadetregaskis.com/stellaris-ai

  9. Stellaris AI construction & science ship spam bugs

    There's a couple of bugs in Stellaris, that have been present for year(s), where the AI inexplicably builds absurd numbers of construction and/or science ships, then has them sit idle forever.

    This AI behaviour would be merely eccentric if it didn't cause major performance issues with the game.

    For the case of too many science ships, the effect seems subtle - just a small, evenly-spread slow-down of the game. Probably not worth worrying about generally, though if you happen to notice an [...]

    wadetregaskis.com/stellaris-ai

  10. Lightroom could not import this catalog because of an unknown error

    I don't know why, but it's apparently impossible to directly import a Lightroom catalog from one computer into the catalog of another. It always fails at the end of the import with the same infuriatingly useless error message.

    However, I seem to have found a fairly reliable workaround:

    If you're directly plugging in a removable SSD, as your means of moving files between computers, then skip to step 2.Copy the catalog-to-be-imported, along with all the original files it references, to [...]

    wadetregaskis.com/lightroom-co

  11. Lightroom could not import this catalog because of an unknown error

    I don't know why, but it's apparently impossible to directly import a Lightroom catalog from one computer into the catalog of another. It always fails at the end of the import with the same infuriatingly useless error message.

    However, I seem to have found a fairly reliable workaround:

    If you're directly plugging in a removable SSD, as your means of moving files between computers, then skip to step 2.Copy the catalog-to-be-imported, along with all the original files it references, to [...]

    wadetregaskis.com/lightroom-co

  12. Lightroom could not import this catalog because of an unknown error

    I don't know why, but it's apparently impossible to directly import a Lightroom catalog from one computer into the catalog of another. It always fails at the end of the import with the same infuriatingly useless error message.

    However, I seem to have found a fairly reliable workaround:

    If you're directly plugging in a removable SSD, as your means of moving files between computers, then skip to step 2.Copy the catalog-to-be-imported, along with all the original files it references, to [...]

    wadetregaskis.com/lightroom-co

  13. The only usable ByteCountFormatStyle is decimal

    Swift makes it relatively easy to format numbers as byte counts, with appropriate suffixes to indicate units and generally sensible auto-selection of scale factors. e.g.:

    1234.formatted(.byteCount(style: .decimal))

    1 kB(in English - results may vary depending on locale)

    This is just a small subset of Swift's FormatStyle-based formatting capabilities, with which I have a bit of a love-hate relationship even when they're working correctly.

    Alas, they don't always work correctly; some of [...]

    wadetregaskis.com/the-only-usa

  14. The only usable ByteCountFormatStyle is decimal

    Swift makes it relatively easy to format numbers as byte counts, with appropriate suffixes to indicate units and generally sensible auto-selection of scale factors. e.g.:

    1234.formatted(.byteCount(style: .decimal))

    1 kB(in English - results may vary depending on locale)

    This is just a small subset of Swift's FormatStyle-based formatting capabilities, with which I have a bit of a love-hate relationship even when they're working correctly.

    Alas, they don't always work correctly; some of [...]

    wadetregaskis.com/the-only-usa

  15. The only usable ByteCountFormatStyle is decimal

    Swift makes it relatively easy to format numbers as byte counts, with appropriate suffixes to indicate units and generally sensible auto-selection of scale factors. e.g.:

    1234.formatted(.byteCount(style: .decimal))

    1 kB(in English - results may vary depending on locale)

    This is just a small subset of Swift's FormatStyle-based formatting capabilities, with which I have a bit of a love-hate relationship even when they're working correctly.

    Alas, they don't always work correctly; some of [...]

    wadetregaskis.com/the-only-usa

  16. Matching prefixes in Swift strings

    How do you determine if one string starts with another, in Swift?

    Surely that's exactly what the hasPrefix(_:) method is for:

    let greeting = "Hello"

    let sentence = "hello, this is dog."

    if sentence.hasPrefix(greeting) {

    print("Hi! Nice to meet you!")

    } else {

    print("No can haz etiquette?")

    }

    No can haz etiquette?

    Wot?

    The problem is that hasPrefix is not meant for general use with human text; it's barely better than a byte-wise comparison. It only guarantees that it [...]

    wadetregaskis.com/matching-pre

  17. Matching prefixes in Swift strings

    How do you determine if one string starts with another, in Swift?

    Surely that's exactly what the hasPrefix(_:) method is for:

    let greeting = "Hello"

    let sentence = "hello, this is dog."

    if sentence.hasPrefix(greeting) {

    print("Hi! Nice to meet you!")

    } else {

    print("No can haz etiquette?")

    }

    No can haz etiquette?

    Wot?

    The problem is that hasPrefix is not meant for general use with human text; it's barely better than a byte-wise comparison. It only guarantees that it [...]

    wadetregaskis.com/matching-pre

  18. Matching prefixes in Swift strings

    How do you determine if one string starts with another, in Swift?

    Surely that's exactly what the hasPrefix(_:) method is for:

    let greeting = "Hello"

    let sentence = "hello, this is dog."

    if sentence.hasPrefix(greeting) {

    print("Hi! Nice to meet you!")

    } else {

    print("No can haz etiquette?")

    }

    No can haz etiquette?

    Wot?

    The problem is that hasPrefix is not meant for general use with human text; it's barely better than a byte-wise comparison. It only guarantees that it [...]

    wadetregaskis.com/matching-pre

  19. Private Relay is not currently supported in this region

    https://wadetregaskis.com/private-relay-is-not-currently-supported-in-this-region/

    #ApplePrivateRelay #Bugs_