V7 File with no objects over 1 MB - Why?

Why is a .3dm file with no objects over 1 MB if saved in V7, but less than 5 KB if saved in V6 or V5?
Files saved with with “Save small” and “Save geometry” only checked, and “Save textures” and “Save plugin data” not checked.
Start V7 in Safe Mode and Save then the file is only 3 KB.
Compress the V7 file and the compressed file is only 3 KB.

Is there a lot of blank space in V7 files?

Open Rhino.
Save with “Save small” and “Save geometry only” checked, and “Save textures” and “Save plugin data” not checked.

Results:
V7 V7Blank.3dm (1.4 MB)
V7 Safe Mode V7BlankSafeMode.3dm (2.9 KB)
V6V6Blank.3dm (4.3 KB)
V5 V5Blank.3dm (4.0 KB)
V7 Zip V7Blank.zip (2.8 KB)

Rhino 7 SR4 2021-2-9 (Rhino 7, 7.4.21040.13001, Git hash:master @ 3c3a501e58b2e53701926611ee3535d3cde4cd9e)
License type: Commercial, build 2021-02-09
License details: Cloud Zoo

Windows 10.0.19042 SR0.0 or greater (Physical RAM: 12Gb)

Computer platform: LAPTOP - Plugged in [97% battery remaining]

Hybrid graphics configuration.
Primary display: Intel® HD Graphics 4600 (Intel) Memory: 1GB, Driver date: 8-8-2020 (M-D-Y).
> Integrated graphics device with 3 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
Primary OpenGL: NVIDIA GeForce GTX 860M (NVidia) Memory: 2GB, Driver date: 9-30-2020 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 456.71
> Integrated accelerated graphics device (shares primary device ports)
- Video pass-through to primary display device

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: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 9-30-2020
Driver Version: 27.21.14.5671
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 2 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 7\Plug-ins\Calc.rhp “Calc”
C:\Users\David Cockey\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\PanelingTools\2020.12.9.865\PanelingTools.rhp “PanelingTools”
C:\Users\David Cockey\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\SectionTools\2020.12.7.446\SectionTools.rhp “SectionTools”

I disabled all plug-ins (uncheckded “Enable” box) and restarted Rhino V7. Several plug-ins loaded including Commands and Toolbars. Saved file size was unchanged.

Opened the V7 file in Notepad (Windows text editor) and most of it appears to contain the same sets of characters, presumably as filler. Why? The V6 file has only a small amount of filler. The V7 Safe Mode file appears to have no filler.

I ran Audit3dmFile on your 3dm model and all of the data is in the properties section. I haven’t dug deeper, but most likely this is the preview image.

@stevebaer Preview image of what??? There are zero objects in the file. The file was saved immediately after opening a Rhino V7.

Probably the grid. I really haven’t dug into this at all and am simply making a guess as to the cause.

I turned the grid dispaly off and the file size remained the same.
I made the grid very small, 2 grid lines, and the file size remained the same.

I viewed the file in an online hexadecimal view. There is over a megabyte of a repeating pattern which presumably is just a filler, not data.:

I didn’t mean just the grid. I’m sure there are plenty of gray dots to make up an image of an empty scene. I probably shouldn’t have posted a reply in this thread as I haven’t had the time to give you a quality answer.

Steve, thanks for looking into this.

What is the preview image used for? Did V5 and V6 have preview images? If they did then what changed in V7?

A much smaller amount of repeating lines are the V5 and V6 files. Those lines contain all 5’s when viewd with a hexadecimal viewr.

A guess, and only a guess. The repeating pattern is used to increase the minimum file size so that file writing (and/or file reading) talks longer, possibly to resolve an issue with cloud storage.

Preview images are used for displaying thumbnails of 3dms in Windows file explorer. Requests come in to make these images bigger and they have grown in size over different versions of Rhino.

I’ll try to spend time tomorrow to give you better information than what I have already provided.

I was wrong about the preview image.

There is something else at play here. I opened your blank file and then saved it under a different name and ended up with a 20kb 3dm. Do you have any 3rd party plug-ins installed? SystemInfo will tell you that if you aren’t sure.

No third party plug-ins were loaded. Orca3D is on the computer but I disabled it from loading. Also checked and the file isize was the same with it loaded. SystemInfo results are at the bottom of my first message.

I was put onto this by the file which Miano loaded in this thread. Lines through Points - #11 by davidcockey Zipped it is 26 KB. Unzipped it was 2,859 KB. Miano remarked that he frequently sees 100:1 compression ratios which indicate to me that are proably a lot of repeated bytes.

Interesting when I opened Rhino 7 in Safe Mode and saved the file was smaller than the files from V6 or V5. Files are in first message Also looked at the Safe Mode file contents and it does not have the repeated bytes.

Moved to my desktop from my laptop. Opened V7 and saved. The file is 5 KB. V7BlankDesktop.3dm (4.4 KB) SystemInfor that desktop is below.

Added: Opened the 5 KB file form my desktop on my laptop and saved it. Now it is 1455 KB.

Rhino 7 SR4 2021-2-9 (Rhino 7, 7.4.21040.13001, Git hash:master @ 3c3a501e58b2e53701926611ee3535d3cde4cd9e)
License type: Commercial, build 2021-02-09
License details: Cloud Zoo

Windows 10.0.19042 SR0.0 or greater (Physical RAM: 16Gb)

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: AMD Radeon HD 7700 Series (AMD) Memory: 2GB, Driver date: 8-21-2020 (M-D-Y). OpenGL Ver: 4.6.13596 Compatibility Profile Context 20.10.35.02 27.20.1034.6
> Accelerated graphics device with 8 adapter port(s)
- Windows Main Display attached to adapter port #0

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: High

Vendor Name: ATI Technologies Inc.
Render version: 4.6
Shading Language: 4.60
Driver Date: 8-21-2020
Driver Version: 27.20.1034.6
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 2 GB

Rhino plugins that do not ship with Rhino
C:\Program Files\Orca3D V2\Orca3D.rhp “Orca3D” 2.0.20.0
C:\Program Files\SimLab\Plugins\SimLab 3D PDF From Rhino 6\plugins\SimLabPDFExporter.rhp “SimLab PDF Exporter”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.4.21040.13001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”

PanelingTools and SectionTools don’t actually ship with Rhino. Try disabling those, restart Rhino and save. I wouldn’t think those would be the cause, but it is good to eliminate possibilities

Already did. Had all plug-ins disabled and the saved file size was the same. I will repeat disabling PanelingTools and SectionTools to verify.

Another thing to try is to send me your settings.xml file. Maybe some setting was adjusted that I don’t know about.

Where do I find settings.xml file.

Disabling DevSrf, PanelingTools and SectionTools did not make any difference.

I also tried resetting Rhino Options to defaults. No difference.

settings.xml files:
settings-Scheme__Default.xml (45.1 KB)
window_positions-Scheme__Default.xml (28.9 KB)

I have Rhino 8 WIP loaded on my laptop which saves large files, but not on my desktop which saves small files…(8.0.21005.12305, 1/5/2021).

V8 WIP file size without geometry is 5 KB,

Weird; I hate mysteries like that. Thanks for letting me know

@stevebaer Now deleted post was wrong. I tested V6, not V7, by mistake. Problem still exists after restarting computer.

I uninstalled V7 and V8 from my laptop, and then reinstalled V7. The blank file size is still over 1 MB.