Crash when using jig

Crash when using jig

27925916
Advocate Advocate
763 Views
7 Replies
Message 1 of 8

Crash when using jig

27925916
Advocate
Advocate

I create a dialog that relies on a third-party interface library like CEF, but after I close this dialog ,and try to use jig to create custommer entity, but the CAD program crashes in the third-party interface library.

However it stands to reason that this library does nothing after the dialog is closed, and this crash only occurs in versions below CAD2014, so I wonder it is  a problem with CAD itself? The images and dump files below were captured by windbg

27925916_0-1647439376185.png

 

 

0 Likes
764 Views
7 Replies
Replies (7)
Message 2 of 8

tbrammer
Advisor
Advisor

I have no answer right now. But a few questions:

Do you call the jig from a message handler like CDialog::OnOK?

Does it also crash if you start the jig from a registered command without using your dialog at all?

Does it also crash on a machine that doesn't have the galpNode.dll?

 


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes
Message 3 of 8

27925916
Advocate
Advocate
Do you call the jig from a message handler like CDialog::OnOK?
:I type in the command bar to call the jig in a arx command

Does it also crash if you start the jig from a registered command without using your dialog at all?
:no
Does it also crash on a machine that doesn't have the galpNode.dll?
:no,but it also run ok above CAD2014 with galpNode.dll
0 Likes
Message 4 of 8

27925916
Advocate
Advocate

I wonder if it is because of "FIBERWORLD"? is there any way to set "FIBERWORLD" 0?

0 Likes
Message 5 of 8

27925916
Advocate
Advocate

it is read only in CAD2013

0 Likes
Message 6 of 8

tbrammer
Advisor
Advisor

I could imagine that your problem is in fact related to fibers. AutoCAD used fibers to implement the MDI interface. But over the time they made major changes to remove fibers, which are considered as deprecated since 2005! I think AutoCAD 2015 was the first completely fiberless version. These changes surely affected the handling of multi-threading and message handling.

 

Unfortunately I have no idea how you can work around this problem - especially with older AutoCAD versions.

 


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes
Message 7 of 8

Alexander.Rivilis
Mentor
Mentor

@27925916 wrote:

it is read only in CAD2013


You can use NEXTFIBERWORLD command and restart AutoCAD

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes
Message 8 of 8

daniel_cadext
Advisor
Advisor

looks like a destructor is throwing?

 

WebPageImpl::~WebPageImpl: 0000000035CE61A0
StackFrameDepth::getStackStart: 0000000000700000 00000000006F6980, 7152
StackFrameDepth::getStackStart: 0000000000700000 00000000006F6980, 7152
StackFrameDepth::getStackStart: 0000000000700000 00000000006F6EC0, 7152
StackFrameDepth::getStackStart: 0000000000700000 00000000006F6EC0, 7152
StackFrameDepth::getStackStart: 000000003DE80000 000000003DE7BDB0, 7152
(d6c.1bf0): Security check failure or stack buffer overrun - code c0000409 (!!! second chance !!!)

In mb2143.dmp the assembly instruction at galpNode+17890ab in c:\Users\???\Desktop\pkpmgreen???\GBPBECA3\bin\x64\galpNode.dll has caused an unknown exception (0xc0000409) on thread 0

 

Also there's an error

Console:[272],[Uncaught TypeError: Cannot read property 'error' of undefined]

 

maybe there's something you can try to catch?

 

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
0 Likes