alexzhornyak / ScxmlEditor-Tutorial

ScxmlEditor - powerful tool for creating, editing and debugging scxml files
https://alexzhornyak.github.io/ScxmlEditor-Tutorial/
BSD 3-Clause "New" or "Revised" License
73 stars 13 forks source link

Transition copy fails with clipboard access denied #103

Open EdK-z opened 1 year ago

EdK-z commented 1 year ago

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

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.

alexzhornyak commented 1 year ago

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

EdK-z commented 1 year ago

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

alexzhornyak commented 1 year ago

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

EdK-z commented 1 year ago

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

alexzhornyak commented 1 year ago

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