M66B / XPrivacy

XPrivacy - The ultimate, yet easy to use, privacy manager

Home Page:http://forum.xda-developers.com/xposed/modules/xprivacy-ultimate-android-privacy-app-t2320783

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Camera lag after activating xprivacy [note 2 stock camera]

lolmensch opened this issue · comments

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

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.

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.

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 ;)

Please provide a logcat with XPrivacy logging enabled.

Please provide a logcat with XPrivacy logging enabled.

Please reopen this issue when providing a logcat.

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...

See the FAQ, question 14.

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

Unfortunately XPrivacy debug logging was not enabled ...

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

I will look into this next weekend.

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.

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

I installed, then rebooted and saw nothing different.

It was worth a try.

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