Bug 6868

PBSHR crash in runtime on dw.DataObject 26 May, 2022

Michal Kulakovsky
30 June, 2021
Product: PowerBuilder Category: Runtime
Version: 2019 R3 Build: All
Classification: Enhancement Publishing: Public
Priority: P3
Status: Closed Reason: RECORDED AS ENHANCEMENT
Appeon Product 23 May, 2022
#6
Hi Michal,

Thank you for submitting the ticket.  


We now acknowledge this ticket to be an enhancement request and will record and track it internally in our enhancement management system. At the same time, we are closing the ticket here because this support system is for handling standard support services but not for maintaining enhancement requests.  

Please note that despite its "Closed" status, you are welcome to come back here and leave further comments or query the relevant development progress on this ticket.  


Thanks,

Julie
Mark Lee @Appeon 30 June, 2021
#5
Hi Michal,

Thanks for reporting this problem.
Chris is right. Currently, the length of the DWO names of PB is limited to 40 characters and it is suggested you have it to up to 32 characters.

You can refer to the following link for details.
https://docs.appeon.com/pb2019r3/powerscript_reference/ch01s01s02.html 
There are also other customers reporting such an issue and we recorded them as an enhancement request.
 
BTW, I tried according to your descriptions but can't reproduce this issue under PB IDE or Runtime in my small test case. Thus could you please provide a sample reproducible test case (including the PBT/PBL) for us to replicate it on our side? Or does this issue only happen on your big application?

Regards,
Mark Lee
Michal Kulakovsky 30 June, 2021
#4
Hi Chris,
it is good to know it. I didn't mention this problem on support or forums. 
It's no problem for me to limit dwo name to 32 character, 
but I  appreciate some kind of warning in compilation or limit length name while creating new datawindow.
Suprisingly it makes GPF occasionaly and only in Runtime. That's why we found this problem after almost year from coding.
Chris Pollach @Appeon 30 June, 2021
#3
Hi Michal;

  I do remember seeing a Support Ticket way back in the early days of Appeon PB 2017 about this DWO name length restriction carried over from PB 12.6. However, that was never addressed and is even still in the latest PB version 2021. So I will now mark this ticket as an enhancement request and forward it on to the main Support / Engineering team.

  As a workaround for now, please try and keep your DWO names to a maximum of 32 characters.

Regards ... Chris
Chris Pollach @Appeon 30 June, 2021
#2
Hi Michal;

  Sybase started a longer name length initiative starting way back in the PB 10/11.x versions of PowerBuilder. However, they never completed this for the DataWindow object. This object class is still restricted to 32 characters. This is the restriction we inherited from SAP when we took over PB from them in version 12.6. Which was the baseline code we used to build upon for the 1st Appeon PB release 2017. Unfortunately, that name length restriction is still in the DWO's runtime code.

Regards ... Chris
Michal Kulakovsky 30 June, 2021
#1
I made more investigation. Datawindow is Composite DW and problem is with its child datawindows,
when their name length exceed 39 or 40 chars
Michal Kulakovsky 30 June, 2021
*Phenomenon:
Crash on this line in RT - dw is Datawindow control in modal window ...

dw.DataObject = "rep_pro_slevove_darkove_poukazy_pouziti"

*Reproduce Steps:
When I run application and run firstly window with this code .....
PBSHR crash, after runing other windows, this code didn't crash,
when I rename Datawindow to shorter name everything works well.
Probably some memory allocation problem. 
When this code is running from IDE (developing) - no crash ......


Remarks:
 PB190.EXE 
   19.2.0.2703 
   6065b6d0 
   PBSHR.dll 
   19.2.0.2703 
   6065b690 
   4000001f 
   001451e0 
   327c 
   01d76d850e4387d5 
   C:\Program Files (x86)\Appeon\PowerBuilder 19.0\PB190.EXE 
   C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 19.2.0.2703\PBSHR.dll 
   7acea25a-e57e-4953-9341-ada7ca36f8ac 

 5f1452da 
   PBSHR190.dll 
   19.1.0.2353 
   5f1452de 
   c0000005 
   0012ed31 
   3c7c 
   01d76d85162746f2 
   C:\Program Files (x86)\OVEx\Tickets\otc.exe 
   C:\Program Files (x86)\OVEx\Tickets\PBSHR190.dll 
   c2a05574-2979-426e-8504-1fee49bc3d4a
OS:
Windows 10
Platform:
64-bit
Database Type:
PostgreSQL
Database Version: