< Back to IRCAM Forum

Edition bug (switching from "chord" mode to "note" mode

Ok another one …
Imagine you have a sequence (chord-seq or voice) and the editor is in “chord” mode.
You open a chord (O) and then you switch to the “note” mode. You often (not always) get this error :

(in the end of the message I join also the backtrace).
This don’t happen if the main sequence is ALREADY in “note” mode.
The error is there since 6.20.

==========================================
Backtrace taken at: 02 Mar 2022 19:59:38

#<The OpenMusic package, 14020/16384 internal, 452/1024 external>
#<mp:process Name “Cocoa Event Loop” Priority 70000000 State “Running”>

Condition: No applicable methods for #<standard-generic-function associated-box 419102DF2C> with args (nil)

Call to ERROR {offset 123}
SYSTEM::ESTRING : “No applicable methods for ~S with args ~S”
SYSTEM::EARGS : (#<STANDARD-GENERIC-FUNCTION ASSOCIATED-BOX 419102DF2C> (NIL))

Catch frame: (CERROR . RESTART-CASE)

Catch frame: (CERROR . 1)

Call to CERROR {offset 597}
CONDITIONS::CONTINUE-STRING {Closing} : “Call ~S again”
CONDITIONS::DATUM : “No applicable methods for ~S with args ~S”
CONDITIONS::ARGUMENTS {Closing} : (#<STANDARD-GENERIC-FUNCTION ASSOCIATED-BOX 419102DF2C> (NIL))

Call to (METHOD NO-APPLICABLE-METHOD (T)) {offset 54}
CLOS::GF : #<STANDARD-GENERIC-FUNCTION ASSOCIATED-BOX 419102DF2C>
CLOS::ARGS : (NIL)

Call to CLOS::GENERIC-FUNCTION-NON-DISCRIMINATOR {offset 69}

Call to (METHOD SET-OBJ-MODE (SCOREEDITOR T)) {offset 353}
SELF : #<CHORDEDITOR 402043BE13>
N : 0
CLOS::.ISL. : :DONT-KNOW
OBJ : #<CHORD 42311BB753>
PARENT : NIL

Call to (SUBFUNCTION 5 (METHOD INIT-TITLEBAR (SCOREEDITOR))) {offset 60}
ITEM : :DONT-KNOW
SELF {Closed} : #<CHORDEDITOR 402043BE13>
M {Closed} : 0

Call to (SUBFUNCTION 1 (METHOD OM-VIEW-CLICK-HANDLER (OM-ICON-BUTTON T))) {offset 749}
VIEW : :DONT-KNOW
P1 : :DONT-KNOW
P2 : :DONT-KNOW
SELF {Closed} : #<OM-ICON-BUTTON 402043DFFB>

Call to CAPI:EXECUTE-WITH-INTERFACE {offset 343}
CAPI:INTERFACE : #<EDITORWINDOW “internal chord” 4020438363>
FUNCTION : #<Closure 1 subfunction of (METHOD OM-VIEW-CLICK-HANDLER (OM-ICON-BUTTON T)) 406004427C>
CAPI::ARGS : (#<OM-ICON-BUTTON 402043DFFB> #S(OM-API::OMPOINT :X 20 :Y 12) #S(OM-API::OMPOINT :X 20 :Y 13))

Call to CAPI:APPLY-IN-PANE-PROCESS {offset 186}
CAPI::PANE : #<SCORE-TITLEBAR 402043C5FB>
FUNCTION : #<Closure 1 subfunction of (METHOD OM-VIEW-CLICK-HANDLER (OM-ICON-BUTTON T)) 406004427C>
CAPI::ARGS : (#<OM-ICON-BUTTON 402043DFFB> #S(OM-API::OMPOINT :X 20 :Y 12) #S(OM-API::OMPOINT :X 20 :Y 13))

Call to (METHOD OM-CLICK-RELEASE-HANDLER :AFTER (OM-GRAPHIC-OBJECT T)) {offset 540}
OM-API::SELF : #<OM-ICON-BUTTON 402043DFFB>
OM-API::POS : #S(OM-API::OMPOINT :X 20 :Y 13)
CLOS::.ISL. : :DONT-KNOW
OM-API::VIEW : #<OM-ICON-BUTTON 402043DFFB>
OM-API::MOTION-INFO : (NIL #<Closure 1 subfunction of (METHOD OM-VIEW-CLICK-HANDLER (OM-ICON-BUTTON T)) 406004427C> 20 12 20 13 NIL)
DBG::(RELEASE-ACTION\ …) : (#<Closure 1 subfunction of (METHOD OM-VIEW-CLICK-HANDLER (OM-ICON-BUTTON T)) 406004427C> 20 12 20 13 NIL)
OM-API::RELEASE-ACTION : #<Closure 1 subfunction of (METHOD OM-VIEW-CLICK-HANDLER (OM-ICON-BUTTON T)) 406004427C>
DBG::(X\ …) : (20 12 20 13 NIL)
OM-API::X0 : 20
DBG::(Y\ …) : (12 20 13 NIL)
OM-API::Y0 : 12
DBG::(OLD-X\ …) : (20 13 NIL)
DBG::(OLD-Y\ …) : (13 NIL)
DBG::(DRAW-PANE) : (NIL)
OM-API::DRAW-PANE : NIL

Binding frame:
CLOS::NEXT-METHODS : NIL

UNWIND-PROTECT frame

Binding frame:
CAPI::PREVIOUS-OVERRIDE-CURSORS : NIL

Catch frame: CAPI::ABORT-CALLBACK-CATCH

Binding frame:
CAPI::TOP-LEVEL-INTERFACE : NIL

Call to CAPI::IN-PROCESS-CAPI-EVENT-CALLBACK {offset 801}
CAPI::SELF : #<SCORE-TITLEBAR 402043C5FB>
CAPI::TRANSLATOR : NIL
CAPI-INTERNALS:CALLBACK : OM-API::OM-CLIC-RELEASE-CALLBACK
CAPI::EXTRA-CALLBACK-ARGS : (NIL)
CAPI::EVENT-ARGS : (260 15)

Call to CAPI:EXECUTE-WITH-INTERFACE {offset 343}
CAPI:INTERFACE : #<EDITORWINDOW “internal chord” 4020438363>
FUNCTION : CAPI::IN-PROCESS-CAPI-EVENT-CALLBACK
CAPI::ARGS : (#<SCORE-TITLEBAR 402043C5FB> NIL OM-API::OM-CLIC-RELEASE-CALLBACK (NIL) (260 15))

Call to CAPI::PROCESS-CAPI-EVENT-CALLBACK {offset 92}
CAPI::SELF : #<SCORE-TITLEBAR 402043C5FB>
CAPI::TRANSLATOR : NIL
CAPI-INTERNALS:CALLBACK : OM-API::OM-CLIC-RELEASE-CALLBACK
CAPI::EXTRA-CALLBACK-ARGS : (NIL)
CAPI::EVENT-ARGS : (260 15)

Call to CAPI::PROCESS-CAPI-EVENT {offset 143}
CAPI::SELF : #<SCORE-TITLEBAR 402043C5FB>
CAPI::CALLBACK-ARGS : (NIL OM-API::OM-CLIC-RELEASE-CALLBACK NIL)
CAPI::EVENT-ARGS : (260 15)

Call to CAPI-INTERNALS:PROCESS-CAPI-EVENT-WITH-HANDLER {offset 210}
CAPI::SELF : #<SCORE-TITLEBAR 402043C5FB>
CAPI::SEARCH-KEY : :MOUSE-UP
CAPI::MERGED-THING : 1
CAPI::EVENT-ARGS : (260 15)

Call to CAPI-COCOA-LIBRARY::HANDLE-MOUSE-UP {offset 230}
CAPI-COCOA-LIBRARY::REPRESENTATION : #<CAPI-COCOA-LIBRARY::OUTPUT-PANE-REPRESENTATION for #<SCORE-TITLEBAR 402043C5FB> 402044BF63>
CAPI-COCOA-LIBRARY::THE-EVENT : #<Pointer: OBJC:OBJC-OBJECT-POINTER = #x000060C000133600>

UNWIND-PROTECT frame

Binding frame:
FLI::FOREIGN-OBJECT-SCOPE-STACK-DETAILS : #(0 #1=(4303364608 . 4096) (#1#))

UNWIND-PROTECT frame

Call to (SUBFUNCTION CAPI-COCOA-LIBRARY::|%FOREIGN-CALLABLE/CAPI_COCOA_LIBRARY OUTPUT_PANE_REPRESENTATION ObjC instance method mouseUp:| (FLI:DEFINE-FOREIGN-CALLABLE “CAPI_COCOA_LIBRARY OUTPUT_PANE_REPRESENTATION ObjC instance method mouseUp:”)) {offset 404}
FLI::%FOREIGN-CALL-STACK% : #<Raw value #x7FFEEFBFF1F0 (140732920754672)>

UNWIND-PROTECT frame

Call to SYSTEM::IN-ENTRY-FROM-C {offset 324}

Call to OBJC::|invoke (FUNCTION (OBJC-OBJECT-POINTER SEL) VOID)| {offset 218}
OBJC::ARG-0 : #<Pointer: OBJC:OBJC-OBJECT-POINTER = #x0000604000100C60>
OBJC::ARG-1 : #<Pointer: OBJC:SEL = #x00007FFF33115211>

UNWIND-PROTECT frame

Binding frame:
OBJC::DYNAMIC-OBJC-DATA : #

UNWIND-PROTECT frame

Binding frame:
FLI::FOREIGN-OBJECT-SCOPE-STACK-DETAILS : #(0 NIL NIL)

Call to (SUBFUNCTION 2 OBJC::MAKE-INVOKE-FUNCTION) {offset 394}
OBJC::OBJECT : #<Pointer: OBJC:OBJC-OBJECT-POINTER = #x0000604000100C60>
OBJC:SEL : #<Pointer: OBJC:SEL = #x00007FFF33115211>
OBJC::METHOD-SIG : :DONT-KNOW
OBJC::ARGS : NIL
OBJC::RESULT : NIL
OBJC::RESULT-TYPE {Closed} : :VOID
OBJC::DIRECT-INVOKE-FUNCTION {Closed} : OBJC::|invoke (FUNCTION (OBJC-OBJECT-POINTER SEL) VOID)|
OBJC::METHOD-USER-ARG-TYPES {Closed} : NIL

Call to OBJC::INVOKE-INTO* {offset 1665}
OBJC::RESULT : NIL
OBJC::POINTER-OR-CLASS-NAME : #<Pointer: OBJC:OBJC-OBJECT-POINTER = #x0000604000100C60>
METHOD : #S(OBJC::INTERNED-OBJC-SELECTOR :NAME “run” :SEL #<Pointer: OBJC:SEL = #x00007FFF33115211>)
OBJC::ARGS : NIL

Binding frame:
QUERY-IO : #<Synonym stream to BACKGROUND-QUERY-IO>

Binding frame:
STANDARD-INPUT : #<Synonym stream to BACKGROUND-INPUT>

Binding frame:
TRACE-OUTPUT : #<Synonym stream to BACKGROUND-OUTPUT>

Binding frame:
ERROR-OUTPUT : #<Synonym stream to BACKGROUND-OUTPUT>

Binding frame:
STANDARD-OUTPUT : #<Synonym stream to BACKGROUND-OUTPUT>

Catch frame: #:|progv-cathcer148883|

Catch frame: (CAPI-COCOA-LIBRARY::RUN-COCOA-EVENT-LOOP . RESTART-CASE)

Catch frame: (CAPI-COCOA-LIBRARY::RUN-COCOA-EVENT-LOOP . 1)

Binding frame:
DBG::DEBUGGER-WRAPPER-LIST : NIL

Catch frame: MP::CLEAN-EXIT-MAIN-PROCESS

Binding frame:
MP::INTERRUPT-BREAK-BREAKERS : NIL

Call to CAPI-COCOA-LIBRARY::RUN-COCOA-EVENT-LOOP {offset 2103}
CAPI-COCOA-LIBRARY::EARLY-INITIALIZER : #<Closure (FLET CAPI-COCOA-LIBRARY::EARLY-INITIALIZER) subfunction of (METHOD CAPI-LIBRARY:START-ENVIRONMENT-USING-LOOK-AND-FEEL ((EQL :COCOA) T)) 419001C44C>
CAPI-COCOA-LIBRARY::INITIALIZER : #<Closure (FLET CAPI-COCOA-LIBRARY::INITIALIZER) subfunction of (METHOD CAPI-LIBRARY:START-ENVIRONMENT-USING-LOOK-AND-FEEL ((EQL :COCOA) T)) 419001C42C>

Catch frame: MP::PROCESS-TAG

Catch frame: (MP::PROCESS-SG-FUNCTION . 1)

Catch frame: MP::PROCESS-SG-FUNCTION-CATCH

Binding frame:
MP:CURRENT-PROCESS : NIL

Binding frame:
MP::ACTIONS-AFTER-SLEEPING : NIL

Binding frame:
MP::ACTIONS-BEFORE-SLEEPING : NIL

Binding frame:
SYSTEM::READER-STATE : #<SYSTEM::READER-STATE In 0 out 86 41311D66AB>

Binding frame:
PACKAGE : #<The COMMON-LISP-USER package, 137/512 internal, 10/16 external>

Binding frame:
SYSTEM::SELECT-DUMMY : NIL

Binding frame:
EDITOR::CURRENT-BUFFER : NIL

Binding frame:
EDITOR::CURRENT-WINDOW : NIL

Binding frame:
EDITOR::EDITOR-STATE : NIL

Binding frame:
EDITOR::EDITOR-INPUT-STYLE : #S(EDITOR:EDITOR-INPUT-STYLE :KEY-BINDINGS #<EDITOR::KEY-TABLE #<EQUALP Hash Table{345} 40D0526DBB> 1 344> :DELETE-SELECTION-MODE NIL :LOGICAL-CHARACTERS #<EQUALP Hash Table{22} 40D03FB3EB> :EXECUTE-MODE #<EDITOR::MODE-OBJECT “Execute” 40D03FB4B3> :ECHO-MODE #<EDITOR::MODE-OBJECT “Echo Area” 40D03FB533> :PLIST NIL :INTERRUPT-KEYS (#S(SYSTEM::GESTURE-SPEC :DATA 103 :MODIFIERS 2) #S(SYSTEM::GESTURE-SPEC :DATA 71 :MODIFIERS 2)) :STYLE :EMACS :POINT-ALWAYS-VISIBLE T :USE-FACE-TO-FULL-WIDTH-P T)

Binding frame:
CAPI::USE-ACCELERATORS : T

Binding frame:
SYSTEM::PROCESS-BIGNUM-CACHE : NIL

Catch frame: #:|progv-cathcer254015|

Call to MP::PROCESS-SG-FUNCTION {offset 876}
MP::FLAG : 1
MP::SYMBOLS : NIL
VALUES : NIL

MP::PROCESS-SG-FUNCTION ← MP::RUN-MAIN-PROCESS-ONCE
← MP::RUN-MAIN-PROCESS ← MP::MULTIPROCESSING-MAIN-LOOP
← MP::SHARED-INITIALIZE-MULTIPROCESSING
← MP:INITIALIZE-MULTIPROCESSING
← CAPI-COCOA-LIBRARY::INITIALIZE-MULTIPROCESSING-COCOA
← (CLOS::GENERIC-FUNCTION-DISCRIMINATOR (#:DISC-ARG-234621 #:DISC-ARG-234622 &REST #:REST-234623))
← CAPI-INTERNALS:START-ENVIRONMENT ← LISPWORKS-TOOLS:START-LISPWORKS
← ENVIRONMENT::START-CAPI-ENVIRONMENT
← (METHOD ENVIRONMENT-INTERNALS:ENVIRONMENT-START (ENVIRONMENT::CAPI-ENVIRONMENT))
← (CLOS::GENERIC-FUNCTION-DISCRIMINATOR (#:DISC-ARG-234613 &REST #:REST-234614))
← ENVIRONMENT:START-ENVIRONMENT
← ENVIRONMENT::I-RESTART-WITH-ENVIRONMENT-AUX ← SYSTEM::RESTART-HOOK
← SYSTEM::IN-START-FUNCTION-ONCE ← SYSTEM::IN-START-FUNCTION
← SYSTEM::CALL-IN-START-FUNCTION ← SYSTEM::START-FUNCTION

Dear Mauro,

Yes i think i have fixed this in the upcoming version.
The reason is that before version 6.20, when you open a chord (using o) the chord/note selection doesn’t show when the button is clicked.
So it was already a bug.

THanx for reporting it (again :slight_smile: )

K

Thanks Karim. Is the upcoming version om7 ? Will the sources still work with LW7.1 ?

Yes. It will be compatible for both version of LW. No worry !
Best
K
PS: THe fix is here: fix set-obj-mode [to do for instances] · openmusic-project/openmusic@4291cc6 · GitHub