krunal09 / csipsimple

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

Csip simple keeps forgetting settings, showing me the quick settings page again. #984

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When I loose SIM network coverage, but still have wifi coverage. The sip is 
automatically registered, allthough I have stated that it should be available 
ONLY for outbound calls

2. When I click on the app icon, the quick settings page is shown again, with 
the original settings selected (inbound selected too)

3. When I disable wifi and re-enable it, or when I reboot the phone most of the 
time the same happens

I would like Csip simple to ONLY place outbound calls over wifi,3g or gprs. 
Whatever happens, these settings should not be forgotten if possible ;-) So it 
should never register the SIP account unless the application is in view on my 
screen. Normally this works, I can click the "back" arrow in my SGS-i9000 once 
settings are stored again, and registration is terminated, but then when one of 
the above steps take place (step 1 is most clear) Csipsimple auto registers 
without me starting the application, and when I do the settings are lost again, 
and it shops me the quick settings page.

What version of the product are you using: Multiple versions up until the lates 
nightly from the 22nd, I use it on Android

Please provide any additional information below.

Maybe a bit of a double explanation here and there, but I hope you get the 
point. Anyways, thanks a lot for making this software freely available.

Original issue reported on code.google.com by pe...@virtuami.com on 23 May 2011 at 10:41

GoogleCodeExporter commented 9 years ago
Just now, it was not registering the SIP connection. But when I tapped the 
Csipsimple icon it did show me the quick settings screen. All settings lost 
again. It seems to keep getting back to the fact that it does this when it 
looses SIM network coverage, which is low at where I am, and sometimes is lost.

Original comment by pe...@virtuami.com on 23 May 2011 at 1:09

GoogleCodeExporter commented 9 years ago
Just wiped all data, just to check. After configuring csipsimple I checked if 
it worked, all was fine. Then I rebooted the phone. Again csipsimple registered 
after reboot, and the quick settings showed after starting the app. After 
looking at the account settings I noticed the sip supplier had also changed.. 
Although it did register (but maybe that's a feature of betamax.. I use 
intervoip, but the config was set to 12 voip. So still just a problem where 
settings are not stored it seems.

Original comment by pe...@virtuami.com on 23 May 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Mmm, strange.

Is the app installed on the sdcard?

It sounds like settings are lost somewhere but that's weird cause all of that 
relies on the standard android settings system (which is provided to all apps 
and should be stable).

Also quick other questions to try to eliminate basic possible root of problems:
 * Is there another sip application installed on the phone (mainly, is there a fork of csipsimple installed on the phone -- list of known forks : http://code.google.com/p/csipsimple/wiki/BrandedVersionsOfCSipSimple?wl=en )

 * Could be interesting to check the status of the phone storage (if it's full maybe android drop some app cache)

 * Is the phone rooted and if so is there special apps that aim to backup/restore other apps settings. Since CSipSimple announce to not allow its backup/restore from other app it should be done but...

I'll do an extra check on the betamax wizard, cause sounds there is a problem 
in it regarding your last comment. (I think this problem is not linked to other 
things you are experimenting, and is probably due to a bug in this wizard)

Original comment by r3gis...@gmail.com on 23 May 2011 at 9:28

GoogleCodeExporter commented 9 years ago
Just for info, problem with betamax wizard was indeed there :). 
I don't know why other users didn't cry about that ... but well, I did a fix 
that will be built tonight as revision 880 (or upper).

However, still open issue is... why it loose other settings that should be 
retained by android settings system. (accounts settings are in fact store in a 
local database and entirely managed by csipsimple).

Original comment by r3gis...@gmail.com on 23 May 2011 at 9:37

GoogleCodeExporter commented 9 years ago
I have another sgs phone available this friday that is not rooted (mine is)  
all I have for backup app is titanium backup root. Further more, memory is 
plentiful but in apps management it says that the cache memory used by 
csipsimple is not used. I just use the latest nightly, no forks, as far as I am 
aware ;-).

saw your comments on betamax registration, good find. 

I could move the app to the sd card if you think that could make a difference. 
Aa will try anyway.

Original comment by pe...@virtuami.com on 23 May 2011 at 9:45

GoogleCodeExporter commented 9 years ago
I think the better place is on the internal memory :). Some other users 
experiment problems when on sdcard.

As for the memory used by csipsimple, that's weird, it should contains data 
stored by csipsimple for settings. 
Maybe we are in a limit case where android store settings in some temporary 
memory that it reset automatically. I never really tried this kind of case, 
maybe there is something I should do to ensure android OS cry about the fact it 
can't save settings. I don't really know how android API behaves in this kind 
of situation. I'll do more searches on my side. If you get some results with 
the other phone do not hesitate to let me know.

Original comment by r3gis...@gmail.com on 23 May 2011 at 9:54

GoogleCodeExporter commented 9 years ago
Ok. Just to be clear, user settings shows days stored, just no CACHE data. That 
shows as not being used.

Original comment by pe...@virtuami.com on 23 May 2011 at 9:58

GoogleCodeExporter commented 9 years ago
New phone (for gf)with Froyo 2.2.1 (Stock) works just fine.

My Froyo.Doc_V4.0 (XXJPU) version seems to keep having the issues mentioned in 
the topic start. Also the change you made to the BetaMax registration does not 
work on my phone.

All else works fine on the phone, and I do not have any issues with other apps 
forgetting user settings. Odd.

Did you find anything, and/or are you still interested in pursuing this issue?

I could upgrade my Rom, just don't really feel like it

Original comment by pe...@virtuami.com on 1 Jun 2011 at 2:01

GoogleCodeExporter commented 9 years ago
Found the cause:

Tech. explanation:
Samsung tried to fix their lag/freezes SGS issue by moving application settings 
from slow flash (/data/data) to internal NAND memory (/dbdata/databases/), 
unfortunately they "forgot" to add code to clean up these settings when 
application is uninstalled.
So, if application is uninstalled, old preference files are kept. The next time 
application gets installed, it won't be able to read/save its settings due to 
the old preference files kept by the system, but still owned by old app UserID. 
Each application installation generates new app UserID, thus old preference 
files can't be read by app with the new UserID.

This bug affects any application which uses preference files. 
Uninstall app A, install some other app B, install app A again - you get no 
settings saved for app A anymore.

More resources on this problem:
http://code.google.com/p/android/issues/detail?id=14359
http://code.google.com/p/android-agenda ... tail?id=90
https://groups.google.com/forum/#!topic ... discussion
http://forum.xda-developers.com/showthread.php?t=998038
http://forum.xda-developers.com/showthr ... ?t=1009047

Original comment by pe...@virtuami.com on 9 Jun 2011 at 6:48

GoogleCodeExporter commented 9 years ago
Ok, thanks a lot for sharing the info :).
It will probably be helpful if somebody else have the same problem.

Original comment by r3gis...@gmail.com on 9 Jun 2011 at 8:01