By JDHill
#258318
Hi Björn,

It could mean any number of things - you can look in the log viewer to see the stack trace for the exception. Generally speaking, the source will usually be somewhere in either the Maxwell SDK, or from inside of Rhino, where I've called a function and something nasty happened during the call. It would be best if you hit the 'send report' button when this happens so I can try to find patterns - the reports go straight to my inbox.

Thanks,

JD
By bjorn.syse
#258320
Oh, I see. I'll do that. Here the most recent stacktrace.

----------------------------------------
MFCM80U
Assembly Version: 8.0.50727.0
Win32 Version: 8.00.50727.762
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.MFC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_3bf8fa05/mfcm80u.dll
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
By JDHill
#258329
Thanks Björn, but that really just shows what assemblies were loaded when the error occurred - the plugin's log report (which is sent along with the email) shows exactly which functions called which other functions in the lead-up to the error.
By JDHill
#258336
Probably, there is a file named mw4r4_log.txt on your desktop - this gets overwritten whenever that error dialog is shown. This file gets sent along as an attachment to the email from the error dialog. There is also a directory under Users\[username]\AppData\Roaming (in Vista, Documents and Settings\etc. in XP) that has the hard copies of any logs generated - actually, there is a link at the top of the Log Viewer that will show where these are being stored.
By bjorn.syse
#258366
********************************
* Maxwell for Rhino 4
* Version: 1.6.1.0
********************************
* Session Log
* Date: 2008-01-09
* Time: 22:01:19.5000000
* File: file://C:\Documents and Settings\bjorn\Application Data\MaxwellDotNetSdk\Logs\session_log_1_9_2008_22_1_19.txt
********************************
* line 1: OnLoadPlugIn, _info, begin plugin-load
* line 2: OnLoadPlugIn, _info, Checking required paths
* line 3: CheckRequiredPaths, _info, Checking for MAXWELL_ROOT environment variable.
* line 4: CheckRequiredPaths, _info, MAXWELL_ROOT environment variable exists.
* line 5: CheckRequiredPaths, _info, Checking for Maxwell home directory.
* line 6: CheckRequiredPaths, _info, Maxwell home directory is located at: C:\Program\Next Limit\Maxwell
* line 7: CheckRequiredPaths, _info, Checking for mxcl.exe.
* line 8: CheckRequiredPaths, _info, Maxwell mxcl.exe is located at: C:\Program\Next Limit\Maxwell\mxcl.exe
* line 9: CheckRequiredPaths, _info, Checking for mxed.exe.
* line 10: CheckRequiredPaths, _info, Maxwell mxed.exe is located at: C:\Program\Next Limit\Maxwell\mxed.exe
* line 11: CheckRequiredPaths, _info, Checking for mxst.exe.
* line 12: CheckRequiredPaths, _end, Maxwell mxst.exe is located at: C:\Program\Next Limit\Maxwell\mxst.exe
* line 13: OnLoadPlugIn, _info, Creating EventWatcher
* line 14: OnLoadPlugIn, _info, Retrieving Material preview-size
* line 15: OnLoadPlugIn, _info, Creating Maxwell Scene
* line 16: OnLoadPlugIn, _info, Creating CommonFunctions
* line 17: OnLoadPlugIn, _info, Attaching mxCommonFunctions.pMaxwell
* line 18: OnLoadPlugIn, _info, Retreiving user-preferences
* line 19: OnLoadPlugIn, _info, Creating MaxwellDropTarget
* line 20: OnLoadPlugIn, _info, Registering MaxwellEventWatcher
* line 21: OnLoadPlugIn, _info, Enabling MaxwellEventWatcher
* line 22: OnLoadPlugIn, _info, Enabling camera auto-synchronization
* line 23: OnLoadPlugIn, _info, Enabling Scene events
* line 24: OnLoadPlugIn, _info, Synchronizing cameras
* line 25: CreateCamera, _info, created camera: Perspective
* line 26: OnLoadPlugIn, _info, starting plugin update status thread
* line 27: OnLoadPlugIn, _end, Plugin-load finished successfully
* line 28: CreateCamera, _info, created camera: Perspective
* line 29: OnRenameView, _info, SelectedCamera = 'Perspective'
* line 30: OnRenameView, _info, SelectedCamera = 'Top'
* line 31: OnRenameView, _info, SelectedCamera = 'Front'
* line 32: OnRenameView, _info, SelectedCamera = 'Right'
* line 33: OnNewDocument, _info, reset
* line 34: CreateCamera, _info, created camera: Perspective
* line 35: OnSetActiveView, _info, SelectedCamera = 'Perspective'
* line 36: OnBeginOpenDocument, _begin, filename: C:\Documents and Settings\All Users\Application Data\McNeel\Rhinoceros\4.0\English\Template Files\Small Objects - Millimeters.3dm
* line 37: set_CurrentDocumentDirectory, _end, m_cd = C:\Documents and Settings\All Users\Application Data\McNeel\Rhinoceros\4.0\English\Template Files
* line 38: OnBeginOpenDocument, _end, filename: C:\Documents and Settings\All Users\Application Data\McNeel\Rhinoceros\4.0\English\Template Files\Small Objects - Millimeters.3dm
* line 39: ReadCompleteDocument, _begin, reading complete document: C:\Documents and Settings\All Users\Application Data\McNeel\Rhinoceros\4.0\English\Template Files\Small Objects - Millimeters.3dm
* line 40: ReadPartialDocument, _begin, reading partial document: C:\Documents and Settings\All Users\Application Data\McNeel\Rhinoceros\4.0\English\Template Files\Small Objects - Millimeters.3dm
* line 41: RestoreViewport, _info, ActiveDoc.GetPathName is:
* line 42: ReadPartialDocument, _end, finished reading partial document
* line 43: ReadDocument, _end, sucessfully read Maxwell data
* line 44: OnEndOpenDocument, _begin, filename: C:\Documents and Settings\All Users\Application Data\McNeel\Rhinoceros\4.0\English\Template Files\Small Objects - Millimeters.3dm
* line 45: OnEndOpenDocument, _info, m_IsNewDoc = True
* line 46: pMaxwell_SelectedMaterialNull, _info, selected material = null
* line 47: OnEndOpenDocument, _end, filename: C:\Documents and Settings\All Users\Application Data\McNeel\Rhinoceros\4.0\English\Template Files\Small Objects - Millimeters.3dm
* line 48: CreateCamera, _info, created camera: Perspective
* line 49: pMaxwell_SelectedMaterialNull, _info, selected material = null
* line 50: CreateCamera, _info, created camera: Right
* line 51: OnSetActiveView, _info, SelectedCamera = 'Right'
* line 52: OnBeginOpenDocument, _begin, filename: C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.3dm
* line 53: set_CurrentDocumentDirectory, _end, m_cd = C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene
* line 54: OnBeginOpenDocument, _end, filename: C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.3dm
* line 55: ReadCompleteDocument, _begin, reading complete document: C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.3dm
* line 56: set_CurrentDocumentDirectory, _exit, value = null; m_cd = C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene
* line 57: ReadCompleteDocument, _end, finished reading complete document
* line 58: ReadDocument, _end, sucessfully read Maxwell data
* line 59: OnEndOpenDocument, _begin, filename: C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.3dm
* line 60: pMaxwell_SelectedMaterialNull, _info, selected material = null
* line 61: pMaxwell_SelectedMaterialChanged, _info, selected material = Aluminum [ wizard ]
* line 62: OnEndOpenDocument, _end, filename: C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.3dm
* line 63: OnRenameView, _info, SelectedCamera = 'Perspective'
* line 64: OnRenameView, _info, SelectedCamera = 'Top'
* line 65: OnRenameView, _info, SelectedCamera = 'Front'
* line 66: OnRenameView, _info, SelectedCamera = 'Right'
* line 67: OnSetActiveView, _info, SelectedCamera = 'Perspective'
* line 68: get_SceneManager, _info, getting SceneManager
* line 69: ShowSceneManager(IWin32Window), _info, sz=585x400h, loc=1042,551(virtual), pWnd=1836460
* line 70: Maxwell_Render, _notify, Maxwell_Render (RenderScene)
* line 71: PrintPathStatusReport, _info, -- BEGIN Path Status Report --
* line 72: PrintPathStatusReport, _info, Total number of Materials: 2
* line 73: PrintPathStatusReport, _info, No invalid paths found
* line 74: PrintPathStatusReport, _info, -- END Path Status Report --
* line 75: WriteMxs, _info, rendering camera: Perspective
* line 76: WriteMxs, _notify, Generating new MXS meshes, press CTRL+ALT+SHIFT to cancel
* line 77: meshing 0,0% completed
* line 78: meshing 10,1% completed
* line 79: meshing 20,2% completed
* line 80: meshing 30,3% completed
* line 81: render failed: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
* line 82: ExportScene, _info, total export time: 00:00:01.7343750
* line 83: OnEndWriteMxs, _notify, mesh export was cancelled
* line 84: mxVersionChecker.CheckForUpdate(), _abort, network connection could not be established
* line 85: PrintPathStatusReport, _info, -- BEGIN Path Status Report --
* line 86: PrintPathStatusReport, _info, Total number of Materials: 2
* line 87: PrintPathStatusReport, _info, No invalid paths found
* line 88: PrintPathStatusReport, _info, -- END Path Status Report --
* line 89: WriteMxs, _info, rendering camera: Perspective
* line 90: WriteMxs, _notify, Generating new MXS meshes, press CTRL+ALT+SHIFT to cancel
* line 91: meshing 0,0% completed
* line 92: meshing 10,1% completed
* line 93: meshing 20,2% completed
* line 94: meshing 30,3% completed
* line 95: meshing 40,4% completed
* line 96: meshing 50,4% completed
* line 97: meshing 60,5% completed
* line 98: meshing 70,6% completed
* line 99: meshing 80,7% completed
* line 100: meshing 90,8% completed
* line 101: ExportScene, _info, total export time: 00:00:24.5312500
* line 102: OnEndWriteMxs, _notify, ExportScene returned: True
* line 103: OnEndWriteMxs, _info, The .mxs was written successfully, the path was: [ C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.mxs ]
* line 104: WriteCompleteDocument, _begin, writing complete V1.6 document
* line 105: WriteCompleteDocument, _end, finished writing complete V1.6 document
* line 106: Maxwell_Render, _notify, Maxwell_Render (RenderScene)
* line 107: PrintPathStatusReport, _info, -- BEGIN Path Status Report --
* line 108: PrintPathStatusReport, _info, Total number of Materials: 2
* line 109: PrintPathStatusReport, _info, No invalid paths found
* line 110: PrintPathStatusReport, _info, -- END Path Status Report --
* line 111: Render, _info, RenderStatusReady returned false
* line 112: Maxwell_Render, _notify, Maxwell_Render (RenderScene)
* line 113: PrintPathStatusReport, _info, -- BEGIN Path Status Report --
* line 114: PrintPathStatusReport, _info, Total number of Materials: 2
* line 115: PrintPathStatusReport, _info, No invalid paths found
* line 116: PrintPathStatusReport, _info, -- END Path Status Report --
* line 117: WriteMxs, _info, rendering camera: Perspective
* line 118: WriteMxs, _notify, Generating new MXS meshes, press CTRL+ALT+SHIFT to cancel
* line 119: meshing 0,0% completed
* line 120: meshing 10,1% completed
* line 121: meshing 20,2% completed
* line 122: meshing 30,3% completed
* line 123: meshing 40,4% completed
* line 124: meshing 50,4% completed
* line 125: meshing 60,5% completed
* line 126: meshing 70,6% completed
* line 127: meshing 80,7% completed
* line 128: meshing 90,8% completed
* line 129: ExportScene, _info, total export time: 00:00:03.5312500
* line 130: OnEndWriteMxs, _notify, ExportScene returned: True
* line 131: OnEndWriteMxs, _info, The .mxs was written successfully, the path was: [ C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.mxs ]
* line 132: Maxwell_Render, _notify, Maxwell_Render (RenderScene)
* line 133: PrintPathStatusReport, _info, -- BEGIN Path Status Report --
* line 134: PrintPathStatusReport, _info, Total number of Materials: 2
* line 135: PrintPathStatusReport, _info, No invalid paths found
* line 136: PrintPathStatusReport, _info, -- END Path Status Report --
* line 137: WriteMxs, _info, rendering camera: Perspective
* line 138: WriteMxs, _notify, Generating new MXS meshes, press CTRL+ALT+SHIFT to cancel
* line 139: meshing 0,0% completed
* line 140: meshing 10,1% completed
* line 141: meshing 20,2% completed
* line 142: meshing 30,3% completed
* line 143: meshing 40,4% completed
* line 144: meshing 50,4% completed
* line 145: meshing 60,5% completed
* line 146: meshing 70,6% completed
* line 147: meshing 80,7% completed
* line 148: meshing 90,8% completed
* line 149: ExportScene, _info, total export time: 00:00:03.5000000
* line 150: OnEndWriteMxs, _notify, ExportScene returned: True
* line 151: OnEndWriteMxs, _info, The .mxs was written successfully, the path was: [ C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.mxs ]
* line 152: pMaxwell_SelectedMaterialNull, _info, selected material = null
* line 153: get_MaterialManager, _info, getting MaterialManager
* line 154: pMaxwell_SelectedMaterialNull, _info, selected material = null
* line 155: ShowMaterialManager(IWin32Window), _info, sz=788x443h, loc=503,425(virtual), pWnd=1836460
* line 156: pMaxwell_SelectedMaterialChanged, _info, selected material = Aluminum [ wizard ]
* line 157: pMaxwell_SelectedMaterialChanged, _info, selected material = Gold [ wizard ]
* line 158: pMaxwell_SelectedMaterialChanged, _info, selected material = Aluminum [ wizard ]
* line 159: Maxwell_Render, _notify, Maxwell_Render (RenderScene)
* line 160: PrintPathStatusReport, _info, -- BEGIN Path Status Report --
* line 161: PrintPathStatusReport, _info, Total number of Materials: 2
* line 162: PrintPathStatusReport, _info, No invalid paths found
* line 163: PrintPathStatusReport, _info, -- END Path Status Report --
* line 164: WriteMxs, _info, rendering camera: Perspective
* line 165: WriteMxs, _notify, Generating new MXS meshes, press CTRL+ALT+SHIFT to cancel
* line 166: meshing 0,0% completed
* line 167: meshing 10,1% completed
* line 168: meshing 20,2% completed
* line 169: meshing 30,3% completed
* line 170: meshing 40,4% completed
* line 171: meshing 50,4% completed
* line 172: meshing 60,5% completed
* line 173: meshing 70,6% completed
* line 174: meshing 80,7% completed
* line 175: meshing 90,8% completed
* line 176: ExportScene, _info, total export time: 00:00:08.4062500
* line 177: OnEndWriteMxs, _notify, ExportScene returned: True
* line 178: OnEndWriteMxs, _info, The .mxs was written successfully, the path was: [ C:\Documents and Settings\bjorn\Mina dokument\Syse Industriell Design\Projekt\HGO\Avancerad 3d 2007\Moment maxwell\ljussättning - Torsdag\fotosetup scene\sanyo xacti.mxs ]
* line 179: OnSetActiveView, _info, SelectedCamera = 'Front'
* line 180: pMaxwell_SelectedMaterialNull, _info, selected material = null
* line 181: OnSetActiveView, _info, SelectedCamera = 'Perspective'
* line 182: Maxwell_Render, _notify, Maxwell_Render (RenderScene)
* line 183: PrintPathStatusReport, _info, -- BEGIN Path Status Report --
* line 184: PrintPathStatusReport, _info, Total number of Materials: 2
* line 185: PrintPathStatusReport, _info, No invalid paths found
* line 186: PrintPathStatusReport, _info, -- END Path Status Report --
* line 187: WriteMxs, _info, rendering camera: Perspective
* line 188: WriteMxs, _notify, Generating new MXS meshes, press CTRL+ALT+SHIFT to cancel
* line 189: meshing 0,0% completed
* line 190: meshing 10,0% completed
* line 191: meshing 20,1% completed
* line 192: render failed: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
* line 193: ExportScene, _info, total export time: 00:00:00.7812500
* line 194: OnEndWriteMxs, _notify, mesh export was cancelled
* line 195: Exception report.
* line 196: Type: System.AccessViolationException
* line 197: Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
* line 198: Source: MaxwellDotNetSdk
* line 199: Has StackTrace: True
* line 200: BEGIN STACKTRACE: 'System.AccessViolationException'
* line 201: - at Cmaxwell.freeScene(Cmaxwell* )
* line 202: - at Maxwell.Scenes.Scene.FreeScene()
* line 203: - at MaxwellPlugin.MaxwellPluginUtility.set_MxsIsDirty(Boolean value)
* line 204: - at MaxwellPlugin.MaxwellRenderFunctions.OnEndWriteMxs(MeshExportCompletedEventArgs e)
* line 205: END STACKTRACE: 'System.AccessViolationException'
* line 206: Has InnerException: False
By JDHill
#258368
* line 201: - at Cmaxwell.freeScene(Cmaxwell* )

I've seen that before, it's from inside the Maxwell SDK. This didn't show up until 1.6(.1), so I'm hoping it will be fixed with the next SDK. There's really no further debugging that I can do on this particular issue since it happens in code that's outside my control.

That said, look back at:

* line 81: render failed: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

This is happening during the geometry check - see it was caught when the plugin was about 30% through the model. Most likely what happens here is that as the meshes are being checked/read, Rhino itself takes an access-violation when reading the mesh arrays. You don't crash (you would, it would be a hard crash), because I catch the error - it's unclear why it could succeed in the further attempts.

I could not say that the two failures are linked, or in which way - if you seem to find a pattern, it would be good if you could keep the file in tact and send it along - it would be necessary that this file would be saved with the same render meshes present, as re-meshing would likely change things enough to make any study inconclusive.
By bjorn.syse
#258423
Cool. I just have to mention, that this error did not come when trying to mesh or render a scene of mine. I came when trying to render a new preview for a "maxwell material database"-material, I think with tom_stage1 preview scene.

- Björn
By martindejager
#258546
Hi,

I've got exactly the same problem. Log file stacktrace part is identical. It's hard to pinpoint when it occurs. With the current plugin or Maxwell version the stability of Rhino seems to be a lot lower. This could of course also be a Rhino problem. We are still trying to find out what's the matter. At this point copy/paste and saving sometimes makes Rhino crash. Will report back if the problem is found.

Kind regards,

Martin
By Gothra
#258821
I have had the same errors twice after rendering a rather large file (50Mb, since I don't know how to work with the newly introduce "instance" functions")

and strangely, pop up AFTER the rendering is done.
Next time I'll "send report" to try to help out a bit~ :D

ps. New to the forums, hello all.
render engines and Maxwell

well I don't think AI will remain like it is now. […]

Help with swimming pool water

Hi Andreas " I would say the above "fake[…]