RealDWG 2018 crashed at around readDwgFile() function

RealDWG 2018 crashed at around readDwgFile() function

Anonymous
Not applicable
802 Views
1 Reply
Message 1 of 2

RealDWG 2018 crashed at around readDwgFile() function

Anonymous
Not applicable

Hello,

 

We have developed an RealDWG-based host application for reading the DWG files.

It has been working fine with RealDWG 2017.

Recently, we have upgraded to the RealDWG 2018 and have encountered one crash that is always 100% reproducible as follows.

 

For the first time of opening/reading the DWG file, our RealDWG host application works fine.

However, after the first time, if we close the DWG file and then reopen it again (or open any other DWG file), the crash occurs

somewhere inside AcDbHostApplicationServices.

 

Please see the below call stack obtained by using ProcessHacker:

 


 

13, clr.dll!CorExeMain+0x108eb

14, clr.dll!CorExeMain+0xedc5

15, clr.dll!NGenCreateNGenWorker+0x1e1c

16, mscoreei.dll!GetXMLObject+0x727d

17, mscoree.dll!CorExitProcess+0x10d

18, ucrtbase.dll!wassert+0x40d

19, ucrtbase.dll!wassert+0x1e5

20, acdb22.dll!AcDbHostApplicationServices::fatalError+0x41

21, ac1st22.dll!AcRxIterator::isA+0x4b

22, ac1st22.dll!acrx_abort+0xab

23, ac1st22.dll!AcRxOverrule::isOverruling+0xd392

24, ac1st22.dll!newAcRxClass+0x64

25, ac1st22.dll!newAcRxClass+0x51

26, ac1st22.dll!newAcRxClass+0x37

27, AecBase.dbx!Ordinal2286+0x61

28, AecBase.dbx!Ordinal10623+0x5f8

29, AecBase.dbx!Ordinal10623+0x5e4

30, AecBase.dbx!Ordinal10623+0x7dd

31, AecBase.dbx!dxfNotSupportedMessage+0x8061

32, AecBase.dbx!Ordinal904+0x6db

33, acdb22.dll!AcDbUndoEdReactor::addDatabase+0x24f

34, acpal.dll!Autodesk::AutoCAD::PAL::FontUtils::getFontMetrics+0x1e37

35, acdb22.dll!acdbiEventLog+0x43e

36, acdb22.dll!AcRxImpDynamicLinker::sendAppMessage+0xcf

37, acdb22.dll!AcRxImpDynamicLinker::loadModule+0x138

38, acdb22.dll!AcRxImpDynamicLinker::loadApp+0x18b

39, acdb22.dll!AcRxImpDynamicLinker::loadApp+0xcb

40, AecBase.dbx!Ordinal904+0x331

41, AecBase.dbx!Ordinal904+0x6b7

42, acdb22.dll!AcDbUndoEdReactor::addDatabase+0x24f

43, acpal.dll!Autodesk::AutoCAD::PAL::FontUtils::getFontMetrics+0x1e37

44, acdb22.dll!acdbiEventLog+0x43e

45, acdb22.dll!AcRxImpDynamicLinker::sendAppMessage+0xcf

46, acdb22.dll!AcRxImpDynamicLinker::loadModule+0x138

47, AeccModuleLoader.dbx+0x210b

48, acdb22.dll!AcDbUndoEdReactor::addDatabase+0x24f

49, acpal.dll!Autodesk::AutoCAD::PAL::FontUtils::getFontMetrics+0x1e37

50, acdb22.dll!acdbiEventLog+0x43e

51, acdb22.dll!AcRxImpDynamicLinker::sendAppMessage+0xcf

52, acdb22.dll!AcRxImpDynamicLinker::loadModule+0x138

53, acdb22.dll!AcRxImpDynamicLinker::loadApp+0x18b

54, acdb22.dll!AcRxImpDynamicLinker::loadApp+0xcb

55, acdb22.dll!AcRxClassDictionary::getIDfor+0x4ac

56, acdb22.dll!AcRxClassDictionary::classInfo+0x3f0

57, acdb22.dll!AcDbImpDatabase::endDeepClone+0xd7d

58, acdb22.dll!AcDbImpDatabase::incrementalSaveAs+0x1bec

59, acdb22.dll!AcDbImpUndoController::isUndoAvailable+0x20b0

60, acdb22.dll!AcDbDatabase::readDwgFile+0x8d

61, 0x7feb89e38d7

62, 0x48d7b8

 

I suspect also call stack corruption, because 61 & 62 are not resolved function pointers.

 

Please be noted that if removing the AecModeler.dbx (so that it cannot be loaded) from the RealDwg2018, then this crash never occurs.

However, without AecModeler.dbx, it's impossible to handle the Cvil3D entities inside DWG file.

 

Any suggestion/help would be much appreciated.

Thanks

 

Tarmo and Trung

 

 

0 Likes
803 Views
1 Reply
Reply (1)
Message 2 of 2

moogalm
Autodesk Support
Autodesk Support

 

Please share the information how it can be recreated at our end.

 

Information like, steps to reproduce the behavior, a sample c3d drawing.

Can this be reproducible in dumpdwg sample? or is it specific to your environment.

 

If it is specific to your environment, please let us know how to create such environment.

 

 

Without having reproducible steps, it is difficult for us to troubleshoot the problem.

 

Thank you.

 

Note: Don’t share any confidential information.

 

In addition that :

 

OE 2018 installs files and registries to fixed location.

 

File: C:\Program Files\Autodesk\Autodesk AutoCAD Civil 3D 2018.1 Object Enabler 64 Bit

Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\ObjectDBX\R22.0

 

RealDWG is always loading .dbx from above registry key. In theory, OE 2018 is available for all RealDWG application (with consistent version), We only verified the official target products (AutoCAD and family, InfraWorks, Navisworks Manager and simulation).

 

0 Likes