PhAB: Unknown widget class '1004'

I have fine working PhAB project. I Add few widgets, etc (2 hours
work). Additions go fine, but behaviour of application is not just
what I expect, like some relized-callbacks missing. I close PhAB,
reboot.

After it, opening project fails with dialog:
Can’t load application
Unknown widget class ‘1004’.
Terminating …

Done this twice. Can it be there is some limit for size of PhAB file?
abapp.dfn is 128051 bytes.

Running QNX 4.25D, phrt & phtk 1.14 A


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

M. Tavasti <tavastixx@iki.fi.invalid> wrote:

I have fine working PhAB project. I Add few widgets, etc (2 hours
work). Additions go fine, but behaviour of application is not just
what I expect, like some relized-callbacks missing. I close PhAB,
reboot.

Did you do a proper shutdown, or did you perhaps just push the red button?

After it, opening project fails with dialog:
Can’t load application
Unknown widget class ‘1004’.
Terminating …

This means that one of your *.wgt? files is corrupted.

\

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

Wojtek Lerch <wojtek@qnx.com> writes:

Did you do a proper shutdown, or did you perhaps just push the red button?

Yes, proper shutdown. Too lazy to walk to computer room, shutdown is
easier. (Running QNX with Phinx to diskless linux WS)

Unknown widget class ‘1004’.
This means that one of your *.wgt? files is corrupted.

And I can repeat this, with plain PhAB actions. Without rebooting,
just do changes, save, exit PhAB, and try to re-open. Fine.
This reminds me from times I had to work with M$-products. :frowning:


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

M. Tavasti <tavastixx@iki.fi.invalid> wrote:

Unknown widget class ‘1004’.
This means that one of your *.wgt? files is corrupted.

And I can repeat this, with plain PhAB actions. Without rebooting,
just do changes, save, exit PhAB, and try to re-open. Fine.

Could you perhaps teach me how to repeat it?

It sure sounds like a bug in PhAB, and it would be good to fix it…

This reminds me from times I had to work with M$-products. > :frowning:

But did you ever manage to get a response similar to the above from
them? :slight_smile:


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

Hi.
Try this:

Go to your home directory, then to directory “.abcfg”
find file with name something like that “clipboard” (dont remember
exactly) and erase it.
Should work.

This is phab clipboard file and sometimes it becomes corrupted :frowning:

This is bug…or feature :slight_smile: I dont know.


“M. Tavasti” <tavastixx@iki.fi.invalid> ???/??? ? ???
???: news:m2d7a9t2a6.fsf@akvavitix.vuovasti.com

I have fine working PhAB project. I Add few widgets, etc (2 hours
work). Additions go fine, but behaviour of application is not just
what I expect, like some relized-callbacks missing. I close PhAB,
reboot.

After it, opening project fails with dialog:
Can’t load application
Unknown widget class ‘1004’.
Terminating …

Done this twice. Can it be there is some limit for size of PhAB file?
abapp.dfn is 128051 bytes.

Running QNX 4.25D, phrt & phtk 1.14 A


M. Tavasti / > tavastixx@iki.fi > / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

Wojtek Lerch <wojtek@qnx.com> writes:

And I can repeat this, with plain PhAB actions. Without rebooting,
just do changes, save, exit PhAB, and try to re-open. Fine.
Could you perhaps teach me how to repeat it?

It sure sounds like a bug in PhAB, and it would be good to fix it…

Yes, I’ve done a bug report, and I’m happy to provide more info.
Can I send you the files? I have corrupted file, and working one.

Set of operations done is quite much (2 hours work) , and don’t know
which of them is bad one. Or is it related to file size or something.
I try to find minimal set of changes.

You can contact me with removing both x-letters and .invalid from my
e-mail.

This reminds me from times I had to work with M$-products. > :frowning:
But did you ever manage to get a response similar to the above from
them? > :slight_smile:

Never! Sometimes they know how to avoid bug, most of the time
not. Maybe because they have too many of bugs to avoid…


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

M. Tavasti <tavastixx@iki.fi.invalid> wrote:

Wojtek Lerch <> wojtek@qnx.com> > writes:

And I can repeat this, with plain PhAB actions. Without rebooting,
just do changes, save, exit PhAB, and try to re-open. Fine.
Could you perhaps teach me how to repeat it?

It sure sounds like a bug in PhAB, and it would be good to fix it…

Yes, I’ve done a bug report, and I’m happy to provide more info.
Can I send you the files? I have corrupted file, and working one.

What would be perfect is if you could do the following:

If your application has many modules, identify the one that’s
broken. You can do it by opening a new project in PhAB and
importing modules from the broken project until you hit the one that
has the problem.

Take the working version of your project, and import the module that
gets corrupted into another new PhAB project. Save one copy of this
project, and experiment with another one.

Hopefully, you will now be able to find a way to make PhAB corrupt
the file. When you do, send me the working version of the project
and a description of how to break it. Just email it to
wojtek@qnx.com.

Set of operations done is quite much (2 hours work) , and don’t know
which of them is bad one. Or is it related to file size or something.

While working on the app, save the app every five minutes or so. Use
the “Save As” option to alternate between two different names, and try
to re-open the app each time after saving. This way when the re-open
fails, you will have the previous unbroken version intact.


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

Wojtek Lerch <wojtek@qnx.com> writes:

What would be perfect is if you could do the following:

I’ve already found out what’s breaking everything:

  • I take existing PtList widget, move it and make it smaller. List is
    having items also set (to see in devel what it looks like.)

And this is what ai have in wgtd before:

PtList
2
ShiftSelList
1005
dim
220,174
1007
pos
136,118
23003
font
helv18b
23001
list
KOODI 1
KOODI 2
KOODI 3
KOODI 4
KOODI 5
KOODI 6
KOODI 7
KOODI 8
KOODI


after:

PtList
2
ShiftSelList
1005
dim
220,174
1007
pos
156,32
23003
font
helv18b
23001
list
KOODI 1
KOODI 2
KOODI 3
KOODI 4
KOODI 5
KOODI 6
KOODI 7
KOODI 8
KOODI
KOODI
< several hundred lines of KOODI removed>
KOODI

0

And with this I get error “unknown widget class ‘0’”


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

M. Tavasti <tavastixx@iki.fi.invalid> wrote:

Wojtek Lerch <> wojtek@qnx.com> > writes:

What would be perfect is if you could do the following:

I’ve already found out what’s breaking everything:

  • I take existing PtList widget, move it and make it smaller. List is
    having items also set (to see in devel what it looks like.)

There must be more to it than that. I have moved and resized list
widgets a lot, but I’ve never had the problem you’re describing.

And this is what ai have in wgtd before:

This is not enough for me to reproduce your problem. I need a complete
file that I could load into PhAB.


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

Wojtek Lerch <wojtek@qnx.com> writes:

  • I take existing PtList widget, move it and make it smaller. List is
    having items also set (to see in devel what it looks like.)
    There must be more to it than that. I have moved and resized list
    widgets a lot, but I’ve never had the problem you’re describing.

Yes, there seems to be more. With my current version it’s not
happening anymore, strange. I’ll have to get old version from
backup. I’ll email you when I get breakable version…


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

M. Tavasti <tavastixx@iki.fi.invalid> wrote:

Wojtek Lerch <> wojtek@qnx.com> > writes:

  • I take existing PtList widget, move it and make it smaller. List is
    having items also set (to see in devel what it looks like.)
    There must be more to it than that. I have moved and resized list
    widgets a lot, but I’ve never had the problem you’re describing.

Yes, there seems to be more. With my current version it’s not
happening anymore, strange. I’ll have to get old version from
backup. I’ll email you when I get breakable version…

As it turned out, the problem with your list widget was that it had 1000
items in it. PhAB is supposed to handle up to 1000 items, but it
appears that the code to handle exactly 1000 items is broken. If you
never actually reach the maximum, everything should be fine.


\

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

Wojtek Lerch <wojtek@qnx.com> wrote:

As it turned out, the problem with your list widget was that it had 1000
items in it. PhAB is supposed to handle up to 1000 items, but it
appears that the code to handle exactly 1000 items is broken. If you
never actually reach the maximum, everything should be fine.

… and then it turned out that the list didn’t really have 1000 items
but the file that we thought was OK was corrupted in a such a way that
fooled PhAB into thinking that there were 1000 items in there. Finding
out why the file was corrupted in the first place requires further
investigation…


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.