Android Question Dexer Hangs

JohnC

Expert
Licensed User
Longtime User
I am simply trying to compile and run a small project I downloaded from another user posted here, and it is hanging during the dex operation:

Convert byte code - optimized dex. Error
Process timed out.
You can change the timeout value under Tools - IDE Options. Optimized dexer failed. Switching to Standard dexer.

And when it says "Taking too long - do you want to cancel" and I click yes, it tries the "Standard dexer", but that hangs also and doesn't do anything.

Sometimes this same hang problem happens intermittently with other projects.

Whats wrong?
 
Last edited:

canalrun

Well-Known Member
Licensed User
Longtime User
I recently had the error where the Dexer hangs. See this post. Rather than changing it to 1536 I changed it from 512 to 1024. That fixed the problem.

Barry.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
I tried that, but it didn't work.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
I don't know if this will help Erel, but when I ran my task manager, there were like 20 copies of "java.exe" running and I could NOT end task for any of them. Rebooting was the only way to clear them out of memory.

Also, I am using v3.82 and it seems this hanging during dex started about 1-2 versions ago.
 
Last edited:
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Hi Erel,

That worked - thank you.

But curious, why when the "optimized" dex failed and it said it was switching to the "standard" dexer and then that also failed, why disabling the optimized dex using this setting and having it go directly to using the "standard" dexer work?
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Understood. Thanks again for the fix.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
@Erel : my laptop became slow and warm where my left hand is placed.

it appears that it is the dexer that is stuck and eats a lot of memory and cpu (1 full core).

Sometimes it just sits there using 400+Mb of RAM but not using any CPU, like it just didn't exit the exe.

weird is that when I taskkill it the memory gets released but a few minutes later it's started again by B4A(?) while I'm not even working in it?

see screenshot
 

Attachments

  • dexer.png
    dexer.png
    6.5 KB · Views: 183
Upvote 0

sorex

Expert
Licensed User
Longtime User
You mean it's compiling the libraries every few minutes in the background?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
I tried to turn it off but then it's not working at all even when using a timeout of 120 seconds it still doesn't succeed.

so I turned it back on.
 
Upvote 0
Top