Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Camera lag after activating xprivacy [note 2 stock camera] #715

Closed
lolmensch opened this issue Sep 30, 2013 · 17 comments
Closed

Camera lag after activating xprivacy [note 2 stock camera] #715

lolmensch opened this issue Sep 30, 2013 · 17 comments
Labels

Comments

@lolmensch
Copy link

Hi there,

So there is really annoying stuttering when having xprivacy enabled in the stock camera settings menu. I already mentioned this in the thread and now I've had a look at the logs. It is a pity that I can't attach txt files.

So the thing seems to go wrong is the following:

09-30 11:27:27.538: D/dalvikvm(4022): GC_CONCURRENT freed 617K, 22% free 14295K/18311K, paused 1ms+2ms, total 22ms
09-30 11:27:27.538: D/dalvikvm(4022): WAIT_FOR_CONCURRENT_GC blocked 12ms
09-30 11:27:27.593: D/dalvikvm(4022): GC_CONCURRENT freed 614K, 22% free 14297K/18311K, paused 2ms+3ms, total 22ms
09-30 11:27:27.593: D/dalvikvm(4022): WAIT_FOR_CONCURRENT_GC blocked 10ms

This goes on and on, adding up all those 10ms in a row adds to a fairly big delay. This only happes once or maximum twice with xprivacy disabled.

Here are the two logs (before and after) on dropbox: https://www.dropbox.com/sh/2ss2i41k34qof6g/dIyRNDDtT2

@M66B
Copy link
Owner

M66B commented Sep 30, 2013

I didn't look at the log files, but reading the log above I don't think this is directly caused by XPrivacy, but by lack of memory. XPrivacy doesn't use much memory, but it could be the threshold causing this.

@lolmensch
Copy link
Author

I did a full wipe. Had almost nothing set up (no apps installed) and it occurs directly after enabling xprivacy and rebooting. We also have 2gb of RAM. Didn't do anything else and it is reproducible by other xda members with a note 2. Thanks for having a look.

@28Black
Copy link
Contributor

28Black commented Oct 9, 2013

Hi lolmensch, can you please try the app "Seeder" (https://play.google.com/store/apps/details?id=com.lcis.seeder&hl=de).

I know it's a paid app, but you can get a refund within 15 min which should be enough time to test it.

Maybe it can fix your issue ;)

@M66B
Copy link
Owner

M66B commented Nov 7, 2013

Please provide a logcat with XPrivacy logging enabled.

1 similar comment
@M66B
Copy link
Owner

M66B commented Nov 9, 2013

Please provide a logcat with XPrivacy logging enabled.

@M66B
Copy link
Owner

M66B commented Nov 13, 2013

Please reopen this issue when providing a logcat.

@M66B M66B closed this as completed Nov 13, 2013
@adrianocel
Copy link

Hi M66B, im a new user for your app xprivacy, and I detected the same problem mentioned above. how can i provide a logcat? where can i send it? thanks...

@M66B
Copy link
Owner

M66B commented Apr 1, 2014

See the FAQ, question 14.

@adrianocel
Copy link

Hi M66B, i did two logcats, one without the xprivacy and other with it.

In both logs, i started log, after 5 to 7 seconds then i started the camera (original) and i went to the camera´s settings. After i clicked two or three times in some options, when the menu pops up, we can see an annoying lag when xprivacy was installed.
Again, sorry about my bad english! I hope could help. Thanks.

Without xprivacy
https://dl.dropboxusercontent.com/u/46557450/log_without%20xprivacy.txt

With xprivacy
https://dl.dropboxusercontent.com/u/46557450/log_with%20xprivacy.txt

@M66B
Copy link
Owner

M66B commented Apr 2, 2014

Unfortunately XPrivacy debug logging was not enabled ...

@adrianocel
Copy link

Ohh, I skipped the step, sorry. Now, below the file with the xprivacy debug turned on.

https://dl.dropboxusercontent.com/u/46557450/log_with%20xprivacy_and%20debug%20on.txt

@M66B M66B reopened this Apr 2, 2014
@M66B
Copy link
Owner

M66B commented Apr 3, 2014

I will look into this next weekend.

@M66B
Copy link
Owner

M66B commented Apr 5, 2014

I have scanned to the pretty verbose logcat and only found that the camera is low on a special memory type (which XPrivacy doesn't use) and runs out of buffers once. Everything else seems pretty normal. There are a lot of calls to XPrivacy, which could accumulate to some lag, but there is nothing that can be done to improve that. XPrivacy already has caching a client and server side and needs to read settings to do its work.

@M66B M66B added question and removed bug labels Apr 5, 2014
@M66B M66B closed this as completed in f0bacb6 Apr 5, 2014
@M66B M66B reopened this Apr 6, 2014
@M66B
Copy link
Owner

M66B commented Apr 6, 2014

@adrianocel can you please try if this version fixes the lag: http://d-h.st/57v

@adrianocel
Copy link

I installed, then rebooted and saw nothing different.

@M66B
Copy link
Owner

M66B commented Apr 6, 2014

It was worth a try.

@M66B M66B closed this as completed Apr 6, 2014
@M66B
Copy link
Owner

M66B commented Jun 28, 2014

You can read here how to disable restrictions to pinpoint the restriction that is causing this:
#1751 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants