Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - PhAB crashes on importing Photon 1.13 project/widget: (8 Items)
   
PhAB crashes on importing Photon 1.13 project/widget  
Porting a legacy application from QNX4 to QNX6, this particular dialog casuses a crash when I try to open it. In the 
full project I can build the whole thing and run it, but any access to that screen crashes the app.

Help to workaround this problem would be appreciated...
Attachment: Compressed file service-wgt.tar 219.5 KB
Re: PhAB crashes on importing Photon 1.13 project/widget  
It's a PtBitmap that doesn't comes across to QNX6.4.1 for some reason:

PtBitmap
2
ServVortexLamp
1005
dim
150,15
1006
flag
256,1334445470
1007
pos
276,169
20001
bitmap
1
0x0
285
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@
crgb
0x606060
20006
bitmap
5
0xe07ffe
0xffff
0xff
0x827ffe
0xffff00
287
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<^@^@^Aà^@^@^O^@^@^@?^@^@^@^@^@^@^@^^^@^@^@ð^@^@^G.^@^@^O.^@^@^@^@^@^@^O^@
^@^@x^@^@^CÀ^@
data
29
0

I suppose I will just have to redraw it rather than messing about trying to get it across..
Re: PhAB crashes on importing Photon 1.13 project/widget  
Hi,

you might try running your .wgt* file through the attached utility that I built a while ago to convert PtBitmap 
resources.

It helped me converting a number of projects, still no guarantees are given, so better have a backup copy available...

Cheers,
- Thomas
Attachment: Compressed file PtBitmap.zip 5.94 KB
Re: PhAB crashes on importing Photon 1.13 project/widget  
Thanks - it converts the widget without complaining, but that particular PtBitmap is not converted prroperly (the "set" 
image is lost).

RE: PhAB crashes on importing Photon 1.13 project/widget  
Have you tried this on 650?

-----Original Message-----
From: Alex Cellarius [mailto:community-noreply@qnx.com] 
Sent: Monday, July 05, 2010 12:38 PM
To: photon-graphics
Subject: Re: PhAB crashes on importing Photon 1.13 project/widget

Thanks - it converts the widget without complaining, but that particular
PtBitmap is not converted prroperly (the "set" image is lost).





_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post58514
Re: RE: PhAB crashes on importing Photon 1.13 project/widget  
No. For now, I recreated a a new bitmap using the pixmap editor. It appears that the new PtBitmap doesn't have an set/
arm property, which may be part of the problem?

Also the pixmap editor needs some work to make is a little friendlier :)
E.g. pressing Esc will promptly and without warning discard all your new carefully and lovingly created artwork. 
Pressing "Apply" doesn't save the work in progress, which I found counter intuitive. (ie if you press apply and then Esc
, the changes "applied" are discarded too).
RE: PhAB crashes on importing Photon 1.13 project/widget  
What version was is originally created with?

-----Original Message-----
From: Alex Cellarius [mailto:community-noreply@qnx.com] 
Sent: Monday, July 05, 2010 3:39 AM
To: photon-graphics
Subject: Re: PhAB crashes on importing Photon 1.13 project/widget

It's a PtBitmap that doesn't comes across to QNX6.4.1 for some reason:

PtBitmap
2
ServVortexLamp
1005
dim
150,15
1006
flag
256,1334445470
1007
pos
276,169
20001
bitmap
1
0x0
285
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@
crgb
0x606060
20006
bitmap
5
0xe07ffe
0xffff
0xff
0x827ffe
0xffff00
287
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<^@^@^Aà^@^@^O^@^@^@?^@^@^@^@^@^@^@^^^@^@^@ð^@^@^G.^@^@^O.^@^@^@^@^@^@^O^@
^@^@x^@^@^CÀ^@
data
29
0

I suppose I will just have to redraw it rather than messing about trying to get it across..



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post58401
Re: RE: PhAB crashes on importing Photon 1.13 project/widget  
It was done with 1.13, if I look inside the original .wgtw file. This is a legacy application I'm helping a customer 
convert to version 6.4.1 of the OS.

BTW I messed with the size of the image in that previous post, the 287 should be 285. The data portion of the widget 
(Pt_ARG_SET_BITMAP_DATA) is 1425 bytes long, which I suppose works out to 5 layers at 285 bytes ea = 1425.