ScxmlEditor-Tutorial icon indicating copy to clipboard operation
ScxmlEditor-Tutorial copied to clipboard

Transition copy fails with clipboard access denied

Open mft-edk opened this issue 2 years ago • 5 comments

ScxmlEditor v2.5.1.1749, Windows 10 In certain cases, when attempting to copy a transition, get error: ERROR> Aug 15 15:46:49 COPY> Cannot open clipboard: Access is denied

Steps to invoke the problem:

  1. Copy non-visual child from any state (eg. onEntry)
  2. Paste into other state
  3. Attempt to copy transition
  • error is printed

The paste is required. If I just copy the child, then copy the transition, it still works.

This only applies to copying transitions. State and all other types of copies continue working normally.

mft-edk avatar Aug 15 '23 21:08 mft-edk

Could not reproduce either with usage of menus or with usage of hotkeys

https://github.com/alexzhornyak/ScxmlEditor-Tutorial/assets/18611095/c67378a2-fa89-4d9d-8152-390bdfa5b09f

P.S. Maybe there is an issue of a specific complex scxml

alexzhornyak avatar Aug 30 '23 15:08 alexzhornyak

It fails on an entirely fresh instance of editor, new unit (no project) ... Looks like I don't even need to use copy at all, there's some sequence of events... maybe its just timing?... My video capture doesn't capture menus... so you won't see this... I used menus to add the OnEntry and Log. Then I used CTL-Click to create the transition. Then I created the third state Then I select the transition and pressed CTL-C. Then you see the error at the bottom...

https://github.com/alexzhornyak/ScxmlEditor-Tutorial/assets/111876711/51a99e08-ab22-48e9-82ab-c866bb75c100

mft-edk avatar Aug 30 '23 16:08 mft-edk

https://github.com/alexzhornyak/ScxmlEditor-Tutorial/assets/18611095/63442bdf-e9ce-45c2-b286-1e5c62bee81a

Still can not catch. Ok, I will not close it and will check on other devices

alexzhornyak avatar Aug 30 '23 16:08 alexzhornyak

It does seem to be related to timing somehow. Sometimes, if I just do CTL-C a few times, it'll finally work. Sometimes I have to use CTL-C on something else, then try the transition again and it works. Here's my PC info... Processor Intel(R) Xeon(R) W-10885M CPU @ 2.40GHz 2.40 GHz Installed RAM 64.0 GB (63.6 GB usable) System type 64-bit operating system, x64-based processor Edition Windows 10 Pro for Workstations Version 22H2 OS build 19045.3324 Experience Windows Feature Experience Pack 1000.19041.1000.0

mft-edk avatar Aug 30 '23 19:08 mft-edk

Your PC is much more powerful than mine, maybe you are right about timings. I will try to test on such configuration

alexzhornyak avatar Aug 30 '23 19:08 alexzhornyak