waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Camera.takePicture() freezes on XE16 #474

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In gdk app, open camera and call Camera.takePicture() some times (usually 2 
or 3 times) in a row.
2. Observe app freezes and glass reboots

Not: it *always* happens to me.

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

 App should not freeze or reboot

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

 XE16

Please provide any additional information below.

*Sample project to reproduce:*
https://github.com/thorikawa/CameraFreezeXE16
https://github.com/thorikawa/CameraFreezeXE16/blob/master/src/com/example/camera
freezesample/MainActivity.java

*Logcat*
I/MainTimelineActivity[20eb9d28](14393): onPause
I/MainTimelineActivity[20eb9d28](14393): Removing listener from VoiceService: 
MainTimelineActivity[20eb9d28]
W/VoiceService(13255): Ignoring setConfig(OFF) because a more recent listener 
is using VoiceService
I/ActivityManager(12994): Start proc com.example.camerafreezesample for 
activity com.example.camerafreezesample/.MainActivity: pid=14603 uid=10034 
gids={50034}
D/dalvikvm(14603): Late-enabling CheckJNI
D/dalvikvm(14603): Try to disable coredump for pid 14603
D/dalvikvm(14603): Process 14603 nice name: com.example.camerafreezesample
D/dalvikvm(14603): Extra Options: not specified
W/Resources(12994): Converting to boolean: TypedValue{t=0x3/d=0x1fb 
"res/anim/decelerate_interpolator.xml" a=1 r=0x10a0006}
D/CardScrollView(14393): Deactivating.
I/VoiceMenuDialog(14393): Removing listener from VoiceService: VoiceMenuDialog
D/CardScrollView(14393): Deactivating.
I/MainTimelineActivity[20eb9d28](14393): onStop
D/InputMethodManagerService(12994): --- calledFromForegroundUserOrSystemProcess 
? calling uid = 1000 system uid = 1000 calling userId = 0, foreground user id = 
0, calling pid = 
12994com.android.server.wm.WindowManagerService.openSession(WindowManagerService
.java:7639)
I/GlassUserEventService(13780): Performance stats: [object: 
com.google.common.logging.GlassExtensionsNano$GlassUserEventPerformanceStats {  
  batteryStateOfChargeUah_: 470000    totalKernelMs_: 2058080    
totalBytesSent_: 1141236    boardTemperatureMilliCentigrade_: 56034    
frequencyScalingGovernor_: 0    batteryChargeWhenFullUah_: 481000    
reportedSoc_: 98    bitField0_: 255    batteryTemperatureMilliCentigrade_: 
28300    unknownFieldData: null    cachedSize: -1}]
D/OpenGLRenderer(14603): Enabling debug mode 0
D/CameraFreezeSample(14603): preview surface created
D/CameraFreezeSample(14603): start camera
I/CameraService(12916): CameraService::connect E (pid 14603 
"com.example.camerafreezesample", id 0)
I/CameraService(12916): Opening camera 0
I/CameraHal(12916): (b8860dc8)   
hardware/ti/omap4xxx/camera/CameraHal_Module.cpp:660 camera_device_open - 
camera_device open
I/CameraHal(12916): (b8860dc8)   hardware/ti/omap4xxx/camera/CameraHal.cpp:4287 
readALS - LIGHT read as 27
D/CameraService-GoogleCamera-Utils(12916): getSystemPropertyBool: 
(persist.camera.picture_hq): default=false : result=false
I/CameraService-GoogleCamera(12916): Skipping Gcam initialization (already done)
D/CameraService-GoogleCamera-Utils(12916): getSystemPropertyBool: 
(persist.camera.picture_hq): default=false : result=false
I/CameraService(12916): CameraService::connect X (id 0, this pid is 12916)
I/CameraService-GoogleCamera(12916): Acquire hardware jpeg encoder lock took: 0 
mS 
D/libgcam (12916): [gcam.cc:3292]: Gcam::Pause
D/CameraFreezeSample(14603): call takePicture after 500ms
D/CameraFreezeSample(14603): preview surface changed
I/Choreographer(14603): Skipped 35 frames!  The application may be doing too 
much work on its main thread.
I/CameraHal(12916): (b8873568)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Standby to first 
shot: Sensor Change completed -  :331.421 ms :  1397718874310 ms
D/InputMethodManagerService(12994): --- calledFromForegroundUserOrSystemProcess 
? calling uid = 10034 system uid = 1000 calling userId = 0, foreground user id 
= 0, calling pid = 
14603com.android.server.InputMethodManagerService.windowGainedFocus(InputMethodM
anagerService.java:1882)
V/InputMethodManagerService(12994): windowGainedFocus: 
android.os.BinderProxy@20ff8034 controlFlags=#104 softInputMode=#120 
windowFlags=#1810580
V/InputMethodManagerService(12994): Unspecified window will hide input
V/InputMethodManagerService(12994): unbindCurrentInputLocked: client = 
android.os.BinderProxy@20f545fc
V/InputMethodManagerService(12994): Hide switching menu
V/InputMethodManagerService(12994): switching to client: client = 
android.os.BinderProxy@20ff8034 keyguard=false
V/InputMethodManagerService(12994): Creating new session for client 
ClientState{20fd33bc uid 10034 pid 14603}
I/ActivityManager(12994): Displayed 
com.example.camerafreezesample/.MainActivity: +988ms (total +14s894ms)
V/InputMethodManagerService(12994): Disabling: SessionState{uid 10021 pid 14393 
method 20f177b8 session 20fa463c channel ClientState{20f06838 uid 10021 pid 
14393} (server)}
V/InputMethodManagerService(12994): Enabling: SessionState{uid 10034 pid 14603 
method 20f177b8 session 20fcbf04 channel ClientState{20fd33bc uid 10034 pid 
14603} (server)}
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
parameters set:  :0.30 ms :  1397718874773 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
buffer size queried:  :18.36 ms :  1397718874791 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
buffers allocated:  :19.165 ms :  1397718874792 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
image port configuration:  :42.23 ms :  1397718874815 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
image port enabled and buffers registered:  :47.58 ms :  1397718874820 ms
W/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:179 getPixelFormatConstant - 
Preview format is NULL, defaulting to NV12
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
extra configs on image port done:  :61.218 ms :  1397718874834 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
buffers registered:  :61.462 ms :  1397718874834 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
capture started:  :62.347 ms :  1397718874835 ms
I/MainTimelineView(14393): New timeline database content loaded; updating views.
I/MainTimelineView(14393): New timeline database content loaded; updating views.
I/CameraHal(12916): (b88632c0)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: 
startImageCapture bracketing configs done:  :517.639 ms :  1397718875290 ms
I/CameraHal(12916): (b88632c0)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: 
startImageCapture image buffers queued and capture enabled:  :525.116 ms :  
1397718875298 ms
I/CameraHal(12916): (b88632c0)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: 
startImageCapture shutter event received:  :705.231 ms :  1397718875478 ms
I/CameraHal(12916): (b8873568)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Shot to 
snapshot:  :750.732 ms :  1397718875523 ms
I/CameraHal(12916): (b8873568)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Shot to Jpeg:  
:853.668 ms :  1397718875626 ms
D/CameraFreezeSample(14603): picture taken
D/CameraFreezeSample(14603): call takePicture after 500ms
I/CameraHal(12916): (b8873568)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Shot to shot:  
:981.79 ms :  1397718875754 ms
I/CameraHal(12916): (b6fc6154)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
parameters set:  :0.31 ms :  1397718876187 ms
I/CameraHal(12916): (b6fc6154)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
buffer size queried:  :0.336 ms :  1397718876187 ms
I/CameraHal(12916): (b6fc6154)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
buffers allocated:  :0.855 ms :  1397718876188 ms
W/CameraHal(12916): (b6fc6154)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:179 getPixelFormatConstant - 
Preview format is NULL, defaulting to NV12
I/CameraHal(12916): (b6fc6154)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
extra configs on image port done:  :20.111 ms :  1397718876207 ms
I/CameraHal(12916): (b6fc6154)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
buffers registered:  :20.356 ms :  1397718876207 ms
I/CameraHal(12916): (b6fc6154)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
capture started:  :21.424 ms :  1397718876208 ms
I/CameraHal(12916): (b88632c0)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: 
startImageCapture bracketing configs done:  :336.579 ms :  1397718876523 ms
I/CameraHal(12916): (b88632c0)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: 
startImageCapture image buffers queued and capture enabled:  :350.98 ms :  
1397718876537 ms
I/CameraHal(12916): (b88632c0)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: 
startImageCapture shutter event received:  :537.781 ms :  1397718876725 ms
I/CameraHal(12916): (b8873568)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Shot to 
snapshot:  :587.98 ms :  1397718876774 ms
I/CameraHal(12916): (b8873568)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Shot to Jpeg:  
:686.188 ms :  1397718876873 ms
D/CameraFreezeSample(14603): picture taken
D/CameraFreezeSample(14603): call takePicture after 500ms
I/CameraHal(12916): (b8873568)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Shot to shot:  
:817.994 ms :  1397718877005 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
parameters set:  :0.30 ms :  1397718877445 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
buffer size queried:  :0.702 ms :  1397718877445 ms
I/CameraHal(12916): (b886c7b8)   
hardware/ti/omap4xxx/camera/CameraHalCommon.cpp:114 PPM - PPM: Takepicture 
buffers allocated:  :1.251 ms :  1397718877446 ms
I/SyncHelper(14393): Requesting sync [authority=com.google.glass.timeline, 
syncSource=DEVICE_BOOTUP, extras=Bundle[{}]].
I/SyncHelper(14393): Requesting sync [authority=com.google.glass.location, 
syncSource=DEVICE_BOOTUP, extras=Bundle[{}]].
I/SyncHelper(14393): Requesting sync [authority=com.google.glass.entity, 
syncSource=DEVICE_BOOTUP, extras=Bundle[{}]].
I/SyncHelper(14393): Requesting sync 
[authority=com.google.glass.settings.syncable, syncSource=DEVICE_BOOTUP, 
extras=Bundle[{}]].
I/TimelineSyncAdapter(13292): Entering onPerformSync [authority= 
com.google.glass.timeline, extras=Bundle[{sync_priority=0}]].
W/ProcessCpuTracker(12994): Skipping unknown process pid 15168
I/DownloadSyncHelper(13292): Fetching unsynced items from server.
I/LocationSyncHandler(14393): Skipping sync. Last successful sync was 18 sec 
ago.
I/TimelineHelper(13292): Getting unsynced items with sync protocols: 0, 1
I/EntitySyncAdapter(14393): Starting Entity sync, extras are: 
Bundle[{sync_priority=0}]
I/EntitySyncHandler(14393): Full refresh of entities since on wifi and powered.
I/DownloadSyncHelper(13292): Requesting sync 
[window=TimelineSyncWindow{startTime=1397715950498001, continuationToken=null}].
W/GLSUser (13357): GoogleAccountDataService.getToken()
W/GLSUser (13357): GoogleAccountDataService.getToken()
I/DownloadSyncHelper(13292): Received items from server [count=0].
D/dalvikvm(14393): GC_CONCURRENT freed 849K, 9% free 9382K/10268K, paused 
15ms+4ms, total 104ms
D/dalvikvm(14393): WAIT_FOR_CONCURRENT_GC blocked 63ms
D/dalvikvm(14393): WAIT_FOR_CONCURRENT_GC blocked 72ms
I/EntitySyncHandler(14393): Received 349 entities
I/SettingSyncAdapter(13135): Entering Settings onPerformSync [authority= 
com.google.glass.settings.syncable, extras=Bundle[{sync_priority=0}]].
W/ContextImpl(13135): Calling a method in the system process without a 
qualified user: android.app.ContextImpl.bindService:1556 
android.content.ContextWrapper.bindService:517 
com.google.android.gms.auth.firstparty.dataservice.GoogleAccountDataServiceClien
t.a:-1 
com.google.android.gms.auth.firstparty.dataservice.GoogleAccountDataServiceClien
t.getToken:-1 com.google.glass.auth.GlassAuthUtils.getAuthToken:100 
W/GLSUser (13357): GoogleAccountDataService.getToken()
I/SettingSyncAdapter(13135): Server response sync version: 1397628118485001 
count: 1
I/SettingSyncAdapter(13135): Successfully applied sync response
D/dalvikvm(13780): GC_CONCURRENT freed 2541K, 28% free 6942K/9544K, paused 
5ms+17ms, total 108ms
D/dalvikvm(12994): GC_EXPLICIT freed 1388K, 14% free 9314K/10800K, paused 
21ms+14ms, total 174ms
W/Uploader(13243): No account for auth token provided
I/ActivityManager(12994): Process com.google.glass.musicplayer (pid 14337) has 
died.
I/ActivityManager(12994): Process com.android.providers.calendar (pid 13901) 
has died.
I/ActivityManager(12994): Process com.android.keychain (pid 14356) has died.
I/ActivityManager(12994): Process com.android.phone (pid 14124) has died.
I/ActivityManager(12994): Process com.google.glass.lockrecovery (pid 14286) has 
died.
I/ActivityManager(12994): Process com.google.glass.boutique (pid 14212) has 
died.
W/ProcessCpuTracker(12994): Skipping unknown process pid 16543
I/ActivityManager(12994): Process com.google.glass.deviceadmin (pid 14194) has 
died.
I/ActivityManager(12994): Process com.android.defcontainer (pid 14322) has died.
I/ActivityManager(12994): Process com.google.glass.maps (pid 13748) has died.
I/LocationService(14393): Disconnected from com.google.glass.maps:13748 (0 
remaining listeners)
I/OngoingActivityService(14393): Connection lost to client: 13748
I/ActivityManager(12994): Process com.jtxdriggers.android.glass.glasslauncher 
(pid 14234) has died.
W/TimelineService(12994): Process 14234 died, clearing associated live card.
I/ActivityManager(12994): Process com.google.glass.sync:remote (pid 13347) has 
died.
I/ActivityManager(12994): Process com.google.android.gms (pid 13243) has died.
I/ActivityManager(12994): Process android.process.acore (pid 13443) has died.
I/ActivityManager(12994): Process com.google.glass.logging (pid 13780) has died.
D/InputMethodManagerService(12994): --- calledFromForegroundUserOrSystemProcess 
? calling uid = 1000 system uid = 1000 calling userId = 0, foreground user id = 
0, calling pid = 12994dalvik.system.NativeStart.run(Native Method)
E/MemoryHeapBase(12916): error creating ashmem region: Too many open files
I/ServiceManager(  106): service 'media.audio_flinger' died
I/ServiceManager(  106): service 'media.player' died
I/ServiceManager(  106): service 'media.camera' died
I/ServiceManager(  106): service 'media.audio_policy' died
W/CameraBase(14603): Camera service died!
W/CameraBase(14393): Camera service died!
W/CameraBase(13287): Camera service died!
W/CameraBase(14603): mediaserver's remote binder Camera object died
W/IMediaDeathNotifier(13151): media server died
W/IMediaDeathNotifier(12994): media server died
W/AudioSystem(12994): AudioFlinger server died!
E/AudioService(12994): Media server died.
W/AudioSystem(12994): AudioPolicyService server died!
W/AudioSystem(13151): AudioFlinger server died!
W/AudioSystem(13151): AudioPolicyService server died!
E/Camera  (14603): Error 100
I/ServiceManager(  106): service 'SurfaceFlinger' died
I/ServiceManager(  106): service 'hardware.dsswb' died
E/DisplayEventReceiver(14603): Display event receiver pipe was closed or an 
error occurred.  events=0x9
E/DisplayEventReceiver(12994): Display event receiver pipe was closed or an 
error occurred.  events=0x9
E/DisplayEventReceiver(12994): Display event receiver pipe was closed or an 
error occurred.  events=0x9
E/DisplayEventReceiver(12994): Display event receiver pipe was closed or an 
error occurred.  events=0x9
E/DisplayEventReceiver(12994): Display event receiver pipe was closed or an 
error occurred.  events=0x9
E/DisplayEventReceiver(14393): Display event receiver pipe was closed or an 
error occurred.  events=0x9
E/DisplayEventReceiver(12994): Display event receiver pipe was closed or an 
error occurred.  events=0x9
W/SurfaceComposerClient(12994): ComposerService remote (surfaceflinger) died 
[0x592c62b0]
W/SurfaceComposerClient(14393): ComposerService remote (surfaceflinger) died 
[0x59ff5320]
I/Netd    (16722): Netd 1.0 starting
W/InterfaceController(16722): Warning (dlopen failed: library 
"/system/lib/libnetcmdiface.so" not found) while opening the net interface 
command library
E/installd(  117): eof
E/installd(  117): failed to read size
I/installd(  117): closing connection
D/skia    (16723): SkGraphics::Init() - BLTsville (CPU) dlopen success
D/AndroidRuntime(16723): 
D/AndroidRuntime(16723): >>>>>> AndroidRuntime START 
com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime(16723): CheckJNI is OFF
I/dalvikvm(16723): No library specified. The standard exception handler will be 
used
I/ServiceManager(  106): service 'user' died
I/ServiceManager(  106): service 'sensorservice' died
I/ServiceManager(  106): service 'package' died
I/ServiceManager(  106): service 'activity' died
I/ServiceManager(  106): service 'gfxinfo' died
I/ServiceManager(  106): service 'cpuinfo' died
I/ServiceManager(  106): service 'telephony.registry' died
I/ServiceManager(  106): service 'print' died
I/ServiceManager(  106): service 'batterystats' died
I/ServiceManager(  106): service 'power' died
I/ServiceManager(  106): service 'appops' died
I/ServiceManager(  106): service 'usagestats' died
I/ServiceManager(  106): service 'scheduling_policy' died
I/ServiceManager(  106): service 'display' died
I/ServiceManager(  106): service 'dbinfo' died
I/ServiceManager(  106): service 'meminfo' died
I/ServiceManager(  106): service 'procstats' died
I/ServiceManager(  106): service 'permission' died
I/ServiceManager(  106): service 'entropy' died
I/ServiceManager(  106): service 'servicediscovery' died
I/ServiceManager(  106): service 'updatelock' died
I/ServiceManager(  106): service 'cws_service_manager' died
I/ServiceManager(  106): service 'CsmWifiOffloadService' died
I/ServiceManager(  106): service 'connectivity' died
I/ServiceManager(  106): service 'notification' died
I/ServiceManager(  106): service 'devicestoragemonitor' died
I/ServiceManager(  106): service 'location' died
I/ServiceManager(  106): service 'country_detector' died
I/ServiceManager(  106): service 'search' died
I/ServiceManager(  106): service 'dropbox' died
I/ServiceManager(  106): service 'wallpaper' died
I/ServiceManager(  106): service 'audio' died
I/ServiceManager(  106): service 'usb' died
I/ServiceManager(  106): service 'serial' died
I/ServiceManager(  106): service 'uimode' died
I/ServiceManager(  106): service 'backup' died
I/ServiceManager(  106): service 'appwidget' died
I/ServiceManager(  106): service 'diskstats' died
I/ServiceManager(  106): service 'samplingprofiler' died
I/ServiceManager(  106): service 'commontime_management' died
I/ServiceManager(  106): service 'assetatlas' died
I/ServiceManager(  106): service 'media_router' died
I/ServiceManager(  106): service 'head_gesture' died
I/ServiceManager(  106): service 'eye_gesture' died
I/ServiceManager(  106): service 'timeline' died
I/ServiceManager(  106): service 'lockscreen' died
I/ServiceManager(  106): service 'account' died
I/ServiceManager(  106): service 'content' died
I/ServiceManager(  106): service 'hardware' died
I/ServiceManager(  106): service 'battery' died
I/ServiceManager(  106): service 'alarm' died
I/ServiceManager(  106): service 'current' died
I/ServiceManager(  106): service 'vibrator' died
I/ServiceManager(  106): service 'consumer_ir' died
I/ServiceManager(  106): service 'window' died
I/ServiceManager(  106): service 'input' died
I/ServiceManager(  106): service 'device_policy' died
I/ServiceManager(  106): service 'statusbar' died
I/ServiceManager(  106): service 'clipboard' died
I/ServiceManager(  106): service 'network_management' died
I/ServiceManager(  106): service 'netpolicy' died
I/ServiceManager(  106): service 'textservices' died
I/ServiceManager(  106): service 'netstats' died
I/ServiceManager(  106): service 'mount' died
I/ServiceManager(  106): service 'bluetooth_manager' died
I/ServiceManager(  106): service 'wifi' died
I/ServiceManager(  106): service 'wifip2p' died
I/ServiceManager(  106): service 'lock_settings' died
I/ServiceManager(  106): service 'input_method' died
I/ServiceManager(  106): service 'accessibility' died
D/dalvikvm(16723): Trying to load lib libjavacore.so 0x0
D/dalvikvm(16723): Added shared lib libjavacore.so 0x0
D/dalvikvm(16723): Trying to load lib libnativehelper.so 0x0
D/dalvikvm(16723): Added shared lib libnativehelper.so 0x0
D/dalvikvm(16723): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
D/dalvikvm(16723): Note: class Landroid/app/ActivityManagerNative; has 179 
unimplemented (abstract) methods
E/memtrack(16723): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug(16723): failed to load memtrack module: -2
I/SamplingProfilerIntegration(16723): Profiling disabled.
I/Zygote  (16723): Preloading classes...
D/dalvikvm(16723): GC_EXPLICIT freed 40K, 8% free 525K/568K, paused 1ms+1ms, 
total 23ms
V/NatController(16722): runCmd(/system/bin/iptables -F natctrl_FORWARD) res=0
V/NatController(16722): runCmd(/system/bin/iptables -A natctrl_FORWARD -j DROP) 
res=0
V/NatController(16722): runCmd(/system/bin/iptables -t nat -F 
natctrl_nat_POSTROUTING) res=0
V/NatController(16722): runCmd(/system/bin/ip rule flush) res=0
D/dalvikvm(16723): GC_EXPLICIT freed 3K, 3% free 602K/620K, paused 1ms+1ms, 
total 19ms
V/NatController(16722): runCmd(/system/bin/ip -6 rule flush) res=0
V/NatController(16722): runCmd(/system/bin/ip rule add from all lookup default 
prio 32767) res=0
V/NatController(16722): runCmd(/system/bin/ip rule add from all lookup main 
prio 32766) res=0
V/NatController(16722): runCmd(/system/bin/ip -6 rule add from all lookup 
default prio 32767) res=0
V/NatController(16722): runCmd(/system/bin/ip -6 rule add from all lookup main 
prio 32766) res=0
V/NatController(16722): runCmd(/system/bin/ip route flush cache) res=0
V/NatController(16722): runCmd(/system/bin/iptables -F natctrl_tether_counters) 
res=0
V/NatController(16722): runCmd(/system/bin/iptables -X natctrl_tether_counters) 
res=0
V/NatController(16722): runCmd(/system/bin/iptables -N natctrl_tether_counters) 
res=0
D/dalvikvm(16723): GC_EXPLICIT freed 16K, 3% free 653K/672K, paused 0ms+0ms, 
total 4ms

Original issue reported on code.google.com by horikawa...@gmail.com on 17 Apr 2014 at 7:21

GoogleCodeExporter commented 9 years ago
Need app launcher solution..

Original comment by jgdes...@gmail.com on 17 Apr 2014 at 6:24

GoogleCodeExporter commented 9 years ago

Original comment by ala...@google.com on 17 Apr 2014 at 8:39

GoogleCodeExporter commented 9 years ago

Original comment by ala...@google.com on 23 Apr 2014 at 11:07

GoogleCodeExporter commented 9 years ago
We've found an effective workaround for this problem, basically in the 
onPictureTaken callback you have to completely teardown your camera including 
all previewCallBacks, PreviewDisplay, etc. Then you recreate and start your 
camera again.

mCamera.takePicture(new ShutterCallback() {
            public void onShutter() {
            }
        }, new PictureCallback() {
            public void onPictureTaken(byte[] arg0, Camera arg1) {
            }

        }, new PictureCallback() {
            public void onPictureTaken(byte[] data, Camera camera) {
                // Do some processing...

                stopCamera();
                initCamera();
                startCamera(mCamSH);

                                mCamera.startPreview();
            }
        });         

Original comment by npilking...@ethos.com on 1 May 2014 at 5:53

GoogleCodeExporter commented 9 years ago
Sometimes glass gets freezed with frequent usage of camera service. It tends to 
hard reboot the glass manually. I might think, it's the problem in camera 
release call. I hope it might be a bug in gdk camera api. If I'm wrong, let me 
suggest the possible way to fix the same.

Original comment by ssenthil...@gmail.com on 7 May 2014 at 2:18

GoogleCodeExporter commented 9 years ago
We are currently facing the same issue. 
The workaround proposed works sometimes, but globally we need to reboot very 
often. 
It's a pain in the ass.

Any other idea how to fix it ? 

Original comment by willie.r...@gmail.com on 16 May 2014 at 1:48

GoogleCodeExporter commented 9 years ago
I'm experiencing the same problem.  The workaround doesn't seem to prevent the 
problem altogether.  I'm looking forward to a permanent fix!

Original comment by hannings...@gmail.com on 29 May 2014 at 4:21

GoogleCodeExporter commented 9 years ago
This is affecting us too. Given the camera is a core feature of Google Glass, 
this issue appears to be impossible to work around and it has negative user 
side effects (system crash) - any chance we could get it bumped up a priority 
level? :)

Original comment by nickge...@gmail.com on 29 May 2014 at 4:40

GoogleCodeExporter commented 9 years ago
I agree with the above comment. The workaround we found and posted here works 
just long enough to get through a demo of our project, but does not resolve the 
issue for prolonged normal use. 

It feels like this issue should get bumped up since the the camera is a really 
important part of the Glass experience.

Original comment by npilking...@ethos.com on 29 May 2014 at 4:58

GoogleCodeExporter commented 9 years ago
This seems to be a similar (if not the same) issue as Issue 369 
(https://code.google.com/p/google-glass-api/issues/detail?id=369&q=camera&colspe
c=ID%20Type%20Status%20Priority%20Owner%20Component%20Summary).

Original comment by gerald.m...@gmail.com on 25 Jul 2014 at 8:02

GoogleCodeExporter commented 9 years ago
I may be having the same issue, although my logcat doesn't show all these 
services dying. For me, the app freezes yes, but then sometimes the display 
just goes blank (sometimes still 'backlit', sometimes not). The Glass does not 
respond to any input, neither via touchpad nor buttons. The only way I can 
regain control of the Glass is by forcing shutdown by holding down the power 
button. If I don't do this the Glass quickly gets very hot.

Original comment by cxlab....@gmail.com on 7 Aug 2014 at 8:58