Keyboard focus crashing troubles


#1

Something strange in a 3-windows project.

The application looks like Max5 Juce-based. A window has a PropertyPanel.

When I edit w value within, --> the carret appears --> then I give focus to another window whithout having validated my new value ==> CRASH.

Am I probably responsible for ?

I’m not sure…

Whatever source of the troubles, here is a crash log :
[/img] Thread 0 Crashed: 0 com.apple.CoreGraphics 0x90574678 snarfEvents + 12 1 com.apple.CoreGraphics 0x90b9664c CGSGetNextEventRecordInternal + 159 2 com.apple.CoreGraphics 0x905745d5 CGEventCreateNextEvent + 44 3 com.apple.HIToolbox 0x944a5630 PullEventsFromWindowServerOnConnection(unsigned int, unsigned char) + 88 4 com.apple.HIToolbox 0x944cf76a PullEventsFromWindowServer + 18 5 com.apple.HIToolbox 0x944cf6e5 FlushSpecificEventsFromQueue + 62 6 com.apple.AppKit 0x94a0051e +[NSEvent _discardCursorEventsForWindowNumber:criteria:] + 64 7 com.apple.AppKit 0x94a00489 _NXResetCursorState + 75 8 com.apple.AppKit 0x949ffcd5 -[NSWindow becomeKeyWindow] + 1237 9 com.cherry-cie.virage 0x001f8c42 -[JuceNSWindow_1_46_2 becomeKeyWindow] + 54 10 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 11 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 12 com.apple.AppKit 0x949fefe5 -[NSWindow makeKeyAndOrderFront:] + 128 13 com.cherry-cie.virage 0x001fb7bb juce::NSViewComponentPeer::toFront(bool) + 199 14 com.cherry-cie.virage 0x000da6ad juce::Component::bringModalComponentToFront() + 109 15 com.cherry-cie.virage 0x000ddc49 juce::Component::internalBroughtToFront() + 343 16 com.cherry-cie.virage 0x000de81b juce::Component::toFront(bool) + 525 17 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 18 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 19 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 20 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 21 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 22 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 23 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 24 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 25 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 26 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 27 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 28 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 29 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 30 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 31 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 32 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 33 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 34 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 35 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 36 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 37 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 38 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 39 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 40 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 41 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 42 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 43 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 44 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 45 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 46 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 47 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 48 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 49 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 50 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 51 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 52 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 53 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 54 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 55 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 56 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 57 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 58 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 59 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 60 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 61 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 62 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 63 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 64 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 65 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 66 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 67 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 68 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 69 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 70 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 71 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 72 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 73 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 74 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 75 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 76 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 77 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 78 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 79 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 80 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 81 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 82 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 83 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 84 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 85 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 86 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 87 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 88 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 89 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 90 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 91 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 92 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 93 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 94 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 95 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 96 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 97 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 98 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 99 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 100 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 101 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 102 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 103 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 104 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 105 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 106 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 107 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 108 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 109 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 110 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 111 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 112 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 113 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 114 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 115 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 116 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 117 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 118 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 119 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 120 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 121 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 122 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 123 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 124 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 125 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 126 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 127 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 128 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 129 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 130 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 131 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 132 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 133 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 134 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 135 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 136 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 137 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 138 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 139 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 140 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 141 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 142 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 143 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 144 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 145 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 146 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 147 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 148 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 149 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 150 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 151 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 152 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 153 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 154 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 155 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 156 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 157 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 158 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 159 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 160 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 161 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 162 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 163 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 164 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 165 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 166 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 167 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 168 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 169 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 170 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 171 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 172 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 173 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 174 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 175 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 176 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 177 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 178 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 179 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 180 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 181 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 182 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 183 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 184 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 185 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 186 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 187 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 188 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 189 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 190 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 191 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 192 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 193 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 194 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 195 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 196 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 197 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 198 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 199 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 200 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 201 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 202 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 203 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 204 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 205 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 206 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 207 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 208 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 209 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 210 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 211 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 212 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 213 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 214 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 215 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 216 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 217 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 218 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 219 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 220 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 221 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 222 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 223 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 224 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 225 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 226 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 227 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 228 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 229 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 230 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 231 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 232 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 233 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 234 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 235 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 236 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 237 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 238 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 239 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 240 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 241 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 242 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 243 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 244 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 245 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 246 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 247 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97 248 com.apple.AppKit 0x949ff359 -[NSWindow _changeKeyAndMainLimitedOK:] + 663 249 com.apple.AppKit 0x949ff0a9 -[NSWindow makeKeyWindow] + 72 250 com.cherry-cie.virage 0x001fba07 juce::NSViewComponentPeer::grabFocus() + 51 251 com.cherry-cie.virage 0x000de24e juce::Component::takeKeyboardFocus(juce::Component::FocusChangeType) + 92 252 com.cherry-cie.virage 0x000de494 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 118 253 com.cherry-cie.virage 0x000de556 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 312 254 com.cherry-cie.virage 0x000de585 juce::Component::grabFocusInternal(juce::Component::FocusChangeType, bool) + 359 255 com.cherry-cie.virage 0x000de608 juce::Component::grabKeyboardFocus() + 124 256 com.cherry-cie.virage 0x000de826 juce::Component::toFront(bool) + 536 257 com.cherry-cie.virage 0x00035be1 TimeBox::focusGained(juce::Component::FocusChangeType) + 83 (TimeBox.cpp:760) 258 com.cherry-cie.virage 0x000ddda2 juce::Component::internalFocusGain(juce::Component::FocusChangeType) + 50 259 com.cherry-cie.virage 0x001c9d93 juce::ComponentPeer::handleFocusGain() + 97 260 com.cherry-cie.virage 0x001fb922 juce::NSViewComponentPeer::viewFocusGain() + 86 261 com.cherry-cie.virage 0x001fba43 juce::NSViewComponentPeer::grabFocus() + 111 262 com.cherry-cie.virage 0x001f8c6d -[JuceNSWindow_1_46_2 becomeKeyWindow] + 97


#2

well, you can tell by the repetition that you’re probably stuck in some kind of recursion; my guess is that your components are trying to update each other. no idea what things you’ve got set up, but maybe check for things with parameters like “send change message” when you’re setting them. in many cases, changing a widget value needs to update something else, and similarly setting that something else is often needed to be reflected in that other thing; at times like these, you need to make sure the notification is not sent.

of course, you could very well have something else wrong, but you’re definitely stuck in a loop. try putting a breakpoint in so you can step through and see which things are calling each other.


#3

kind of deadlock ?
thanks


#4

no


#5

basically it seems that a keyBoardFocus is gain here and not desactivated there…

so there are 2 keyboard focus dispatched in 2 windows…

could crash then.