Rhino 6 - Copy and Paste Error (Edits Environment Name)

Hey Guys,

Recently notice a consistent bug in Rhino 6.
Bug occurs either using the written commands or keyboard shortcuts for copying and pasting an object.
Using “Crtl+C” and “Crtl V” to duplicate an object, seemed to be slower in Rhino6.
Then I realised i could not type a command until I clicked back on the screen.
I finally noticed (thanks to the command history) that after any paste command, the following keyboard commands are added to the Environment Name (editing Environment Name).

If anyone else can replicate this error, that would be great.
Use “Crtl C + Crtl V” to duplicate an item.
Should notice anything you type from now will not appear in the command bar.
After clicking back on the viewport, your attempted text should appear in front of your Environment name.
Environment tab can be prompted with “Environments” command, to check name changes.

I am not able to reproduce this here. Could you please post the text result from the Rhino command _SystemInfo ?

Also, would it be possible for you to make screenshots, or even better yet a screenrecording of what you see?

/Nathan

SYSTEM INFO RESULT

Rhino 6 SR1 2018-2-6 (Rhino 6, 6.1.18037.13441, Git hash:master @ 5a33e6871b94d32ba552468218cef0ad8d3d1263)

Windows 10.0 SR0.0 or greater (Physical RAM: 7.9Gb)

GeForce GTX 660/PCIe/SSE2 (OpenGL ver:4.6.0 NVIDIA 388.13)

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: Height

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 10-27-2017
Driver Version: 23.21.13.8813
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 2 GB

C:\Program Files\Rhino 6\Plug-ins\SolidTools.rhp “SolidTools”
C:\Program Files\Rhino 6\Plug-ins\Commands.rhp “Commands”
C:\Program Files\Rhino 6\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 6\Plug-ins\RhinoRender.rhp “Rhino Render”
C:\Program Files\Rhino 6\Plug-ins\rdk_etoui.rhp “RDK_EtoUI”
C:\Program Files\Rhino 6\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 6\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 6\Plug-ins\RhinoCycles.rhp “RhinoCycles”
C:\Program Files\Rhino 6\Plug-ins\Toolbars\Toolbars.rhp “Toolbars”
C:\Program Files\Rhino 6\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 6\Plug-ins\Displacement.rhp “Displacement”

I have also noticed that this is only an issue if you use the spacebar to execute your commands, instead of enter.

I opened a new file, and the bug is not replicating (strange).
The issue did replicate after importing another supplied environment.

Hello,

I am getting the same problem as the one earlier mentioned. Rebooting the system doesn’t work. Deleting the entire program and installing it again won’t help. Does any one have a sulution for this problem?

Below you can see the system info.

Rhino 6 SR10 2018-11-7 (Rhino 6, 6.10.18311.20531, Git hash:master @ 0f9089a0035dcc6955732d57071445ecc29390f0)
Licence type: Educational, build 2018-11-07
License details: Cloud Zoo. In use by: harmcoster ()

Windows 10.0 SR0.0 or greater (Physical RAM: 16Gb)
Machine name: HARM

GeForce GTX 960M/PCIe/SSE2 (OpenGL ver:4.5.0 NVIDIA 376.54)

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: Height

Vendor Name: NVIDIA Corporation
Render version: 4.5
Shading Language: 4.50 NVIDIA
Driver Date: 12-29-2016
Driver Version: 21.21.13.7654
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 4 GB

C:\Program Files\Rhino 6\Plug-ins\Commands.rhp “Commands” 6.10.18311.20531
C:\Program Files\Rhino 6\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 6\Plug-ins\RhinoBonusTools.rhp “Rhino Bonus Tools”
C:\Program Files\Rhino 6\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 6.10.18311.20531
C:\Program Files\Rhino 6\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 6\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Orca3D V2\Orca3D.rhp “Orca3D” 2.0.0.0
C:\Program Files\Rhino 6\Plug-ins\RhinoCycles.rhp “RhinoCycles” 6.10.18311.20531
C:\Program Files\Rhino 6\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 6.10.18311.20531
C:\Program Files\Rhino 6\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 6\Plug-ins\Displacement.rhp “Displacement”
C:\Users\harm\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\Flamingo nXt 5.0 (fd53f8c4-546d-47d1-8820-e66c97645a97)\5.5.18100.1000\5.5\Flamingo.nXt.rhp “Flamingo nXt 5.5” 5.5.18100.1000

I’m a bit puzzled by the original report. Could you explain more about which environment you imported and how?

this is what i get when it is working:

SimulateEnvironment::Channel(Reflected)

but most of the time it is saying:

Unable to open temp clipboard file C:\Users\harm\AppData\Local\Temp\rh$A08A.tmp
for writing

This is something @johnc already fixed once. He should have a look at it again.,

This looks similar to https://mcneel.myjetbrains.com/youtrack/issue/RH-47555 which was fixed in July. Todd is using SR1 which does not have the fix. However, Harmcoster is using SR10 which does have the fix, so this can’t be the same bug. Unfortunately I can’t repeat the problem here. Could someone give me exact steps to repeat it? Do I have to have a particular panel open? I tried with the Environment Editor open and also the Rendering settings, but I don’t see a problem.

I Will look at it tonight en post some screenshots to show what’s open. But it happens from the beginning after opening rhino. I recently installed the wip version of orca 3d for Rhino 6 and the problem occurs 2 weeks after that.
I tried to run rhino in safe mode but the same things happened, so I don’t think any external plugins are the problem.

I have filed report https://mcneel.myjetbrains.com/youtrack/issue/RH-49489. I will add any further information and screenshots to this report.

Yesterday I tried to repeat the problem, and first I wasn’t able to get the error.

But after experimenting further i noticed that if I use Flamingo as render engine I got the notification in the command line “SimulateEnvironment::Channel(Reflected” when I used crtl+c" at that moment i was still able to copy and paste but later that evening I got the error “Unable to open temp clipboard file C:\Users\harm\AppData\Local\Temp\rh$A08A.tmp” and Crtl+c didn’t work anymore. When I tried to repeat crtl+c constantly it would work like 1/20 of the time.

now back to your question : "Could someone give me exact steps to repeat it? Do I have to have a particular panel open? I tried with the Environment Editor open and also the Rendering settings, but I don’t see a problem.

I don’t have any window like environment editor open. when I tried it, it didn’t seem to make any difference.

What did seem to work was using the rhino renderer as current renderer. After trying that I didn’t have de problem anymore. I don’t know if that makes sense in any way, but for now, that’s the only thing I can suggest as a possible reason.

But even if that’s the case, I don’t understand Why 2 days ago I did have the same problem when using rhino safe mode. correct me if I’m wrong, but isn’t it the case that safe mode eliminates any 3rd party plugins?

I hope this information will help you find the problem.

Thanks. I think we have two different bugs here that just happen to be about environments and copy / paste.Todd, who was using SR1 was seeing the editor bug I fixed in July. I just noticed that his post was back in February. I expect he is no longer seeing the issue after updating. @todd.o.brien Could you confirm please?

@h.coster Is seeing a different issue which is nothing to do with editors. I know this because you just said you have no editors open. Also, you have the bug fix, so I’m quite sure you’re seeing a an unrelated issue. It is something to do with environment files and Flamingo. I can’t explain why safe mode has the bug though. I think your issue is for John Morse to have a look at since he’s the Flamingo guy. @JohnM Do you recognize that output text about simulation? Why would that come out in a release build?

The only thing that still confuses me is that H. Coster originally said he was having the same problem as Todd, which was to do with key presses going to the wrong window. I don’t think this will be a problem anymore as I’m sure I fixed it in July.

I’ll show this to John Morse and see what he says. Thanks for your help.

John

Trying to figure out what the actual bug/problem is here. I think the current problem is:

I got the error “Unable to open temp clipboard file C:\Users\harm\AppData\Local\Temp\rh$A08A.tmp” and Crtl+c didn’t work anymore

If this is the case it has nothing at all to do with Flamingo but is a copy/paste issue. This is what Rhino does when running copy/paste:

Copy

  • Exports the selected objects to a temporary file
  • Reads the temporary file into the Windows clipboard as a chunk of memory
  • Deletes the temporary file

Paste

  • Checks to see if the clipboard contains Rhino copy data
  • Extracts the data to a temporary file
  • Imports the temporary file
  • Deletes the temporary file when done

Rhino reports “Unable to open for reading” the request to open the temporary file for reading fails.

Rhino reports "Error reading temp clipboard file " when the file was open for reading but there was come kind of error with what was in the file.

What is the exact error you are seeing?
Does the temporary file in question exist and if so could you send it to us?
What kinds of things are you trying to copy/paste when this fails?

I can confirm that the copy paste problem probably has nothing to do with flamingo. I just tried crtl+c and crtl+v again, and again it is not working.
@JohnM yes the temporary file does exist, however it’s size is 0kb. Could you tell me how to upload the file because i don’t know how to do it on this forum.

@h.coster If the file size is 0 then you don’t need to upload anything. I think that’s what the problem is though. Being 0 (i.e., empty) there is nothing to paste. I guess we need to find out why that file was created empty. @johnm Any ideas?

What kind of objects are you trying to copy/paste? Can you press F2 after it fails and copy the error message from the command history window?

I just copy simple object like a simple solid box.
this is the hystory message.

or writing
Command: Hystory
Unknown command: Hystory
Command: History
Autosaving file as C:\Users\harm\AppData\Local\Temp\RhinoAutosave.3dm
Autosave succeeded
Rhino history settings ( Record=No Update=Yes Lock=No BrokenHistoryWarning=Yes RecordAnnotationHistory=Yes ): Record=Yes
Rhino history settings ( Record=Yes Update=Yes Lock=No BrokenHistoryWarning=Yes RecordAnnotationHistory=Yes )
1 extrusion added to selection.
Command: '_CopyToClipboard
Unable to open temp clipboard file C:\Users\harm\AppData\Local\Temp\rh$3DD8.tmp
for writing
Command: History
Rhino history settings ( Record=Yes Update=Yes Lock=No BrokenHistoryWarning=Yes RecordAnnotationHistory=Yes )
1 extrusion added to selection.
Command: '_CopyToClipboard
Unable to open temp clipboard file C:\Users\harm\AppData\Local\Temp\rh$D6AE.tmp
for writing
Command: _CommandHistory

The “Unable to open temp clipboard file C:\Users\harm\AppData\Local\Temp\rh$D6AE.tmp for writing” means Rhino was unable to open the temporary file for writing in your Windows system temp folder which is not suppose to happen. I would close all currently running applications, reboot your computer and follow these Microsoft instructions for cleaning up your temporary files folder.