Closed GoogleCodeExporter closed 9 years ago
Thanks for the logs Chris.
Camera "setParameters" fails with RuntimeExcepion
04-03 00:00:42.988 W/CameraSwitch(1265) : open main camera
04-03 00:00:42.988 W/CameraSwitch(1265) : no file - can't switch camera
04-03 00:00:42.998 E/CameraSwitch(1265) : setSwitchFile failed:
/sys/android_camera2/htcwc
04-03 00:00:42.998 E/CameraSwitch(1265) : java.io.FileNotFoundException:
/sys/android_camera2/htcwc
04-03 00:00:42.998 E/CameraSwitch(1265) : at
org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
java.io.FileWriter.<init>(FileWriter.java:58)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.hardware.CameraSwitch.setSwitchFile(CameraSwitch.java:44)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.hardware.CameraSwitch.openMainCamera(CameraSwitch.java:22)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.hardware.Camera.open(Camera.java:90)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
com.totsp.bookworm.BookEntryForm$4.surfaceCreated(BookEntryForm.java:96)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.SurfaceView.updateWindow(SurfaceView.java:454)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.View.draw(View.java:6538)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.View.draw(View.java:6538)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.View.draw(View.java:6538)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:186
6)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewRoot.draw(ViewRoot.java:1364)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewRoot.performTraversals(ViewRoot.java:1118)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.view.ViewRoot.handleMessage(ViewRoot.java:1650)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.os.Handler.dispatchMessage(Handler.java:99)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.os.Looper.loop(Looper.java:123)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
android.app.ActivityThread.main(ActivityThread.java:4595)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
java.lang.reflect.Method.invokeNative(Native Method)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
java.lang.reflect.Method.invoke(Method.java:521)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-03 00:00:42.998 E/CameraSwitch(1265) : at
dalvik.system.NativeStart.main(Native Method)
4-03 00:00:43.208 W/dalvikvm(1265) : threadid=3: thread exiting with uncaught
exception (group=0x4001b390)
04-03 00:00:43.208 E/AndroidRuntime(1265) : Uncaught handler: thread main
exiting
due to uncaught exception
04-03 00:00:43.208 E/AndroidRuntime(1265) : java.lang.RuntimeException:
setParameters failed
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.hardware.Camera.native_setParameters(Native Method)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.hardware.Camera.setParameters(Camera.java:627)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
com.totsp.bookworm.BookEntryForm$4.surfaceChanged(BookEntryForm.java:139)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.SurfaceView.updateWindow(SurfaceView.java:460)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.View.draw(View.java:6538)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.View.draw(View.java:6538)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.View.draw(View.java:6538)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:186
6)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewRoot.draw(ViewRoot.java:1364)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewRoot.performTraversals(ViewRoot.java:1118)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.view.ViewRoot.handleMessage(ViewRoot.java:1650)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.os.Handler.dispatchMessage(Handler.java:99)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.os.Looper.loop(Looper.java:123)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
android.app.ActivityThread.main(ActivityThread.java:4595)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
java.lang.reflect.Method.invokeNative(Native Method)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
java.lang.reflect.Method.invoke(Method.java:521)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-03 00:00:43.208 E/AndroidRuntime(1265) : at
dalvik.system.NativeStart.main(Native Method)
Original comment by charlie....@gmail.com
on 2 Apr 2010 at 11:19
[deleted comment]
Installed the notified update but still get FC on form use.
Looks like you filtered for E/ above so here's the latest if any use to you:
04-03 10:36:12.331 E/PackageInstallationReceiver(1078) : Remove
/data/local/tmp/com.totsp.bookworm.apk Fail!
04-03 10:36:12.481 E/JOGBALL (75) : open failed errno: 2
04-03 10:36:45.392 E/JOGBALL (75) : open failed errno: 2
04-03 10:36:54.911 E/PackageInstallationReceiver(1078) : Remove
/data/local/tmp/com.boolbalabs.tossit.preview.apk Fail!
04-03 10:36:54.981 E/JOGBALL (75) : open failed errno: 2
04-03 10:37:19.062 E/JOGBALL (75) : open failed errno: 2
04-03 10:37:19.092 E/JOGBALL (75) : open failed errno: 2
04-03 10:37:20.882 E/JOGBALL (75) : open failed errno: 2
04-03 10:37:31.832 E/CameraSwitch(2539) : setSwitchFile failed:
/sys/android_camera2/htcwc
04-03 10:37:31.832 E/CameraSwitch(2539) : java.io.FileNotFoundException:
/sys/android_camera2/htcwc
04-03 10:37:31.832 E/CameraSwitch(2539) : at
org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
java.io.FileWriter.<init>(FileWriter.java:58)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.hardware.CameraSwitch.setSwitchFile(CameraSwitch.java:44)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.hardware.CameraSwitch.openMainCamera(CameraSwitch.java:22)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.hardware.Camera.open(Camera.java:90)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
com.totsp.bookworm.BookEntryForm$4.surfaceCreated(BookEntryForm.java:96)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.SurfaceView.updateWindow(SurfaceView.java:454)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.View.draw(View.java:6538)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.View.draw(View.java:6538)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.View.draw(View.java:6538)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:186
6)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewRoot.draw(ViewRoot.java:1364)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewRoot.performTraversals(ViewRoot.java:1118)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.view.ViewRoot.handleMessage(ViewRoot.java:1650)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.os.Handler.dispatchMessage(Handler.java:99)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.os.Looper.loop(Looper.java:123)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
android.app.ActivityThread.main(ActivityThread.java:4595)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
java.lang.reflect.Method.invokeNative(Native Method)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
java.lang.reflect.Method.invoke(Method.java:521)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-03 10:37:31.832 E/CameraSwitch(2539) : at
dalvik.system.NativeStart.main(Native
Method)
04-03 10:37:32.271 E/QualcommCameraHardware(57) : Invalid picture size
requested: 480x320
04-03 10:37:32.271 E/QualcommCameraHardware(57) : virtual android::status_t
android::QualcommCameraHardware::setParameters(const
android::CameraParameters&):
2110, rc = -22
04-03 10:37:32.281 E/AndroidRuntime(2539) : Uncaught handler: thread main
exiting due
to uncaught exception
04-03 10:37:32.291 E/AndroidRuntime(2539) : java.lang.RuntimeException:
setParameters
failed
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.hardware.Camera.native_setParameters(Native Method)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.hardware.Camera.setParameters(Camera.java:627)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
com.totsp.bookworm.BookEntryForm$4.surfaceChanged(BookEntryForm.java:139)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.SurfaceView.updateWindow(SurfaceView.java:460)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.View.draw(View.java:6538)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.View.draw(View.java:6538)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1312)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.View.draw(View.java:6538)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:186
6)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewRoot.draw(ViewRoot.java:1364)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewRoot.performTraversals(ViewRoot.java:1118)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.view.ViewRoot.handleMessage(ViewRoot.java:1650)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.os.Handler.dispatchMessage(Handler.java:99)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.os.Looper.loop(Looper.java:123)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
android.app.ActivityThread.main(ActivityThread.java:4595)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
java.lang.reflect.Method.invokeNative(Native Method)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
java.lang.reflect.Method.invoke(Method.java:521)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-03 10:37:32.291 E/AndroidRuntime(2539) : at
dalvik.system.NativeStart.main(Native
Method)
04-03 10:37:37.321 E/JavaBinder(75) : !!! FAILED BINDER TRANSACTION !!!
04-03 10:37:37.352 E/mm-camera-ctrlcmd(57) : config_proc_CAMERA_STOP_SNAPSHOT:
invalid state 0
04-03 10:37:37.491 E/ActivityManager(75) : fail to set top app changed!
04-03 10:37:52.181 E/webcoreglue(2262) : The real object has been deleted
Original comment by chris.ol...@rigleys.net
on 3 Apr 2010 at 10:09
Thanks for the log Chris, that will help. I haven't fixed this one yet though,
the
last update was a fix for some scanning issues in some circumstances mainly.
This one
is still on the TODO list.
Actually, I think I am going to remove the Camera stuff from the form entry
page
(http://code.google.com/p/and-bookworm/issues/detail?id=14) and that will solve
this
issue. Then I am going to change the manage cover image edit page to allow
users to
select a pic from their gallery or sd card - that way you'll be able to use the
built
in Camera, not the one I tried to hack around and understand ;). Also, that
will
mean you can take pics for cover images even after creating the book (right now
can't
do that).
Original comment by charlie....@gmail.com
on 3 Apr 2010 at 5:48
N1 user reported this today also.
Original comment by charlie....@gmail.com
on 12 Apr 2010 at 1:47
Note progress on issue 14, this is almost fixed/ready - just some testing left
to go.
New release with fix for this SOON.
Original comment by charlie....@gmail.com
on 12 Apr 2010 at 1:48
Done in 1.0.5. Release imminent.
Original comment by charlie....@gmail.com
on 13 Apr 2010 at 2:00
Original comment by charlie....@gmail.com
on 14 Apr 2010 at 1:41
Original comment by charlie....@gmail.com
on 14 Apr 2010 at 2:03
Original issue reported on code.google.com by
charlie....@gmail.com
on 2 Apr 2010 at 9:57