Weird application crashing with madexcept 4 and madexcept 5

delphi package - automated exception handling

Weird application crashing with madexcept 4 and madexcept 5

Postby gilsoncarmo » Mon Feb 18, 2019 1:18 pm

Hello,

I'm using madexcept 5.0 in my application and recently the application started to hang or stop working and I do not know the causes.
The problem does not happen in a specific place, every time it happens in a different place.
I'm not sure if the problem is really related to MADEXCEPT.
Attached is one of the reports I've been able to capture and some bugreports.
I have tried with version 5 and 4 but the problem happens in both.
Any help is welcome at this time.

Bugreports.rar
Some bug reports
(22.75 KiB) Downloaded 8 times

Bugreports.rar
Some bug reports
(22.75 KiB) Downloaded 8 times
Attachments
Windows Events.zip
(6.09 KiB) Downloaded 6 times
gilsoncarmo
 
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby madshi » Mon Feb 18, 2019 1:30 pm

There's no indication that madExcept would be at fault here. Have you tried compiling your program without madExcept to double check?

FWIW, looking at your bug reports, my best guess would be that there's a window which has a NULL window proc, or something weird like that. I don't know if that's even possible. But at least it seems that the message loop directly jumps to code address 0, or something near to that.
madshi
Site Admin
 
Posts: 9960
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby gilsoncarmo » Mon Feb 18, 2019 3:35 pm

My God, this problem is driving me crazy.
So far I have not got any information that will give me any clue.
Your opinion is very important to me. I do not know what else to do.
gilsoncarmo
 
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby madshi » Mon Feb 18, 2019 3:42 pm

Well, you're saying "recently the application started to hang or stop working". So the problem is probably caused by something you changed recently? The best approach would probably be to revert to whatever state was still working fine, and then try to find out which change caused the problem.
madshi
Site Admin
 
Posts: 9960
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby gilsoncarmo » Mon Feb 18, 2019 5:27 pm

Thank you for your attention.

I will try to investigate the SVN changes.
gilsoncarmo
 
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby gilsoncarmo » Tue Feb 19, 2019 6:13 pm

Hello,

I'm sorry to insist.
Do you know any other way I can identify the cause of this problem?
I've reviewed, each line of code changed since the last version, but I did not find anything.
The problem only happens on some computers, and I can not play it internally. It looks like something with the windows version, or something.
Another detail, after the error happens, if you close the application and reopen and redo exactly the same operations, the error does not occur.
I know this is not the purpose of the forum, but maybe someone knows a tool that can give me some clue.
Thank you very much for the help.

Attached is a new bugreport...

bugreport.zip
(6.1 KiB) Downloaded 10 times
gilsoncarmo
 
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby madshi » Tue Feb 19, 2019 6:17 pm

Is there any older version of your software which you know for sure does not have this problem?
madshi
Site Admin
 
Posts: 9960
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby gilsoncarmo » Wed Feb 20, 2019 8:55 pm

Yes, the problem started with version 6.1.0 of our software.
Analyzing SVN, I did not find anything that could cause the problem, so I started to think that it could be some external component.
Many times the software simply closes when you switch the window to another screen like SKYPE for example.
Another strange situation is that even with the software out of focus, it throws exceptions when I try to copy text in another window.
Today I saved a bugreport and when I switched the window to copy the file, the application raised an exception when I pressed ctrl + c, even though it was not in the application. It's really really weird.
It even seems crazy.

Samples.zip
Bug reports
(35.14 KiB) Downloaded 8 times
gilsoncarmo
 
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby madshi » Wed Feb 20, 2019 9:27 pm

What happens if you recompile the 6.1.0 sources, but keep all external components at the same version you're using now? Does the problem still occur?
madshi
Site Admin
 
Posts: 9960
Joined: Sun Mar 21, 2004 5:25 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby gilsoncarmo » Sat Feb 23, 2019 10:27 pm

Hello, Madshi.

Thank you very much for your attention.
Today I solved the problem, it was related to the fastreport component. A report file that was loaded at system startup caused all this impact.
In fact I did not get it right, the reason for the problem, but the important thing is that I found the solution.

Thank you immensely for your dedication.

Hugs
gilsoncarmo
 
Posts: 6
Joined: Thu Feb 14, 2019 8:45 pm

Re: Weird application crashing with madexcept 4 and madexcep

Postby madshi » Mon Feb 25, 2019 9:17 am

Glad to hear you got it solved!
madshi
Site Admin
 
Posts: 9960
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: Google [Bot] and 2 guests