alexchengalan / csipsimple

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

Exceeded maximum number of wifi locks #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Start CSipSimple
2. Wait for it to register
3. Wait for the service to crash

What is the expected output? What do you see instead?

If I'm using the phone while it happens, I get an ANR dialog.  Otherwise, I get 
no hint of a problem (aside from not receiving incoming calls anymore); the 
service stops running even though the notification icon is still displaying.

The following backtrace is in the logs:

D/WifiService(   87): acquireWifiLockLocked: WifiLock{com.csipsimple.SipService 
type=1 binder=android.os.BinderProxy@44be2ff8}
W/dalvikvm(  827): threadid=7: thread exiting with uncaught exception 
(group=0x4001d7f0)
D/WifiService(   87): releaseWifiLockLocked: WifiLock{com.csipsimple.SipService 
type=1 binder=android.os.BinderProxy@44be2ff8}
E/AndroidRuntime(  827): FATAL EXCEPTION: UAStateAsyncWorker
E/AndroidRuntime(  827): java.lang.UnsupportedOperationException: Exceeded 
maximum number of wifi locks
E/AndroidRuntime(  827):    at 
android.net.wifi.WifiManager$WifiLock.acquire(WifiManager.java:879)
E/AndroidRuntime(  827):    at 
com.csipsimple.service.SipService.acquireResources(SipService.java:739)
E/AndroidRuntime(  827):    at 
com.csipsimple.service.SipService.updateRegistrationsState(SipService.java:700)
E/AndroidRuntime(  827):    at 
com.csipsimple.service.UAStateReceiver$WorkerHandler.handleMessage(UAStateReceiv
er.java:268)
E/AndroidRuntime(  827):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  827):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  827):    at android.os.HandlerThread.run(HandlerThread.java:60)
I/Process (  827): Sending signal. PID: 827 SIG: 9
W/InputManagerService(   87): Window already focused, ignoring focus gain of: 
com.android.internal.view.IInputMethodClient$Stub$Proxy@44c2bec0
I/ActivityManager(   87): Process com.csipsimple (pid 827) has died.
W/ActivityManager(   87): Scheduling restart of crashed service 
com.csipsimple/.service.SipService in 5000ms
D/WifiService(   87): releaseWifiLockLocked: null
D/WifiService(   87): releaseWifiLockLocked: null
D/WifiService(   87): releaseWifiLockLocked: null
...
...followed by many more releaseWifiLockLocked messages.

There are more acquireWifiLockLocked messages sprinkled through the logs prior 
to that.

What version of the product are you using? On what operating system?

CSipSimple 0.00-12 (from the Market) on a Nexus One running Android 2.2 build 
FRF91.

Original issue reported on code.google.com by kevin.vance on 21 Aug 2010 at 9:36

GoogleCodeExporter commented 9 years ago
Will be fixed in next released.

If you want you can download one of the latest build available on the download 
section (0.00-12-19 for example).
It fixes this issue (and many others ;) ). If you need help to install it, ask 
me.
(You *must* uninstall the version installed on the market before installing 
this one)

Original comment by r3gis...@gmail.com on 21 Aug 2010 at 10:06

GoogleCodeExporter commented 9 years ago
Thanks, I'll try that version.

Original comment by kevin.vance on 21 Aug 2010 at 10:37

GoogleCodeExporter commented 9 years ago
I haven't seen this problem since I upgraded to 0.00-12-19; looks like that 
fixed it.

Thanks again!

Original comment by kevin.vance on 23 Aug 2010 at 4:57

GoogleCodeExporter commented 9 years ago
Ok thanks for the report.

Marked as fixed. 

I really should release a version 0.00-13 but there is so much instability with 
the current one regarding all the open issues on dev versions. :/

Original comment by r3gis...@gmail.com on 23 Aug 2010 at 5:52