Crash on Unload

TeeChart for ActiveX, COM and ASP
Post Reply
SNPSUSER
Newbie
Newbie
Posts: 12
Joined: Thu Sep 08, 2016 12:00 am

Crash on Unload

Post by SNPSUSER » Tue Jan 24, 2017 6:06 am

Hello,

We have a VC++ MFC application and we are using TeeChart ActiveX control 2016. We are encountering Crashes on windows 8.1 and windows 10 OS. This behavior is not observed on Windows 7.

Following are the details of the application and scenario :

The application is 64-bit, MDI Application Name is YieldManager40.exe
OS : Windows 8.1, Windows 10
Development Environment : VS 2013 Update 4

Crash Scenario :
Our Application can render multiple charts one by one; when all windows containing charts are closed; The application crashes and an event in the windows event viewer is logged as faulting module is TeeChart. details of the event is as follows.
Exception: If even a single window containing chart is open, crash is not observed.
========================================================================================
Faulting application name: YieldManager40.exe, version: 2015.12.5.2, time stamp: 0x587880bc
Faulting module name: TeeChart201664.ocx_unloaded, version: 2016.0.0.2, time stamp: 0x57691a5e
Exception code: 0xc000041d
Fault offset: 0x0000000000140200
Faulting process id: 0x26f4
Faulting application start time: 0x01d2707a654d517a
Faulting application path: C:\ClientManifestx64\YieldManager40.exe
Faulting module path: TeeChart201664.ocx
Report Id: 0a9b643d-5c75-4974-8874-ad0c228bd5f8
Faulting package full name:
Faulting package-relative application ID:
========================================================================================

Request you to help at the earliest.

Thanks,

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Crash on Unload

Post by Sandra » Tue Jan 24, 2017 12:49 pm

Hello SNPSUSER,

Could you attach for us the project, because we can reproduce the problem here? You can post your files at our upload page.

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

SNPSUSER
Newbie
Newbie
Posts: 12
Joined: Thu Sep 08, 2016 12:00 am

Re: Crash on Unload

Post by SNPSUSER » Fri Jan 27, 2017 6:12 am

Hi Sandra,
Thanks for reply!
We would like to have a Remote Desktop sharing session wherein we can demonstrate the issue.
Due to restrictions, we can not provide source code of our product. developing a sample project will be time consuming than to demonstrate the problem online.

please let us know suitable date/time for remote session.

Thanks for the understanding!

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Crash on Unload

Post by Sandra » Fri Jan 27, 2017 10:25 am

Hello SNPSUSER

Although remote access is generally restricted to Pro-support customers, it remains an option as a later resort. At this stage though, we would prefer that you send us a video showing the problem if you feel that it will help us understand it.

Do you activate GDI+ graphics at any stage during the application cycle? This type of problem has been known where GDI+ is activated (you should deactivate it at the Chart).

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

SNPSUSER
Newbie
Newbie
Posts: 12
Joined: Thu Sep 08, 2016 12:00 am

Re: Crash on Unload

Post by SNPSUSER » Mon Feb 13, 2017 12:32 pm

Hi Sandra,

As per your direction we deactivate the GDI+ in our project, but it does not resolve our problem.

Best regards,
SNPSUSER

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Crash on Unload

Post by Yeray » Tue Feb 14, 2017 8:28 am

Hello,

I understand you can't send us your application. We use to ask customers to arrange simple example projects we can run as-is to reproduce here the problems they are observing because, when they can send them, their applications use to be too big for us to easily debug them to find the root of the problems.
Two explanations, better than what I can write here: sscce, mcve
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SNPSUSER
Newbie
Newbie
Posts: 12
Joined: Thu Sep 08, 2016 12:00 am

Re: Crash on Unload

Post by SNPSUSER » Thu Feb 16, 2017 5:26 am

Hi,

We have developed a sample application to demonstrate the crash in STEEMA charting control.
The application has been developed in Visual Studio 2013 and run on a windows 10 machine.

The below listed files have been uploaded to STEEMA server (under SNPSUSER user):
a) Source Code for a demo application (ZIP file)
b) Screen Recording (ZIP file)
c) Steps to reproduce (TXT file)

Please help investigate and fix the crash ASAP.

Awaiting your response, Thanks in advance.

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Crash on Unload

Post by Yeray » Fri Feb 17, 2017 8:59 am

Hello,

I haven't been able to reproduce the problem.
I've added a call to m_ctrlChart.AboutBox() to show the TeeChart version registered / in use.
2017-02-17_09-57-59.gif
2017-02-17_09-57-59.gif (1.19 MiB) Viewed 37063 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SNPSUSER
Newbie
Newbie
Posts: 12
Joined: Thu Sep 08, 2016 12:00 am

Re: Crash on Unload

Post by SNPSUSER » Tue Feb 21, 2017 6:23 am

Hi Yeray,

Thanks for the reply.

We already have a PRO support with STEEMA, and would request for a remote session for debugging and resolving this issue on urgent basis.
This issue is getting increasingly critical for us.

Please suggest.

SNPSUSER
Newbie
Newbie
Posts: 12
Joined: Thu Sep 08, 2016 12:00 am

Re: Crash on Unload

Post by SNPSUSER » Wed Feb 22, 2017 3:12 pm

Hi Yeray,

Thanks for the time this morning.

As demonstrated, we could reproduce the crash in X64 bit STEEMA control, both in our main application and the dummy application.

One of our key customers (using X64 version on Windows 10) has escalated this issue to our higher management and now has high visibility.
The higher management is expecting this issue to be resolved on urgent basis, for successful delivery of our product.

As discussed, looking forward to a positive update by Friday, 24th Feb 2017.

-Regards.

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Crash on Unload

Post by Yeray » Thu Feb 23, 2017 9:08 am

Hello,
SNPSUSER wrote:As demonstrated, we could reproduce the crash in X64 bit STEEMA control, both in our main application and the dummy application.
Indeed we observed how you could reproduce the crash in both applications. However, we've spent hours trying to reproduce the crash in the dummy application without much success.
We could reproduce an AV reported in the EventViewer as coming from TeeChart's 64bit ocx, but only one time.
Attaching the process to the TeeChart VCL sources, using RAD Studio, we caught an error another time, but we aren't sure if this is the same problem or a different one. The only information given was the error came from a User32.dll.

Appearing so sporadically, it's very difficult to debug and investigate the root of a problem.
SNPSUSER wrote:As per your direction we deactivate the GDI+ in our project, but it does not resolve our problem.
Have you tried to deactivate GDIPlus just after creating the chart? We think it's worth to insist on this because this is the only similar problem we've found in the last TeeChart ActiveX versions.

Code: Select all

		m_ctrlChart.Create(_T("TeeChart.TChart"), WS_CHILD | WS_VISIBLE, rect, this, IDC_GRAPH_CTRL);
		m_ctrlChart.GetAspect().GetGDIPlus().SetActive(false);
Note you'll have to add teegdiplus.hpp from the TeeFiles folder to the "Header Files", and teegdiplus.cpp from the TeeFiles folder to the "Source Files".
And you'll also have to add the corresponding include at the top of the SNPSChartDemoView.cpp:

Code: Select all

#include "TeeGDIPlus.h"
After doing this in the dummy project, the application has been running for hours in a machine without errors.
SNPSUSER wrote:As discussed, looking forward to a positive update by Friday, 24th Feb 2017.
We'll continue trying to reproduce the problem. But I'm afraid we can't guarantee we can provide a positive answer.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SNPSUSER
Newbie
Newbie
Posts: 12
Joined: Thu Sep 08, 2016 12:00 am

Re: Crash on Unload

Post by SNPSUSER » Thu Feb 23, 2017 11:09 am

Hi Yeray,

We tried the suggestions, but it does not resolve the crashes in our application.

We are hopeful to have a positive update from STEEMA on Friday, 24th Feb 2017.

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Crash on Unload

Post by Yeray » Thu Feb 23, 2017 1:04 pm

Hello again,

After another few hours failing trying to reproduce the problem with the dummy application, we invite you to a reverse remote session. You could control one of our machines to try to reproduce the problem with your dummy application, and we can attach it to our TeeChart sources so we hope to catch the root of the problem.

If you want to try that, just send me a new session code given by https://www.fixme.it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SNPSUSER
Newbie
Newbie
Posts: 12
Joined: Thu Sep 08, 2016 12:00 am

Re: Crash on Unload

Post by SNPSUSER » Tue Feb 28, 2017 8:26 am

Hi Yeray,

Received your below e-mail:
=========================================
Hello,

We've been trying to reproduce the problem consistently, still without success.
If a condition for the error to appear is to have no charts loaded (after showing a chart), a workaround could consist on having a dummy chart always loaded, hidden behind a panel for example.
=========================================

Thanks for the suggestion. We would like to update you that in the last week we have tested our software with exactly this solution.
We have been able to handle the crashes after this change, which were seen earlier on every count, due to unloading of the steema library.
The testing of this solution is still under process/review, since it needs to be validated at our customer sites too.

As we understand that steema is not able to reproduce this crash, and thus not able to fix the issue, so for now we can consider this issue closed from our side.
But, we would like steema to consider observing/analyzing and fixing these crashes from your side, and provide us with any updates you may have.

Thanking you for all your support.
-SNPSUSER

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Crash on Unload

Post by Yeray » Tue Feb 28, 2017 11:54 am

Hello,

We are glad to hear that workaround could give you an acceptable solution to the problem.
Of course, we'll investigate a fix for the problem if we ever find how to reproduce the problem consistently.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply