When I was trying to debug I noticed some (deprecation) warnings. For example:
- 'NSShiftKeyMask' is deprecated: first deprecated in macOS 10.12
- 'NSAnyEventMask' is deprecated: first deprecated in macOS 10.12
- @"WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future."
The deprecated API's should be relatively easy to find: "Fortunately, the compiler generates warnings whenever it spots the use of a deprecated API in your code. You can use those warnings to track down and remove all references to those APIs."
The use of deprecated API's
The use of recent API's
User Profile Reset: No
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
The NextEventMatchingMAsk tries to fire from a thread which is not main, or it tries to re-enter the main thread in this way, and which I am assuming, as Apple indicates in the warning notice, will trigger an exception in future releases of macOS that might not be handled particularly well by LibreOffice. I imagine that it would be advisable to try and avoid this before we are actually faced with the fait accompli.
About deprecated things, perhaps https://cgit.freedesktop.org/libreoffice/core/commit/?id=a6c88e4bf1d148ac462c2bcd7061eff602b627d6 fixed them all?
Also perhaps a proper way should have been to make something similar to:
About nextEventMatchingMask, I noticed this patch:
It seems I'm totally wrong about seeing NSAnyEventMask/NSShiftKeyMask warnings; it weren't warnings but patch comments, sorry.
The WARNING: nextEventMatchingMask should only be called from the Main Thread! seems to be a real warning which isn't fixed by patch, as far I know. I did show in a LLDB backtrace of a recently compiled master (7 nov). See: https://bugs.documentfoundation.org/attachment.cgi?id=128576
I used: Version: 126.96.36.199.alpha1+
Build ID: 64a708cba9b954afe3331f63c58218eb53b3d0ce
CPU Threads: 4; OS Version: Mac OS X 10.12.1; UI Render: default; Layout Engine: new;
Locale: en-US (en_US.UTF-8); Calc: group
The warnings are added on purpose (as I understand know). So not that helpful, I suppose -> Closing