PocketMatrix forums

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

PocketHAL Crashes my E310...

Hello Thierry!

Just downloaded the newest version of PocketHAL but it really doesn't like my Toshiba E310.
Display::Create() seems to end up in an infinite loop or something.
The screen freezes and only resetting the device will help.

Any ideas?

Couldn't link the x86-Emu version of PocketHAL either (i'm getting lots of linker errors with eVC 3.0)
xPeterx wrote:Hello Thierry!


Hello!

xPeterx wrote:Just downloaded the newest version of PocketHAL but it really doesn't like my Toshiba E310.
Display::Create() seems to end up in an infinite loop or something.
The screen freezes and only resetting the device will help.

Any ideas?


None so far. PocketHAL 0.6.5 is pretty stable. Perhaps you could post your code (or send it to me) so that I can take a look at it?

xPeterx wrote:Couldn't link the x86-Emu version of PocketHAL either (i'm getting lots of linker errors with eVC 3.0)


Are you compiling for the PPC2002 emulator? I am asking because the PPC2000 is not supported. Please post the errors so that I can decipher them?
Thierry wrote:
None so far. PocketHAL 0.6.5 is pretty stable. Perhaps you could post your code (or send it to me) so that I can take a look at it?


After playing around with my own code i tried to compile/run the Rotozoomer example by Gersen, but unfortunately it crashed my device the same way.

Thierry wrote:
Are you compiling for the PPC2002 emulator? I am asking because the PPC2000 is not supported. Please post the errors so that I can decipher them?


Excuse me, my fault. I thought PocketHAL also works with the PPC2000 emulator.

Regards, Peter
xPeterx wrote:After playing around with my own code i tried to compile/run the Rotozoomer example by Gersen, but unfortunately it crashed my device the same way.


PocketHAL 0.6.5 is known to work with the Toshiba 310. I've had someone else experience similar problems on an XDA 2 using Klimt + MFC + PocketHAL. Turned out to be a bug in Klimt.

Where can I get this rotozoom sample?

Have you tried a "minimal" app that simply clear the display?

Send stuff my way if you want help =)
Here goes the example code...

I wonder if there are different versions of the e310 out there?
Attachments:
example.zip (2 KB)
Well I can see a problem with this code: it's calling GetBackBuffer() and GetPixels() without checking if they are returning NULL. This will crash the app if it doesn't have focus (yet).

Is this where it crashes? Or is it on Display::Create()?
Thierry wrote:Well I can see a problem with this code: it's calling GetBackBuffer() and GetPixels() without checking if they are returning NULL. This will crash the app if it doesn't have focus (yet).


I'm quite sure that's not the problem. My other code was checking for NULL pointers and it crashed the same way...

Thierry wrote:
Is this where it crashes? Or is it on Display::Create()?


I think it's Display::Create() :(
OK, I will try this Rotozoom tonight on my Maestro (which is basically the same thing as your e310 as far as PocketHAL is concerned).

Hopefully I'll be able to find something.
Rotozoom works on my Maestro. Let's try to find what's going on with your device:

1) I believe the Toshiba e310 comes with GX.DLL in ROM. Make sure it wasn't overwritten by some app. To check this, simply try to delete GX.DLL.

2) Do you have any app / shell extension / thingy running at the same time? If so, can you disable them all?

3) Do you use EVC3.0's compiler or EVC4.0's? EVC 3.0 is known to sometime generate bad code and cause problems. I've attached a EVC4.0 compiled .exe for ARM to this message so that you can test it. This .exe works on both my Maestro and my iPAQ 2210.

4) If all of the above fails, are you willing to hard-reset your device and test it?
Attachments:
Test.zip (14 KB)
Thierry wrote:1) I believe the Toshiba e310 comes with GX.DLL in ROM. Make sure it wasn't overwritten by some app. To check this, simply try to delete GX.DLL.


Yes GX.DLL is in rom.
I have a simple GAPI framework that runs without problems.

Thierry wrote:2) Do you have any app / shell extension / thingy running at the same time? If so, can you disable them all?


The device is used for development only so i don't have any extensions installed.

Thierry wrote:3) Do you use EVC3.0's compiler or EVC4.0's? EVC 3.0 is known to sometime generate bad code and cause problems. I've attached a EVC4.0 compiled .exe for ARM to this message so that you can test it. This .exe works on both my Maestro and my iPAQ 2210.


Tried the attached executable, still the same problem (no black screen or crash-message or whatever, just freezes :()

Thierry wrote:4) If all of the above fails, are you willing to hard-reset your device and test it?


The device went out of battery a few days ago, which already caused a hard-reset :(

Do you have any older versions of PocketHAL i can try?

Regards, Peter
xPeterx wrote:Do you have any older versions of PocketHAL i can try?


Attached PocketHAL 0.5.0.

Do you have an email address I can use to speed up communications with you?
Attachments:
PocketHAL_0_5.zip (153 KB)
just check your PM inbox...