Today, AutoCAD wouldn't start up with my template (I got an error and have pasted the log below)...so I started AutoCAD using the acadlt.dwt and it worked fine.
My coworkers were able to open up my template without any issues.
I installed all the updates and hotfixes available and still cannot start up from that template.
I can start up AutoCAD with the acadlt.dwt and then open up my own template and it works fine, it just crashes when I try to start it up with my template. Sometimes I get an error message, and sometimes it just exits without any message.
I encountered this later again today when I tried to open up a drawing. If I launched AutoCAD by trying to open the DWG, it crashed. But if I started AutoCAD up with acadlt.dwt loaded, I could open up the drawing without any problems.
Just wondering if anyone knows how to fix this issue. It seems to be happening only on my computer at work, and the memory on it is fine...it seems to be an 2012 AutoCAD LT issue.
Here's the log:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at MS.Win32.UnsafeNativeMethods.WTSRegisterSessionNotification(IntPtr hwnd, UInt32 dwFlags)
at System.Windows.Interop.HwndTarget.AttachToHwnd(IntPtr hwnd)
at System.Windows.Interop.HwndTarget..ctor(IntPtr hwnd)
at System.Windows.Interop.HwndSource.Initialize(HwndSourceParameters parameters)
at System.Windows.Interop.HwndSource..ctor(HwndSourceParameters parameters)
at Autodesk.AutoCAD.Windows.PaletteHwndSource..ctor(HWND__* hParent, Visual root)
at Autodesk.AutoCAD.Windows.AcMgWPFPalette.OnCreate(AcMgWPFPalette* , tagCREATESTRUCTW* lpCreateStruct)
at CAdUiPalette.Create(CAdUiPalette* , CAdUiPaletteSet* )
at Autodesk.AutoCAD.Windows.AcMgWPFPalette.Create(AcMgWPFPalette* , CAdUiPaletteSet* pParentWnd)
at Autodesk.AutoCAD.Windows.PaletteSet.AddCore(String name, AcMgPalette* pPal)
at Autodesk.AutoCAD.Windows.PaletteSet.AddVisual(String name, Visual control)
at Autodesk.AutoCAD.Ribbon.RibbonPaletteSet.Initialize()
at Autodesk.AutoCAD.Ribbon.RibbonServices.CreateRibbonPaletteSet()
at Autodesk.AutoCAD.Ribbon.Commands.Ribbon()
at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.Invoke(MethodInfo mi, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.Invoke()
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
AdApplicationFrame
Assembly Version: 0.0.0.0
Win32 Version: 3.2.23.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AdApplicationFrame.DLL
----------------------------------------
Acdbmgd
Assembly Version: 18.2.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AcdbMgd.DLL
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.236 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.4148
Win32 Version: 9.00.30729.4148
----------------------------------------
AdWindows
Assembly Version: 3.2.23.0
Win32 Version: 3.2.23.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AdWindows.DLL
----------------------------------------
PresentationFramework
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
System.Xaml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
PresentationFramework.Luna
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
Acmgd
Assembly Version: 18.2.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/Acmgd.DLL
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
----------------------------------------
AcWindows
Assembly Version: 18.2.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AcWindows.DLL
----------------------------------------
AcCui
Assembly Version: 18.2.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AcCui.DLL
----------------------------------------
PresentationFramework.Aero
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
WindowsFormsIntegration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
----------------------------------------
AcWindows.resources
Assembly Version: 18.2.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/en-US/AcWindows.resources.DLL
----------------------------------------
ContextualTabSelectorRules
Assembly Version: 0.0.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AcWindows.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 built by: RTMGDR
----------------------------------------
************** 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.
As a general rule, if it worked fine yesterday (or last week etc.) but not today, them something changed on your PC (a setting, add-on, log-in credentials etc.).
JIT errors, at the bottom of your list, is a Security setting in Windows and/or IE: it's generic and comes up if you have any of program's web settings turned on (a default setting in AutoCAD for example).
So, did your IT (or you) change security settings on your workstation or webbrowser or web access or firewall recently? Or perhaps to the locations of your files that do not work?
Most current Windows versions have a restore feature that allows you to see what got added to your PC too.
I also had this problem about two weeks ago and just re-drew my template from scratch and it seemed to work fine, with the exception of a couple crashes.
I repaired the AutoCAD installation as well and that didn't seem to help anything.
If redrawing your Template corrected the problem and then it manifested itself again then you must have a Block that is causing problems. I'm thinking that you had a clean working drawing that then went down hill while you were drawing.
AUDIT and RECOVER are there to fix problem files. You should use these prior to recreating or repair installs of CAD and if you do use Blocks look to AUDIT or RECOVER these too.
Regards, Charles Shade
CSHADEDESIGN | AUTOCAD LT | LT-KB | DYNAMIC BLOCKS
Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘
In addition to what Charlie noted above....
A true Autodesk defined Template DWT file is locked from further editing until you delete and create a new one: are you simply calling a DWG file a "template" in this case? Unlocked and open for editing/adding/deleting of content?
Hi Charles-
I recreated a new template today that contains new blocks drawn from scratch (I audited these as I was drawing) and I set that up as my opening template...but AutoCAD still crashes when it starts up from the template I just made.
If I open up AutoCAD with the original template that came with the program, I can go on and open up the template I just created without any problems.
Method of "opening" the template file the first time?
And is that different from when you open it the second time after you open AutoCAD's base template?
Where does the DWT file reside?
When I double-click on the .DWT template I created that I store in the ACAD LT template folder, it shuts down AutoCAD without any messages.
I can open up the base ACAD template by double clicking on it in the same folder and AutoCAD opens. In AutoCAD, I can open up my template and it doesn't cause ACAD to shut down.
If I change my ACAD template settings (under options) to start up with my template, it causes ACAD to shut down when I try to open up the program.
Does this answer your questions?
Are you a Windows Login Local Admin on your PC?
A Test.
In AutoCAD/LT, set STARTUP variable to 1.
Shut down LT.
Start LT back up: the pop-up presents you with options, choose the TEMPLATE: do you see your template file? If yes, double-click to open it, does it crash now?
This is the best way to always start AutoCAD/LT IMHO, followed by always using OPEN command to navigate and open other files. The left-side can be fully customized to get to key project folders.
Another test:
Start LT and open some existing drawing file.
Now start NEW command, select TEMPLATE from the file type, do you see your template file? If yoou open it, does LT crash?
Third test.
Start LT and open some existing drawing file.
Start QNEW command (note the Q in the name) and repeat the above test, any crashes?
Final test.
OPTIONS command>Files Tab, change the QNEW default template from None to your template file. Apply then OK out of the pop-up. Now start QNEW command (not NEW command), does your template come up?
I cannot replicate your issue at all if I set my default template to one of my DWT files in LT2011 or LT2012.
First test: Didn't crash.
Second test: Didn't crash.
Third test: A new drawing opened, but there wasn't a prompt to select a template (as there was in #2)...it just opened a new drawing using the base template.
Fourth test: Yes my template came up.
-------------------------------------------------------------------------------------------------------------------------------------------------
I tried doing this test with the previous template that was causing ACAD to crash about two weeks ago. I changed the startup to 1, selected the template...and got the following error message. Is it possible the RAM is corrupted?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at MS.Win32.UnsafeNativeMethods.WTSRegisterSessionNotification(IntPtr hwnd, UInt32 dwFlags)
at System.Windows.Interop.HwndTarget.AttachToHwnd(IntPtr hwnd)
at System.Windows.Interop.HwndTarget..ctor(IntPtr hwnd)
at System.Windows.Interop.HwndSource.Initialize(HwndSourceParameters parameters)
at Autodesk.AutoCAD.Windows.PaletteHwndSource..ctor(HWND__* hParent, Visual root)
at Autodesk.AutoCAD.Windows.AcMgWPFPalette.OnCreate(AcMgWPFPalette* , tagCREATESTRUCTW* lpCreateStruct)
at CAdUiPalette.Create(CAdUiPalette* , CAdUiPaletteSet* )
at Autodesk.AutoCAD.Windows.AcMgWPFPalette.Create(AcMgWPFPalette* , CAdUiPaletteSet* pParentWnd)
at Autodesk.AutoCAD.Windows.PaletteSet.AddCore(String name, AcMgPalette* pPal)
at Autodesk.AutoCAD.Windows.PaletteSet.AddVisual(String name, Visual control)
at Autodesk.AutoCAD.Ribbon.RibbonPaletteSet.Initialize()
at Autodesk.AutoCAD.Ribbon.RibbonServices.CreateRibbonPaletteSet()
at Autodesk.AutoCAD.Ribbon.Commands.Ribbon()
at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.Invoke(MethodInfo mi, Boolean bLispFunction)
at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.Invoke()
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
AdApplicationFrame
Assembly Version: 0.0.0.0
Win32 Version: 3.2.23.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AdApplicationFrame.DLL
----------------------------------------
Acdbmgd
Assembly Version: 18.2.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AcdbMgd.DLL
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.236 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.4148
Win32 Version: 9.00.30729.4148
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e/msvcm...
----------------------------------------
AdWindows
Assembly Version: 3.2.25.0
Win32 Version: 3.2.25.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AdWindows.DLL
----------------------------------------
PresentationFramework
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364...
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/Window...
----------------------------------------
PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/Pre...
----------------------------------------
System.Xaml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System...
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System....
----------------------------------------
PresentationFramework.Luna
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Luna/v4.0_4.0.0.0__31bf3856...
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/Sys...
----------------------------------------
Acmgd
Assembly Version: 18.2.0.0
Win32 Version: 18.2.107.0.2
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/Acmgd.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a...
----------------------------------------
AcWindows
Assembly Version: 18.2.0.0
Win32 Version: 18.2.107.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AcWindows.DLL
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System...
----------------------------------------
AcCui
Assembly Version: 18.2.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AcCui.DLL
----------------------------------------
PresentationFramework.Aero
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856...
----------------------------------------
WindowsFormsIntegration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad3...
----------------------------------------
AcWindows.resources
Assembly Version: 18.2.0.0
Win32 Version: 18.2.51.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/en-US/AcWindows.resources.DLL
----------------------------------------
ManagedMC3
Assembly Version: 5.8.0.0
Win32 Version: 5.8.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/ManagedMC3.DLL
----------------------------------------
ContextualTabSelectorRules
Assembly Version: 0.0.0.0
Win32 Version: 18.2.107.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%20LT%202012%20-%20English/AcWindows.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e0...
----------------------------------------
************** 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.
RAM errors are not tied to a single file.
JIT Debugging light reading:
Can't find what you're looking for? Ask the community or share your knowledge.