stealthcopter / AndroidNetworkTools

Set of useful android network tools
Apache License 2.0
1.39k stars 282 forks source link

Subnet Devices : Outofmemory error and illegal access error #36

Closed manish4353 closed 6 years ago

manish4353 commented 6 years ago

Java.lang.IllegalAccessError while clicking on find subnet Devices button

java.lang.0utOfMemoryError: at java.lang.Thread.nativeCreate (Native Method:0) at java.lang.Thread.start (Thread.java:730) at java.util.concurrent.ThreadPoolExecutor.addWorker (ThreadPooIExecutor.java:941) at java.util.concurrent.ThreadPoolExecutor.execute (Thread PoolExecutor.java:1 348)

It is working fine in my device, but some of my active users are getting both of the above errors in subnet Devices, please help

mdev88 commented 6 years ago

Hello.

I'm having this issue as well. The exceptions are somewhat random and I was not able to catch them "from the outside".

I hope this can be fixed soon so that I can continue to use AndroidNetworkTools since it does exactly what I need <3

Cheers!

stealthcopter commented 6 years ago

I think this is an issue with creating too many threads at once, for a quick work around try lowering the thread count, I think the default of 255 is too high. I'm looking into a better way of handling this in the next release. Thanks!

stealthcopter commented 6 years ago

Should be fixed in 0.4.0 release, please reopen if not

grolschie commented 3 years ago

I'm getting the IllegalAccessError also when using the SubnetDevices.java. I have created a separate issue request before seeing this. I'm not seeing anything related to being out of memory though.