gtrxAC / discord-j2me

Discord client for Java ME (MIDP 2.0) devices
MIT License
154 stars 1 forks source link

Program hangs on downloading data #7

Closed natee22 closed 3 weeks ago

natee22 commented 1 month ago

DEVICE: Palm Zire 72 running PalmOS 5.4

ISSUE: It hangs the entire system after I send out my token and proxy info (I have to hit the reset button on the back)

UPDATE: If I let it sit long enough, it throws a java.lang.OutOfMemoryError

natee22 commented 1 month ago

UPDATE 2: with 1.1.2 it hangs earlier in the process, not even showing the please wait screen

MIHAIIIIIIII commented 1 month ago

it means your phone doesnt have enough RAM to run this, i had a similar problem running DOOM RPG on a very old nokia phone

shinovon commented 1 month ago

Blocking I/O operations, such as network connection must not be used in lifecycle thread. Creation of separate worker thread is highly recommended.

shinovon commented 1 month ago

Blocking I/O operations, such as network connection must not be used in lifecycle thread. Creation of separate worker thread is highly recommended.

Also related to #3

gtrxAC commented 1 month ago

Does the out-of-memory error occur solely due to the blocking IO operation? If so, I'm working on a fix for this (see #3).

shinovon commented 1 month ago

Does the out-of-memory error occur solely due to the blocking IO operation? If so, I'm working on a fix for this (see #3).

Unlikely, OOM may also be caused due to system errors

gtrxAC commented 1 month ago

@natee22 Try the latest 2.0.0 version.

natee22 commented 1 month ago

2.0.0 still throws an OOM error, I think the sad 8MB of RAM this device has is too little lol (I'm probably in too many servers)

UPDATE: opening the DMs page leads to a NullPointerException

natee22 commented 1 month ago

inserting my alt's token, which has much less servers and DMs open, it runs better.

now it crashes on sending messages and sometimes loading the server list (no error)