PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GapiDraw 3.01 RC1 Bugs

Where is the best place to submit GapiDraw 3.01 bugs?

In RC1, the PtInRect function returns incorrect results for points on the right and bottom edges of the rectangle. See the API documentation here:

http://msdn.microsoft.com/library/defau ... l_1mcz.asp
http://www.palmos.com/dev/support/docs/ ... angle.html

If this group of Windows APIs are being mapped to equivalent Palm APIs, then many APIs may be affected as they are not compatible. IIRC, Palm treats points mathematically as being infinitely small, whereas Windows treats them as being more like pixels with size.

You'll also want to ensure more subtle aspects of the APIs are correct, such as what happens when empty rectangles are used, or the result of a failed rectangle intersection.
On Palm devices, BETA2 seems to disable auto power off. On most devices, it simply has no effect. On Zire 72, it hangs the device requiring a soft reset.
Hi Marc,

I changed the topic to "3.01 RC1" bugs since it is more appropriate.

In RC1, the PtInRect function returns incorrect results for points on the right and bottom edges of the rectangle.


We do not use the system ::PtInRect, but instead use our own CRect::PtInRect function in GapiDraw, one of the reasons being that we need a cross-platform way of doing this. You will find our PtInRect in the GapiDrawExtension.h file. So I'm not really sure how this is a bug with GapiDraw.

On Palm devices, BETA2 seems to disable auto power off.


We have identified this as a message we did not handle in GapiApplication.cpp. We have updated the application framework in the (what is hopefully) final release. I'll send it to you immediately for test.

//Johan
What is the official channel for submitting bugs? Is it this forum?

Johan wrote:Hi Marc,

I changed the topic to "3.01 RC1" bugs since it is more appropriate.


OK.


In RC1, the PtInRect function returns incorrect results for points on the right and bottom edges of the rectangle.


We do not use the system ::PtInRect, but instead use our own CRect::PtInRect function in GapiDraw, one of the reasons being that we need a cross-platform way of doing this. You will find our PtInRect in the GapiDrawExtension.h file. So I'm not really sure how this is a bug with GapiDraw.


I see that function is correctly implemented.

There is another PtInRect standalone function defined in GapiDrawDefines.h, that is the one that is incorrect, according to the Win32 Rectangle API.


On Palm devices, BETA2 seems to disable auto power off.


We have identified this as a message we did not handle in GapiApplication.cpp. We have updated the application framework in the (what is hopefully) final release. I'll send it to you immediately for test.


OK, I'll try it when I get it.
There is another PtInRect standalone function defined in GapiDrawDefines.h, that is the one that is incorrect, according to the Win32 Rectangle API.


Thanks for pointing this one out! We used this function for Palm's internal blitting routines which are used in some cases, and we do not use it anywhere else in GapiDraw. But we will remove it in the final release to prevent anyone from using it...
But we use it...

Can't you just change the right/bottom <= to < to make it correct?
mlepage wrote:But we use it...

Can't you just change the right/bottom <= to < to make it correct?


Develant did exactly this, thanks!
I have another bug.

Using VFS, if I attempt CGapiFileBuffer::Open on a 200KB file, the application just crashes instantly on Tungsten E.

If I try a smaller file (e.g. 42KB) in the same archive, it's fine. 80KB crashes. I'm guessing it's a 64KB barrier.

I did confirm that I have all the resource fragments included. Can you test this on your end?
mlepage wrote:I have another bug.

Using VFS, if I attempt CGapiFileBuffer::Open on a 200KB file, the application just crashes instantly on Tungsten E.

If I try a smaller file (e.g. 42KB) in the same archive, it's fine. 80KB crashes. I'm guessing it's a 64KB barrier.

I did confirm that I have all the resource fragments included. Can you test this on your end?


Johan/Mikael, did you guys ever take a look at this problem?

Is there a more official channel for submitting bugs?
Its vacation time right now but we'll be back in 2 weeks and dig into it then!
But I reported these bugs and asked these questions two months ago. 8O
This has been fixed in the latest release.
Is this "release" already out? Where can we get it?
The issues should have been fixed in 3.01b, released on June 12, which you received in an email. We weren't aware that the 3.01b update didn't correct this issue.

We have been working hard on the Tapwave release the past weeks, which we hope to have out quite soon (with some other cool new features as well). But bug fixes are our top priority, so please let us know if the issue still remains.
I reported that but at the end of May, so I'll assume it is fixed.

I can't verify because I worked around it by ensuring all files were small enough to fit, by manually splitting them myself.