UI Toolkit

Reply
Accepted Solution

I got "Unhandled Exception" from ListPanel.Move()

Hi,

I m coding using ListPanel.Move(), but when I called ListPanel.Move(-10262.88) several times,
it failed with following exception. (where ListPanel height is 1026288 pix)

----------------------------
Warning: Degraded allocation. Consider increasing nursery-size if the warning persists.
Warning: Degraded allocation. Consider increasing nursery-size if the warning persists. Unhandled Exception: OutOfMemoryException.
----------------------------

Speared following code seems to work.

 

for(int i = 0;i < 10;i++){
MyClass.listPanel.Move( -1026288f/100f);
}

 

Are there any limitations about that?

 

Please use plain text.

Re: I got "Unhandled Exception" from ListPanel.Move()

Hi soma-soma,

Thank you for this report. I will have to replicate this problem locally to confirm the potential bug. I presume that your ListPanel is displaying correctly / consistently without the ListPanel.Move( x ) ?

I will update you once I have replicated it.

Cheers
James
PlayStation®Mobile Dev Team
Please use plain text.

Re: I got "Unhandled Exception" from ListPanel.Move()

Hi James,

> I presume that your ListPanel is displaying correctly / consistently without the ListPanel.Move( x ) ?

Yes, my ListPanel seems to be displaying correctly, without ListPanel.Move( -10262.88 ).

 

Now, I'm trying to display following ListPanelItem with 3000 in a ListPanel.
+------------------------------------------------------------------------------------+
|(LiveSphere) (Label) (LiveSphere) (LiveSphere) (Label) (Button) |
+------------------------------------------------------------------------------------+
|(LiveSphere) (Label) (LiveSphere) (LiveSphere) (Label) (Button) |
+------------------------------------------------------------------------------------+
                                            :
                             < 3000 items >

 

At this ListPanelItem --- with 3000 items ---- , ListPanel.Move(-10262.88)  outputs "Unhandled Exception: OutOfMemoryException."

 

On the other hand, at following ListPanelItem , which is LiveSphere eliminated ,
ListPanel.Move( -10262.88 ) does not outputs Unhandled Exception: OutOfMemoryException.

+------------------------------------------------------------------------------------+
| (Label) (Label) (Button) |
+------------------------------------------------------------------------------------+
| (Label) (Label) (Button) |
+------------------------------------------------------------------------------------+

                                            :
                             < 3000 items >

 

 

Is that too many objects in a ListItem? Please confirm it.

 

Please use plain text.

Re: I got "Unhandled Exception" from ListPanel.Move()

Hi soma-soma,

Thank you for following up. It looks like the memory size of your row is quite large (3 LiveSphere's) which will contribute towards a premature ending when the Move() method is called. Each time your making the Move() call, your ListItemCreator delegate is called which will instantiate a new ListPanelItem into memory, and with a large number of these being called into memory in rapid succession, this will cause your memory issues.

Running this here, we've managed to get 5000+ ListPanelItems showing, and making a call to ListPanel.Move( -10262.88 ) works fine, on a simple ListPanelItem.

I hope this helps.

Best regards,
James
PlayStation®Mobile Dev Team
Please use plain text.

Re: I got "Unhandled Exception" from ListPanel.Move()

Thank you for your comment.Somehow, I understand.

OK, I will not call ListPanel.Move( ) at large number.

 

Please use plain text.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。