Bug 7328

Event Viewer shows APPCRASH when running Powerclient Application from shortcut or exe 14 October, 2021

Daryl Foster
03 October, 2021
Product: PowerBuilder Category: PowerClient
Version: 2021 Build: 1288
Classification: Issue Publishing: Public
Priority: P3
Status: Analyzing Reason:
Communication Status: Waiting for Customer
Kai Zhao @Appeon 14 October, 2021
#14
Hi Daryl,

Thanks for providing the dump file. Unfortunately, the information in the dump file didn’t help find the root cause. Please provide a virtual machine to reproduce the issue for us for more study, thanks.

Regards,
ZhaoKai
Daryl Foster 13 October, 2021
#13
CrashDump.txt (7KB)

Hi ZhaoKai,

I've attached a crashdump of the appcrash, which hopefully makes some sense to you. The appcrash seems to happen just after the exe starts the new process for CloudAppLauncher.exe.  Does the below line in the crash dump mean anything to you, or can you suggest something else I can do to try and narrow down the cause.  It seems to come from a function called StopJaguarDebug in pbvm.dll:

SYMBOL_NAME:  pbvm!FN_StopJaguarDebug+11fa
MODULE_NAME: pbvm
IMAGE_NAME:  pbvm.dll
STACK_COMMAND:  .cxr 0x939ca8 ; kb
FAILURE_BUCKET_ID:  FATAL_APP_EXIT_40000015_pbvm.dll!FN_StopJaguarDebug
OS_VERSION:  10.0.19041.1
BUILDLAB_STR:  vb_release
OSPLATFORM_TYPE:  x86
OSNAME:  Windows 10
FAILURE_ID_HASH:  {90620df3-b74e-de9a-264d-e52df6858694}
Kai Zhao @Appeon 13 October, 2021
#12
Hi Daryl,

Thanks for your feedback. We will wait for your update.

Regards,
ZhaoKai
Daryl Foster 12 October, 2021
#11
Thanks ZhaoKai,

We aren't using any special security software that I can tell.  I tried to run my test PowerClient app in Windows Sandbox and it didn't get the appcrash, so I'll try and do some more investigations to see if I can determine what it is. If I can't I'll try to get a VM for you so that you can see the error.

Regards,

Daryl.
Kai Zhao @Appeon 10 October, 2021
#10
Hi Daryl,

Thanks for providing the case. But I did not reproduce the issue on our end with it. This could be caused by the security software, please try turning off the
security software.

And please provide a virtual machine to reproduce the issue to us for more study, thanks.


Regards,
ZhaoKai
Daryl Foster 10 October, 2021
#9
AppCrashTest Sample Application and Screen Shots.zip (114KB)

Thanks ZhaoKai, It seems to do it with every PowerClient application I deploy, and it does it on at least 3 different user's machines as well as my own.  It did it with our main application which is quite complex, so to rule out an issue with that, I've created the most basic PowerClient application that I could just to test it again. I've attached that to this request. The application is called AppCrashTest.

To reproduce, I deploy and install a PowerClient application on my machine from localhost, then once it is installed I can reproduce it every time I run the application from the shortcut.  The application runs fine (it doesn't do anything) and it closes fine, but when I look in Event Viewer I can see that there has been an AppCrash that I didn't notice.

I can see that it is happening on startup and not on close when I have event viewer open at the time I open the application.  If I have event viewer open, as soon as I click on the shortcut and the application starts, Event Viewer shows "New events available". I can refresh Event Viewer and see the app crash while the application is still running. If I close the application, no new events are added to Event Viewer.

I've attached my simple program, and some screen shots of Event Viewer, before, during and after running the application from the shortcut.

All the PCs running this are on Windows 10. I've done this test application in Powerbuilder 2021, Build 1288.  The CloudAppShell.exe version is 21.0.0.1288, but I'm pretty sure I had the same issue when I used the version from PB 2019R3.
Kai Zhao @Appeon 08 October, 2021
#8
Hi Daryl,

Sorry that I did not reproduce the issue on (or before) application startup. Please provide information below to us for more study, thanks.

1 Does other applications have same issue.
2 Does other machines have same issue.
3 The OS version.
4 A simple PB case and the detailed steps to reproduce the issue.

Regards,
ZhaoKai
Kai Zhao @Appeon 08 October, 2021
#7
Hi Chris,

Thanks for your testcase, I reproduce the issue after the PC App has successfully closed OK.

We will do further research to figure it out and will keep you posted about the progress. 

Regards,
ZhaoKai
Ken Guo @Appeon 04 October, 2021
#6
Hi Chris,

Thanks for your testcase, we will analyze it.

Regards,
Ken
Ken Guo @Appeon 04 October, 2021
#5
Hi Chris,

Thanks for your testcase, we will analyze it.

Regards,
Ken
Daryl Foster 04 October, 2021
#4
Thanks Chris,

I just want to clarify that I see the appcrash on (or before) application startup, not on close. It looks like the appcrash is written to the event viewer when the "Starting Application" window with progress bar is still being displayed.  The application still starts and runs correctly though.  It looks like it's something to do with the interaction between the exe and CloudAppShell when loading a Powerclient application.

Regards,

Daryl
Chris Pollach @Appeon 04 October, 2021
#3
Hi Ken;

  I am seeing the same thing on my PC Apps as well (See Attached). The Apps seem to work OK but this crash is recorded after the PC App has successfully closed OK.  The Apps I am using are ones created by the STD Framework. You are most welcome to use them as a test case ... 
http://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry

Very strange.

HTH
Regards ... Chris
Chris Pollach @Appeon 04 October, 2021
#2
Test Case (By Chris)
Ken Guo @Appeon 03 October, 2021
#1
Hi Daryl,

Thanks for your feedback.
I'm working on analyzing your case. I will keep you posted of the results here.

Regards,
Ken
Daryl Foster 03 October, 2021
When running an installed Powerclient application from the shortcut, or by directly running the exe, the application starts, runs and ends ok, but if you check event viewer an APPCRASH error and warning is generated when the application starts (Windows Events 1000 and 1001).

Event viewer doesn't show the errors when the application is started with CloudAppShell.exe

To reproduce, run an installed Powerclient application (from the shortcut or directly from the exe) and check event viewer while it is running

e.g.  PowerClientTest.exe

Repeat that test when launching the application with CloudAppShell.exe

e.g. CloudAppShell.exe cloudapp://http://localhost/PowerclientTest/
OS:
Windows 10
Platform:
All
Database Type:
Database Version: