1. Thierry Del Fiore
  2. PowerBuilder
  3. Thursday, 4 January 2024 15:08 PM UTC

Hi,

We have an App in PB2022R2.

The App can be launched several times.

This is usefull when a long process is executed in the APP, the user used to work in a second instance of the same executable while waiting the end of process in exe 1.

Since PB2022R2 migration, we have a strange behaviour : 

The GUI of the second executable is also freezed while the process on executable 1 is still running. 

The Exe 2 becomes available again when the process on exe 1 is ended.

It's not linked to resources available on the PC since it's working if exe 1 and exe 2 are in different folders.

The problem is when exe 1 and exe 2 are the same program, like PB is locking something.

problem appears since PB2022R2 migration.

Any suggestions ? is it a bug ?

Best regards

Thierry

 

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Thursday, 14 March 2024 06:47 AM UTC
  2. PowerBuilder
  3. # 1

Does this problem persists, even if we don't use web browser control?

Need to know as we have planned to go-live a project developed / migrated in PB 2022 R3.  Many users do open multiple instances of the same exe in the machine, where performance should be good.

We don't use Webbrowser control in that project so far, but planning to go for that in a couple of months.

Happiness Always
BKR Sivaprakash

 

Comment
There are no comments made yet.
Eduardo G. Accepted Answer Pending Moderation
  1. Tuesday, 5 March 2024 09:48 AM UTC
  2. PowerBuilder
  3. # 2

We have the same problem in my company that you detail: @Thierry Del Fiore

The user runs 2 times the same application to perform different work actions that do not overlap each other. Now with the executable made in PB 2023 R3 Build 3289 while in the 1st instance of the application runs a process the 2nd instance of the application is blocked, no action can be performed.

We restore a backup copy of the executable generated with PB 2022 Build 1892 and this way of working works perfectly without blocking.

This seems to be a bug with this new version of PB

Does anyone know a way to fix it?

Everything stated here by different users I have checked and we continue with the problem.

Thanks for your help.

 

Comment
  1. Kai Zhao @Appeon
  2. Wednesday, 6 March 2024 00:48 AM UTC
The problem may be related to sharing the UserDataFolder of Webbrowser(WebView2). Please refer to article below to solve the issue.

https://www.appeon.com/developers/get-help/knowledgebase/4553
  1. Helpful 1
  1. Thierry Del Fiore
  2. Monday, 11 March 2024 08:50 AM UTC
Hi Eduardo,



The "UserDataFolder" of Webbrowser is by exe.name and windows users.

The problem happens when same exe name is launched several times in the same user's session.



Since we cannot wait appeon to fix this problem we have developped our own workaround : Each time a user launch a session we create a new folder to store the Webbrowser files using WebbrowserSet("UserDataFolder", ls_path ). After several days, we delete all theses temps folders to restore disk storage.



Regards
  1. Helpful 1
  1. Sivaprakash BKR
  2. Wednesday, 13 March 2024 12:07 PM UTC
IS this problem persists, even if we don't use web browser control?
  1. Helpful
There are no comments made yet.
Eduardo G. Accepted Answer Pending Moderation
  1. Tuesday, 16 January 2024 14:40 PM UTC
  2. PowerBuilder
  3. # 3

For our part in my company we have just installed PB 2022 R3 and we have an application that runs nightly processes, we see that we are getting what is described here.

Specifically a process takes 15 minutes with the PB 2022 version, now with the PB 2022 R3 version it exceeds 3 hours, it does not finish and creates a ghost instance of the executable.

Does anyone have a solution or give me a hint to solve it?

Now we have the old executable and we are discarding the use of PB 2022 R3.

Best regards.

Comment
  1. mike S
  2. Tuesday, 16 January 2024 16:51 PM UTC
are you running multiple instances of your application? And is it using the WebBrowser Control?
  1. Helpful
  1. Eduardo G.
  2. Wednesday, 17 January 2024 06:59 AM UTC
We do not use multiple instances and we do not use WebBrowser.
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Sunday, 14 January 2024 16:27 PM UTC
  2. PowerBuilder
  3. # 4

following....

 

I checked the bug reporting site:  https://www.appeon.com/standardsupport/newbug

and i've seen nothing.  this is a pretty big issue for use of the webbrowser control.  I assume this problem still exists in R3?

Comment
  1. Ken Guo @Appeon
  2. Monday, 15 January 2024 03:15 AM UTC
Hi Mike,



The reason why it cannot be found in the Support Portal is because the bug is private.

Currently, this issue still exists in PB 2022 R3. We understand that it is a big problem for WebBrowser control, and we have submitted this issue to the development team for analysis again.



Regards,

Ken
  1. Helpful
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Friday, 5 January 2024 12:38 PM UTC
  2. PowerBuilder
  3. # 5

Hi Thierry,

Did this issue occur after you used WebBrowser Control in your application?
If yes, the issue is with sharing the UserDataFolder of Webbrowser(WebView2). This is a known issue and I suggest you work it around as follows:
Workaround 1:
If running exe in different directories, you can work it around by setting different UserDataFolder:
For example, set UserDataFolder in the Open event of the Application:
String ls_path
ls_path = GetCurrentDirectory( )
WebbrowserSet("UserDataFolder", ls_path )

Workaround2:
When you run the exe in the same directory, copy the exe and rename it to work around. Renaming the exe is also a way of implementing different UserDataFolder. By default, the Webbrowser sets Temp\{appname}+UDF as UserDataFolder.


Regards,
Ken

Comment
  1. Thierry Del Fiore
  2. Friday, 5 January 2024 14:05 PM UTC
HI Ken,



indeed after the migration PB2022R2 we have replaced our Web control with the new Webbrowser(WebView2).

Didn't know the existence of this "UserDataFolder".

Now, how can this be fixed ?

We have one folder and one exe.

We don't know how many sessions the user will open, so renaming the exe doesn't seem to be the solution (and it would be strange to have shortcut for exe1, exe2, ...).

Is there a way Appeon solves this lock ?

Regards
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 5 January 2024 18:28 PM UTC
Hi Thierry, Please open a support ticket so we can properly track this and make the improvement to the product. Thanks. https://www.appeon.com/standardsupport/newbug
  1. Helpful 1
  1. Thierry Del Fiore
  2. Monday, 15 January 2024 08:15 AM UTC
Hi Armeen,

Newbug form has been filled.

Regards
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 5 January 2024 12:32 PM UTC
  2. PowerBuilder
  3. # 6

You can use the taskmanager, resource monitor or processExplorer to check which process is blocking/locking your app or make your app for it to finish. For example, I've seen several times some kind of system printspooler causing problems in the past.

Sorry I can't be more specific, no time.

regards

 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 5 January 2024 12:30 PM UTC
  2. PowerBuilder
  3. # 7

Hi, Thierry -

What DBMS vendor, version, etc. are you using, and what are the transaction object’s properties?

I’m wondering if this is a MARS-related (Multiple Active Result Set) issue?

Best regards, John

Comment
There are no comments made yet.
Simone Olianti Accepted Answer Pending Moderation
  1. Friday, 5 January 2024 10:17 AM UTC
  2. PowerBuilder
  3. # 8

experienced same strange behaviour after migrating to PB2022 R2.
A client reported that launching a long process on an instance of my powerbuilder application and let it run, he opens a second instance of the same .EXE to do other stuff but it freezes until the first .EXE finishes its task. Never happened before. We resolved for now by tweaking the long process to make it finish quicker.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 4 January 2024 18:35 PM UTC
  2. PowerBuilder
  3. # 9

Hi Thierry;

  How is the 2nd instance of the App launched?
Regards .. Chris

Comment
  1. Thierry Del Fiore
  2. Friday, 5 January 2024 07:52 AM UTC
Hi @Chris ,



the second instance is launched manually just by double-clic on the shortcut exe on the Desktop.



The second app is already running, when the process on the first instance is started.



Regards
  1. Helpful 1
  1. David Peace (Powersoft)
  2. Tuesday, 5 March 2024 14:59 PM UTC
This is interesting, I wonder if it's to do withthe DB access layer and some shared resources. We have a client that has reported performance issues running in a terminal server environment, which it essence is the same thing. I would be interested in the outcome and what is causing it?
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.