maiconpeixinho / eyefidroid

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

Preview of Nikon D90 photos failing. Cause:image resize or aspect ratio. #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Upload a picture from a Nikon D90
2.
3.

What is the expected output? What do you see instead?
I expect to see the image previewed in the gallery.  Instead the 
application throws the error window and asks me to force it to close.

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

Please provide any additional information below.
This probably has to do with the way you resize photos of a different 
aspect ratio.
Here are some of the errors I found in the debugger:
1.
11-02 12:20:40.458: ERROR/AndroidRuntime(9261): Uncaught handler: thread 
main exiting due to uncaught exception
11-02 12:20:40.469: ERROR/AndroidRuntime(9261): 
java.lang.NullPointerException
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
com.leshak.eyefidroid.EyeFiDroid.uploadImageProgress(EyeFiDroid.java:492)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
com.leshak.eyefidroid.EyeFiDroid.access$1(EyeFiDroid.java:483)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
com.leshak.eyefidroid.EyeFiDroid$1.handleMessage(EyeFiDroid.java:766)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
android.os.Looper.loop(Looper.java:123)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
android.app.ActivityThread.main(ActivityThread.java:3948)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
java.lang.reflect.Method.invokeNative(Native Method)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
java.lang.reflect.Method.invoke(Method.java:521)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
11-02 12:20:40.469: ERROR/AndroidRuntime(9261):     at 
dalvik.system.NativeStart.main(Native Method)

This is one as well

11-02 12:19:58.978: ERROR/AndroidRuntime(8968): Uncaught handler: thread 
main exiting due to uncaught exception
11-02 12:19:59.018: ERROR/AndroidRuntime(8968): 
java.lang.RuntimeException: Canvas: trying to use a recycled bitmap 
android.graphics.Bitmap@4313afc8
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.graphics.Canvas.throwIfRecycled(Canvas.java:942)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.graphics.Canvas.drawBitmap(Canvas.java:1013)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:250)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.widget.ImageView.onDraw(ImageView.java:842)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.View.draw(View.java:5838)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.widget.AbsListView.dispatchDraw(AbsListView.java:1319)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.widget.ListView.dispatchDraw(ListView.java:2820)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.View.draw(View.java:5944)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.widget.AbsListView.draw(AbsListView.java:2121)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.View.draw(View.java:5841)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.View.draw(View.java:5841)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
com.android.internal.policy.impl.PhoneWindow$DecorView.draw
(PhoneWindow.java:1847)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewRoot.draw(ViewRoot.java:1217)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.os.Looper.loop(Looper.java:123)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
android.app.ActivityThread.main(ActivityThread.java:3948)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
java.lang.reflect.Method.invokeNative(Native Method)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
java.lang.reflect.Method.invoke(Method.java:521)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
11-02 12:19:59.018: ERROR/AndroidRuntime(8968):     at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by Elder.Su...@gmail.com on 2 Nov 2009 at 7:18

GoogleCodeExporter commented 9 years ago
Can you send me some of photos from D90 (leshak (at) leshak.ru)

Original comment by Lesha.Kr...@gmail.com on 9 Nov 2009 at 6:07

GoogleCodeExporter commented 9 years ago
This is a couple of images I took.

I see the problem with 1.0.4

Original comment by rcl...@gmail.com on 29 Mar 2010 at 1:09

Attachments: