Skip to main content

Occasionally, OutOfMemoryError, invalid peer

2 replies [Last post]
jldominguez
Offline
Joined: 2008-01-02
Points: 0

Hello. We are testing Davy's latest CAB files (pMEA) and we get this error message when the application GUI is initialized (java.awt.Frame, Panel, etc). This only happens with phoneME and with a particular pocket pc (Fujitsu-Siemens Pocket LOOX N520). In the other pocket pcs (including a Fujitsu-Siemens Pocket LOOX 720) it works fine.

I have tried to hard-reset the device without success:

java.lang.OutOfMemoryError: invalid peer
at sun.awt.pocketpc.PPCCanvasPeer.create(Native Method)
at sun.awt.pocketpc.PPCComponentPeer.(Unknown Source)
at sun.awt.pocketpc.PPCCanvasPeer.(Unknown Source)
at sun.awt.pocketpc.PPCPanelPeer.(Unknown Source)
at sun.awt.pocketpc.PPCToolkit.createPanel(Unknown Source)
at java.awt.Panel.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)

Any ideas?
Lucas

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jldominguez
Offline
Joined: 2008-01-02
Points: 0

Thanks

davyp
Offline
Joined: 2007-01-03
Points: 0

I sometimes get this error when I start an application
too quickly after closing a previous one. In cdc/src/share/personal/native/awt/pocketpc/awt.h
the macro CHECK_PEER_CREATION(p) throws this error.

It appears that the error is thrown when the native peer
is null or when some identifier is not cached.

Davy