Skip to content

[Mac] Exception: NSInvalidArgumentException (probably memory problem) #894

@tombogle

Description

@tombogle

Fatal Exception: NSInvalidArgumentException
-[NSTaggedDate key]: unrecognized selector sent to instance 0x__

NSTaggedDate is a private type. From what I read on-line, is is almost certainly a memory management issue, where a pointer is referring to a memory location now occupied by a different object. There is one place (in resetKeyLabels) in Keyman engine where we use the 'key' selector to attempt to retrieve the key from a KeyView, so I'm guessing that is the source of this crash.
The call stack looks like this, but (currently) we don't have the symbols available for the Keyman engine code, so it's not very helpful.

0 CoreFoundation (Missing)
1 libobjc.A.dylib (Missing)
2 CoreFoundation (Missing)
3 CoreFoundation (Missing)
4 CoreFoundation (Missing)
5 KeymanEngine4Mac (Missing)
6 KeymanEngine4Mac (Missing)
7 KeymanEngine4Mac (Missing)
8 AppKit (Missing)
9 AppKit (Missing)
10 AppKit (Missing)
11 AppKit (Missing)
12 AppKit (Missing)
13 Keyman main.m line 21main

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions