sanachakri143 / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

Sipdroid crashes when accessing the camera on Nexus 7 #1126

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. On a Nexus 7 tablet, make or answer a call
2. Select "Send Video" from the menu
3. The device immediately reports "Unfortunately, Sipdroid has stopped"

What is the expected output? What do you see instead?
Sipdroid should start sending video using the front-facing camera.

What version of the product are you using? On what device/operating system?
Nexus 7 running Android 4.2.2.  Kernel 3.1.10-g05b777c.  Build JDQ39.
Sipdroid 3.1

Which SIP server are you using? What happens with PBXes?
Asterisk 1.8

Which type of network are you using?
Wifi

Please provide any additional information below.
I/ActivityManager(  477): START u0 {cmp=org.sipdroid.sipua/.ui.VideoCamera} 
from pid 20604
W/BackupManagerService(  477): dataChanged but no participant 
pkg='com.android.providers.settings' uid=10104
I/ActivityManager(  477): Config changes=1480 {1.0 234mcc?mnc en_US ldltr 
sw600dp w961dp h528dp 213dpi lrg land finger -keyb/v/h -nav/h s.17}
I/InputReader(  477): Reconfiguring input devices.  changes=0x00000004
I/InputReader(  477): Device reconfigured: id=2, name='elan-touchscreen', size 
800x1280, orientation 1, mode 1, display id 0
I/InputReader(  477): Reconfiguring input devices.  changes=0x00000004
I/InputReader(  477): Device reconfigured: id=2, name='elan-touchscreen', size 
800x1280, orientation 1, mode 1, display id 0
D/dalvikvm(20604): Trying to load lib 
/data/app-lib/org.sipdroid.sipua-2/libg722_jni.so 0x413414c0
D/dalvikvm(20604): Shared lib 
'/data/app-lib/org.sipdroid.sipua-2/libg722_jni.so' already loaded in same CL 
0x413414c0
D/dalvikvm(20604): GC_CONCURRENT freed 286K, 5% free 9716K/10148K, paused 
3ms+5ms, total 78ms
D/dalvikvm(  610): GC_FOR_ALLOC freed 762K, 51% free 10284K/20596K, paused 
63ms, total 65ms
I/dalvikvm-heap(  610): Grow heap (frag case) to 17.049MB for 7198736-byte 
allocation
D/dalvikvm(  610): GC_FOR_ALLOC freed 15K, 38% free 17298K/27628K, paused 42ms, 
total 42ms
D/dalvikvm(  610): GC_CONCURRENT freed 4K, 38% free 17294K/27628K, paused 
2ms+19ms, total 62ms
V/videocamera(20604): initializeVideo
V/videocamera(20604): SurfaceHolder is null
V/videocamera(20604): startVideoRecording
I/VideoPreview(20604): ar 1.2222222 setting size: 176x144
I/VideoPreview(20604): ar 1.2222222 setting size: 176x144
V/videocamera(20604): initializeVideo
D/AndroidRuntime(20604): Shutting down VM
W/dalvikvm(20604): threadid=1: thread exiting with uncaught exception 
(group=0x40bff930)
E/AndroidRuntime(20604): FATAL EXCEPTION: main
E/AndroidRuntime(20604): java.lang.NullPointerException
E/AndroidRuntime(20604):    at 
org.sipdroid.sipua.ui.VideoCamera.initializeVideo(:378)
E/AndroidRuntime(20604):    at 
org.sipdroid.sipua.ui.VideoCamera.surfaceChanged(:312)
E/AndroidRuntime(20604):    at 
android.view.SurfaceView.updateWindow(SurfaceView.java:580)
E/AndroidRuntime(20604):    at 
android.view.SurfaceView.access$000(SurfaceView.java:86)
E/AndroidRuntime(20604):    at 
android.view.SurfaceView$3.onPreDraw(SurfaceView.java:174)
E/AndroidRuntime(20604):    at 
android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:680)
E/AndroidRuntime(20604):    at 
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1842)
E/AndroidRuntime(20604):    at 
android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
E/AndroidRuntime(20604):    at 
android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
E/AndroidRuntime(20604):    at 
android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
E/AndroidRuntime(20604):    at 
android.view.Choreographer.doCallbacks(Choreographer.java:562)
E/AndroidRuntime(20604):    at 
android.view.Choreographer.doFrame(Choreographer.java:532)
E/AndroidRuntime(20604):    at 
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
E/AndroidRuntime(20604):    at android.os.Handler.handleCallback(Handler.java:725)
E/AndroidRuntime(20604):    at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(20604):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(20604):    at 
android.app.ActivityThread.main(ActivityThread.java:5041)
E/AndroidRuntime(20604):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(20604):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(20604):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime(20604):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime(20604):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  477):   Force finishing activity 
org.sipdroid.sipua/.ui.VideoCamera
D/dalvikvm(  477): GC_FOR_ALLOC freed 834K, 24% free 20410K/26648K, paused 
114ms, total 119ms
W/ActivityManager(  477):   Force finishing activity 
org.sipdroid.sipua/.ui.InCallScreen
W/AudioFlinger(  129): RecordThread: buffer overflow
W/ActivityManager(  477): Activity pause timeout for ActivityRecord{419cb900 u0 
org.sipdroid.sipua/.ui.VideoCamera}
D/dalvikvm(  781): GC_FOR_ALLOC freed 6181K, 31% free 21008K/30140K, paused 
45ms, total 49ms
W/PhoneStatusBar/NavigationBarView(  610): *** Invalid layout in navigation bar 
(sizeChanged this=1280x64 cur=800x75)
D/Launcher.Model(  781): DbDebug    Modify item (Gmail) in db, id: 6 (4, 0, 0, 
0) --> (4, 0, 0, 0)
D/Launcher.Model(  781): DbDebug    Modify item (Google+) in db, id: 8 (4, 0, 
1, 0) --> (4, 0, 1, 0)
D/Launcher.Model(  781): DbDebug    Modify item (Maps) in db, id: 10 (4, 0, 2, 
0) --> (4, 0, 2, 0)
D/Launcher.Model(  781): DbDebug    Modify item (YouTube) in db, id: 12 (4, 0, 
3, 0) --> (4, 0, 3, 0)
D/Launcher.Model(  781): DbDebug    Modify item (Talk) in db, id: 14 (4, 0, 0, 
1) --> (4, 0, 0, 1)
D/Launcher.Model(  781): DbDebug    Modify item (Calendar) in db, id: 16 (4, 0, 
1, 1) --> (4, 0, 1, 1)
D/Launcher.Model(  781): DbDebug    Modify item (People) in db, id: 18 (4, 0, 
2, 1) --> (4, 0, 2, 1)
D/Launcher.Model(  781): DbDebug    Modify item (Gallery) in db, id: 20 (4, 0, 
3, 1) --> (4, 0, 3, 1)
D/Launcher.Model(  781): DbDebug    Modify item (Earth) in db, id: 22 (4, 0, 0, 
2) --> (4, 0, 0, 2)
D/Launcher.Model(  781): DbDebug    Modify item (Currents) in db, id: 24 (4, 0, 
1, 2) --> (4, 0, 1, 2)
D/dalvikvm(  781): GC_FOR_ALLOC freed 12714K, 60% free 12186K/30140K, paused 
58ms, total 58ms
D/dalvikvm(  781): GC_CONCURRENT freed 74K, 55% free 13738K/30140K, paused 
4ms+5ms, total 49ms
D/dalvikvm(  781): WAIT_FOR_CONCURRENT_GC blocked 40ms
D/dalvikvm(  781): GC_FOR_ALLOC freed 265K, 50% free 15152K/30140K, paused 
47ms, total 47ms
I/dalvikvm(20431): Jit: resizing JitTable from 8192 to 16384
D/dalvikvm(  781): GC_FOR_ALLOC freed 394K, 43% free 17192K/30140K, paused 
27ms, total 27ms
D/dalvikvm(20431): GC_FOR_ALLOC freed 1613K, 18% free 21781K/26388K, paused 
35ms, total 36ms
D/dalvikvm(  477): GC_EXPLICIT freed 265K, 23% free 20645K/26648K, paused 
3ms+10ms, total 87ms

Original issue reported on code.google.com by nexusuk....@googlemail.com on 18 Aug 2013 at 8:47