dyaskur / droidwall

Automatically exported from code.google.com/p/droidwall
0 stars 0 forks source link

Version 1.4.3: "Reading installed applications" forever. #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Disable or enable firewall.

What is the expected output? What do you see instead?
I expect that this window with "Reading installed applications" disappears... 
but it keeps showing. It's happens always, not only once. Right now I see this 
window for 4-th hour already. Just left it in case if it just takes long.

What version of the product are you using? On what operating system?
1.4.3.
Android 2.2 on HTC Desire.

Version 1.4.2 worked just fine.

Original issue reported on code.google.com by jpro....@gmail.com on 17 Nov 2010 at 8:24

GoogleCodeExporter commented 9 years ago
This is pretty odd, since v1.4.3 didn't change anything in this logic compared 
to v1.4.2

Can you please confirm that this behavior persists even after rebooting?

Original comment by rodrigo...@gmail.com on 19 Nov 2010 at 5:29

GoogleCodeExporter commented 9 years ago
Confirmed.

I've already uninstalled 1.4.3 and installed 1.4.2 again(with selecting all 
rules again), but for confirming I made it again :) I've upgraded 1.4.2 with 
1.4.3 version, then turned the phone off, then turned on again. Then I've 
opened DroidWall and turned firewall off. After "deleting IPTable rules" 
another window appeared saying "Reading installed applications" and it keeps 
showing for 10 minutes for now. Killing DroidWall with AdvancedTaskKiller and 
then re-starting again helps.

I hope you fix it in next release, because I like DroidWall very much.
I'll give you any debug information you need.

Thanks.

Original comment by jpro....@gmail.com on 20 Nov 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Just right now uninstalled it fully, then installed version 1.4.3.
Run it and figured out that first time(just after I opened the program) 
"Reading installed applications" showed and after a second disappeared. But 
when I turned firewall off, "deleting IPTable rules" appeared, then asked for 
root privileges, I've granted it, then "Reading installed applications" started 
hanging again...

So it's not because of old version updating... it's some kind of a bug. I'm 
using Android 2.2 on HTC Desire.

Original comment by jpro....@gmail.com on 20 Nov 2010 at 2:07

GoogleCodeExporter commented 9 years ago
Hummm.. I am assuming that you didn't mark the "Always allow" (or similar) on 
super user permissions, correct?

That might be the source of the problem... droidwall attempts to refresh the 
apps once the superuser app is dismissed, and for some android bug that dialog 
never goes away.
It doesn't explain why it started to happen on v1.4.3 still :|

I will try to implement something for the next version.

Original comment by rodrigo...@gmail.com on 21 Nov 2010 at 10:46

GoogleCodeExporter commented 9 years ago
@jpro.swt, can you please test the attached development version of DroidWall? I 
hope this one has this problem fixed already.
Thanks

Original comment by rodrigo...@gmail.com on 22 Nov 2010 at 12:44

Attachments:

GoogleCodeExporter commented 9 years ago
I've installed it. I can't start the firewall. It seems that clicking on left 
upper icon in menu ("Firewall disabled") is the same as clicking on "Save 
IPRules", because the same window appears and disappears saying "Saving IP 
Rules...". Please check.

Original comment by jpro....@gmail.com on 23 Nov 2010 at 4:16

GoogleCodeExporter commented 9 years ago
I find it useful to go into Applications in settings and clearing the cache..

Original comment by p...@nevezen.com on 23 Nov 2010 at 7:47

GoogleCodeExporter commented 9 years ago
@jpro.swt, do you get any error message? Or is the "Reading installed 
applications" dialog still hanging?

Original comment by rodrigo...@gmail.com on 23 Nov 2010 at 11:24

GoogleCodeExporter commented 9 years ago
rodrigo.zr, no there is no hanging dialogs, but there is just no such dialog 
about reading installed applications. Usually it appears after 
enabling/disabling firewall, but in this version I can't do that because button 
"Firewall" does the same as button "Save rules".

Original comment by jpro....@gmail.com on 23 Nov 2010 at 12:50

GoogleCodeExporter commented 9 years ago
Strange... just tested on three devices and it seems to be working.
I might have attached the wrong version by mistake. Let me try again. Please 
test this one:

Original comment by rodrigo...@gmail.com on 23 Nov 2010 at 1:20

Attachments:

GoogleCodeExporter commented 9 years ago
Just tried again. The same stuff: I can't enable the firewall, please take a 
look, I've recorder a video: http://www.youtube.com/watch?v=jY-MgK9AXX4

Original comment by jpro....@gmail.com on 24 Nov 2010 at 12:28

GoogleCodeExporter commented 9 years ago
Wow! Could you please get the logcat output after trying to enable it with this 
version? Thats sooo weird.
Thanks in advance!

Original comment by rodrigo...@gmail.com on 24 Nov 2010 at 11:18

GoogleCodeExporter commented 9 years ago
I think I finally found the problem! :)
It would only happen when clearing the app data (or uninstalling/reinstalling)
Could you try the attached version, please? If that one is good, it will be 
released as the official v1.4.4
Thanks!

Original comment by rodrigo...@gmail.com on 24 Nov 2010 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago
I've uninstalled old version and installed this one.
Yes, firewall now can be turned on.
But we are returning to the subject... "Reading installed applications" dialog 
doesn't disappear after I enable/disable the firewall.

Here is the log from aLogcat started before I install version 1.4.4 and ended 
moments after I started the firewall, i.e. this dialog(Reading installing 
applications) appeared: http://pastebin.com/CyiyxxYS

Here is the log, from aLogcat started before I install version 1.4.2 and ended 
moments after I stopped/started/stopped the firewall: 
http://pastebin.com/hmyiqp0q

Maybe it will help somehow...

Original comment by jpro....@gmail.com on 24 Nov 2010 at 9:59

GoogleCodeExporter commented 9 years ago
Thanks for the logcat output. This gave me a good clue of what may be happening.
Could you please try the following version for me? I hope this one will finally 
fix the original problem.
Thanks again!

Original comment by rodrigo...@gmail.com on 25 Nov 2010 at 12:50

Attachments:

GoogleCodeExporter commented 9 years ago
I lost the count of how much uninstalls of DroidWall I've made already ;)

Yeah, this one finally works :) What was the reason, what did you see in the 
logs?

Original comment by jpro....@gmail.com on 25 Nov 2010 at 1:01

GoogleCodeExporter commented 9 years ago
Cool! Thanks for all the testing and sorry for all the reinstalls, lol

The bug, believe it or not, was sitting there since version 1.0!
It was a thread race condition that caused it. This explains why it was so 
specific to your phone. If you are curious about the code, the "diff" can be 
seen here: 
http://code.google.com/p/droidwall/source/diff?spec=svn129&r=129&format=side&pat
h=/trunk/src/com/googlecode/droidwall/MainActivity.java
Cheers.

Original comment by rodrigo...@gmail.com on 25 Nov 2010 at 1:15