Bug: Composition mode statistics pop-up

User avatar
auxbuss
Posts: 314
Joined: Mon Nov 30, 2015 9:50 pm
Platform: Mac
Contact:

Thu Oct 25, 2018 9:05 am Post

In Composition mode, you can hover over the word count in the footer to get a few stats. Clicking on this field brings up a pop-up that instantly disappears. It should be persistent, as it is in non-Composition mode.

mojave/scriv 3.0.9 (9414)
ImageImage

br
brookter
Posts: 2142
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Thu Oct 25, 2018 10:58 am Post

I've just tried and I can reproduce this too.

EC
ECJ
Posts: 55
Joined: Tue Oct 16, 2018 4:19 pm
Platform: Mac

Thu Oct 25, 2018 11:41 am Post

Not sure if we are talking about the same dialogues. In my case, its not the the actual pop-up (the one that pops up after the click) that disappears. This one stays until I close it in composition one. The stats dialogue that comes up with the mouse hover disappears once the mouse moves for a nanometer. In the regular editor (non composition mode) it stays as long as the mouse hovers over the wordcount.

Is it really the "after the click dialogue" that disappears?
Scrivener Support

br
brookter
Posts: 2142
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Thu Oct 25, 2018 12:05 pm Post

I'll check again, but for me the large pop up which appears after the click 'for details' disappeared immediately

EC
ECJ
Posts: 55
Joined: Tue Oct 16, 2018 4:19 pm
Platform: Mac

Thu Oct 25, 2018 12:15 pm Post

Interesting. It's the small hover one in my case on both, macbook and iMac. Just checked, same behavior on 3.03.
Scrivener Support

User avatar
AmberV
Posts: 24314
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Tue Oct 30, 2018 7:02 pm Post

It looks like there are two different problems here in fact. The tooltip problem is one thing—I get that as well where mouse tracking does not seem to regard the local area as part of the tooltip trigger, so it vanishes as soon as you move the mouse. Could be the overall pointer tracking that checks to see whether the control strip should be visible may be getting in the way.

For oddities with the popover when you click, it looks like there is a bug there. With Internal error alerts enabled in General: Warnings (highly recommended you leave that on with a beta build), you should see a warning appear immediately upon clicking.

Code: Select all

Exception Name: NSRangeException
-------
Exception Reason: Cannot remove an observer <NSPopover 0x600002b60aa0> for the key path "effectiveAppearance" from <KBFullScreenControlPanel 0x600002621600> because it is not registered as an observer.
-------
0   CoreFoundation                      0x00007fff2c3a7571 __exceptionPreprocess + 256
1   libobjc.A.dylib                     0x00007fff58354efb objc_exception_throw + 48
2   CoreFoundation                      0x00007fff2c3a73a3 +[NSException raise:format:] + 193
3   Foundation                          0x00007fff2e6c4523 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 494
4   Foundation                          0x00007fff2e6c42da -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 84
5   Foundation                          0x00007fff2e6dd5d1 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 190
6   AppKit                              0x00007fff2a30d307 -[NSPopover _setListenToEffectiveAppearanceDidChange:] + 475
7   AppKit                              0x00007fff29b7e083 _NSPopoverCloseAndAnimate + 1612
8   AppKit                              0x00007fff29b9f3d4 -[NSPopover performClose:] + 197
9   ScrAppKit                           0x0000000105431781 -[KBPopoverTextField setShowsBubbleWindow:] + 466
10  CoreFoundation                      0x00007fff2c352076 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
11  CoreFoundation                      0x00007fff2c351ff0 ___CFXRegistrationPost_block_invoke + 63
12  CoreFoundation                      0x00007fff2c351f11 _CFXRegistrationPost + 398
13  CoreFoundation                      0x00007fff2c35a24d ___CFXNotificationPost_block_invoke + 87
14  CoreFoundation                      0x00007fff2c2c13a4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1804
15  CoreFoundation                      0x00007fff2c2c0649 _CFXNotificationPost + 854
16  Foundation                          0x00007fff2e660bab -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
17  AppKit                              0x00007fff29a66f06 -[NSWindow becomeKeyWindow] + 1428
18  AppKit                              0x00007fff29989a12 -[NSWindow _changeKeyAndMainLimitedOK:] + 878
19  AppKit                              0x00007fff29baf10d -[NSPopover showRelativeToRect:ofView:preferredEdge:] + 2663
20  ScrAppKit                           0x00000001054318db -[KBPopoverTextField setShowsBubbleWindow:] + 812
21  AppKit                              0x00007fff29a70797 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5668
22  AppKit                              0x00007fff299a47cf -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2319
23  AppKit                              0x00007fff299a3c75 -[NSWindow(NSEventRouting) sendEvent:] + 481
24  AppKit                              0x00007fff29840f4c -[NSApplication(NSEvent) sendEvent:] + 336
25  Scrivener                           0x0000000104c0cc60 Scrivener + 490592
26  AppKit                              0x00007fff2982e795 -[NSApplication run] + 755
27  AppKit                              0x00007fff2981de97 NSApplicationMain + 780
28  libdyld.dylib                       0x00007fff5941b085 start + 1
29  ???                                 0x0000000000000001 0x0 + 1
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
KB
Site Admin
Posts: 20775
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Wed Oct 31, 2018 3:43 pm Post

Regarding the tooltip, that seems to be an Apple bug, a side-effect of the composition mode window having "accepts mouse moved events" turned on (unlike other windows), which is necessary for the control bar at the bottom to work on secondary screens. So there's not much I can do about that one, I'm afraid.

The other bug I cannot reproduce at all, strangely. The machines I tested on are running 10.14 and 10.14.1 - is there anything else I need to do to see this?
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

sc
scshrugged
Posts: 519
Joined: Wed Feb 10, 2016 6:55 pm
Platform: Mac + iOS

Wed Oct 31, 2018 8:23 pm Post

macOS 10.13.6 (17G3025)
Scrivener 3.09 (9413)
In Composition Mode:

The statistics tooltip stays on screen as long as mouse movement––to the left or right for quite a distance––stays on the same plane as the text, otherwise it disappears.

The click for options popover disappears immediately upon click. I tried different screen resolutions, window sizes, un/hide dock etc.. Got the same result. [Side note: as AmberV suggests, I have Internal error alerts turned on yet a warning doesn't appear immediately, or at all.]

Very cool Typewriter and Focus tools in the control bar. When I hover on Typewriter, the Keywords tooltip appears. When I hover on Focus, the Go To one does. Could all this be related and a boundary issue?
I'm a Scrivener user, not an L&L employee.

User avatar
KB
Site Admin
Posts: 20775
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Wed Oct 31, 2018 9:09 pm Post

Oops, the typewriter and focus items have the wrong tool tips - I've fixed that. I already explained up-thread that there's nothing I can do about the tool tips disappearing when you move the mouse. The final error - where the popover disappears - I still cannot reproduce. Ioa is seeing it on his main accounts but not on clean accounts, so there must be some setting somewhere that is triggering it, which we need to narrow down.
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

User avatar
KB
Site Admin
Posts: 20775
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Fri Nov 02, 2018 2:03 pm Post

For those experiencing the issue with the popover disappearing instantly, could you please confirm: do you have "Full keyboard access" set to "All controls" in the "Keyboard" System Preferences? I have managed to reproduce the bug in that circumstance (but that circumstance only). The bug is present in 3.0.3 too, but should (I hope) now be fixed. Please try this build and let me know if it helps:

http://www.literatureandlatte.com/dlbet ... opover.zip
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

br
brookter
Posts: 2142
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Fri Nov 02, 2018 3:35 pm Post

Keith, yes to both...

As in:

a) I had CTL-7 set to 'All Controls' which triggered the bug. Changing the setting didn't trigger it.

b) The new version you posted doesn't trigger the bug in either case.

Thanks!

User avatar
KB
Site Admin
Posts: 20775
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Fri Nov 02, 2018 3:54 pm Post

Great, thanks!
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

sc
scshrugged
Posts: 519
Joined: Wed Feb 10, 2016 6:55 pm
Platform: Mac + iOS

Fri Nov 02, 2018 4:57 pm Post

My results match brookter's.
And, the Typewriter and Focus tooltips now work correctly.
8)
I'm a Scrivener user, not an L&L employee.