Questions? Feedback?powered byOlark live chat software
Bug 2694

PBC runtime fails 24 May, 2019

Rolf Knaden
07 May, 2019
Product: PowerBuilder Category: IDE
Version: 2017 R3 Publishing: Public
Status: Scheduling Priority: P4
Classification: Appeon bug Resolution:
Ken Guo 24 May, 2019
Appeon Test Case - VersionInfo

Hi Rolf,

I tested locally, the issue you mentioned did not reproduce in either the PB IDE or the PBC. See the attachment for details.  
What’s the version number of PB 2017 you use? Can you reproduce this issue on other machines?

Regards,
Ken
Rolf Knaden 23 May, 2019
20190523-Screenshots.zip (35KB)

Hi Ken,
I don't think any longer it's a problem of PBC only, but also of the IDE.
Attached you see screenshots where I created the exe with the IDE. And it reveals the same problem. "Dateibeschreibung", "Dateiversion" and "Produktname" are missing.
Regards.
Rolf
Ken Guo 23 May, 2019
PBC Parameters

Hi Rolf,

Please refer to the attached screenshot, first configure Version Tab in Project, then copy the PBC runtime parameters to pbc170.exe and run it.

Regards,
Ken
Rolf Knaden 22 May, 2019
Screenshots.zip (44KB)

Hi Ken. Hi Chris.
Yet another problem with the autocompiler.
I installed it on our build-server and it does not recognize the parameters "/vn" and "/fvn". 
As Info: On the build-server nothing concerning PB but that autocompiler is installed!

If I do this on my development-machine, it works.
But: I realized, that there is data missing in the detail-tab of the exe. See the attached files.
What's that about?

Regards.
Rolf
Ken Guo 22 May, 2019
Hi Rolf,

Yes, you must specify the resources.pbr in the commandline.
Because pbc can support the setting of only one pbr file in exe file, while it can’t support the setting of pbr file in PBD files , which is different from PB IDE. 
For details, you can check from the following document:
C:\Program Files (x86)\Appeon\PowerBuilder 17.0\AutoCompiler\pbc.pdf

Regards,
Ken
Chris Pollach 21 May, 2019
Hi Rolf / Ken;

  FWIW: I reproduced the missing PBR issue on the PBC compile settings from a PB Project on PB2017R3 build 1880 and PB2019 build 2076.

Regards ... Chris
Rolf Knaden 21 May, 2019
Hi Ken,
in the meantime, I realised, what the problem concerning the resources is.
I had expected that all PBD and resource determinations were taken from the project, as it is when using the IDE.
But when using the pbc170.exe you must specify the resources.pbr in the commandline. Is that right?
Doing that, it works also with our application.
Regards.
Rolf
Ken Guo 21 May, 2019
Appeon Test Case

Hi Rolf,

Regarding the PBR issue, sorry I can’t reproduce it.
Attachment is a small case I made, please run it and see if there is a problem. 
If you can run my case without any problems, please provide us a reproducible case to analyze.

Regards,
Ken
Rolf Knaden 20 May, 2019
ApplicationLayout.zip (106KB)

Hi Ken,
yet another problem to solve.
I now renamed the rscbuisy.pbl to resources.pbl and am able to build an exe with pbc170.exe.
But when doing so, none of our resources is put into that resources.pbd. I even removed resources.pbl from the libraylist and attached the resource-file directly to to exe. No change in output. The bitmaps and all other stuff from the resources is not there. You can see it in the attached screenshots.
Best regards.
Rolf
Ken Guo 20 May, 2019
Hi Rolf,

Thanks for providing the case!
We reproduced it on our end and will do further research to figure it out. We will keep you posted about the progress.

The issue is caused when there is an application object name included in other pbl’s name, and the pbl’s name is ended with the application object name. 

Thus, in the current case, you can work around it via modifying ‘rscbuisy.pbl’ to ‘rscbuisy1.pbl’.

Regards,
Ken
Rolf Knaden 20 May, 2019
Testapp.zip (15KB)

Hi Ken,
I had a guess and finally managed to build a small test application that shows the error. You find that and a log-file attached.
And I can already give you a hint, where to search. 
We use a pbl/pbd for our resources (rscbuisy.pbl and rscbuisy.pbr). If you remove that pbl from the library list, the application buisy is found during compilation.

What amazes me, however, is that renaming the application object in this test app does not work. The error occurs anyway.

Best regards.
Rolf
Rolf Knaden 14 May, 2019
Hi Ken,
I absolutely understand that. The renaming will do for us at the moment.
Thank you very much.
Best regards.
Rolf
Ken Guo 14 May, 2019
Hi Rolf,

I have tried so many times but still can’t reproduce the issue.
I hope you can understand that we can’t further analyze this issue unless we can reproduce it on our side.
Currently, I suggest you change the app name to work it around.

Regards,
Ken
Rolf Knaden 13 May, 2019
Hi Ken,
sorry. But I can't provide such a case, as I can't tell, which of our 4.000 objects in 30 pbls causes this effect.
Regards,
Rolf
Ken Guo 09 May, 2019
Hi Rolf,

I created a small case locally, the PBT, PBL, App Name and exe name are the same and then ran PBC but I can’t reproduce this issue.
I also tried modifying Code Examples so that PBT, PBL, App Name and exe name are the same but still can’t reproduce this issue.

Thus, I suspect that this issue is caused by other reasons. Could you please provide a case that can reproduce this issue for us to further analysis?

Regards,
Ken
Chris Pollach 07 May, 2019
Support ... FYI:  https://community.appeon.com/index.php/qna/q-a/pbc-runtime-fails
Chris Pollach 07 May, 2019
Hi Rolf;

  Thank you for opening this support ticket!

  I did see your post about this on the Appeon Community website and did recommend using a different name for the App, project, exe, etc. As you responded later on the Community Forum, changing the App Name did finally allow the PBC to build the EXE successfully.

  So this problem is actually a case where the PBC does not perform properly when the same names are used throughout the PBC compilation parameters. I will now transfer this issue over to the main Support/Engineering team for theirs review & recommendations for a formal fix.

Regards ... Chris
Rolf Knaden 07 May, 2019
Unbenannt4.PNG (6KB)

*Phenomenon:
I try to use the Powerbuilder Compiler pbc170.exe to build my exe.
Find attached the parameters I am using.
When starting it is working some time and creates the pbd-files. But at the end there is always the message
	Application 'buisy' not found in library
But definitly there is an application buisy in my library.

*Reproduce Steps:
The problem seems to be, that our application (buisy) is located in a pbl with the same name (buisy.pbl) and we have a target called buisy.pbt. Please look into the thread "PBC runtime fails" in Appeon Community.
So create an application where the you have the application located in a pbl of the same name.

Remarks:
I made a test and renamed the application to buisy_ap. Then it works.
OS:
Windows 10 
Platform:
64-bit 
Database Type:
 
Database Version: