skylot / jadx

Dex to Java decompiler
Apache License 2.0
41.01k stars 4.81k forks source link

[gui] gui frozen when try open a large size class file in the code viewer #2259

Open zzzzfeng opened 2 weeks ago

zzzzfeng commented 2 weeks ago

Issue details

Gui frozen for a very long time when try open a large size class file in the code viewer can there be a timeout when opening class file?

Jadx version

1.5.0

Java version

21.0.3

OS

skylot commented 2 weeks ago

@zzzzfeng I made a fix to load class in background, so UI shouldn't freeze. But this doesn't affect loading speed, so if class loading take a lot of time, please share a sample, so I can check if it is possible to improve performance. Please check my fix using latest unstable build.

zzzzfeng commented 2 weeks ago

Hi, The demo app size is over 25M, you may try download it at https://sj.qq.com/appdetail/com.gorgeous.lite?ckey=CK1415304697000&from_wxz=1 (version 10.3.0)

And the cause of the frozen may not be the large size , I am not sure.

Step to reproduce, 1, go to com.light.beauty.settings.ttsettings.module.WebUrlWhitelistEntity 2, click the kotlin.collections.n, as the picture shows, image

and, the latest unstable build still shows the same

Thanks for your work!