[android-developers] Strange exception

2011-06-15 Thread Felix Garcia Lainez
Hi,

I have received an exception on my application from a user that
downloaded application from market. I know also that this user has a
HTC Glacier with API Level 8. Also i received the same exception from
other user. The problem is that i don't know how to find the place in
which is generated.. I don't see any code line in the stacktrace of
our application.

I would like to know how to handle this kind of exceptions in which
there is not any reference to my application code, and in particular
what could have generated this one...

java.lang.NullPointerException
at android.widget.TextView.onTouchEvent(TextView.java:6896)
at android.view.View.dispatchTouchEvent(View.java:3778)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1709)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1117)
at android.app.Dialog.dispatchTouchEvent(Dialog.java:642)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1693)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1802)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:5097)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)

Thanks!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Strange exception

2011-06-15 Thread TreKing
On Wed, Jun 15, 2011 at 7:23 PM, Felix Garcia Lainez 
fgarcialai...@gmail.com wrote:

 I would like to know how to handle this kind of exceptions in which
 there is not any reference to my application code, and in particular
 what could have generated this one...


Those are tricky - if it's rare (these are the only two reports you've ever
gotten) then just ignore it. It's not worth the trouble.
If it's frequent, then I would recommend a custom bug-reporting solution
like ACRA that lets you include more information to track down bugs, like
your own internal logs.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] strange exception when calling getBlob

2010-03-15 Thread Sandy
Hi all

   I'm using blob to store encoded byte data. It could be stored.
  But when I try to read it ,application throws
android.database.sqlite.SQLiteException: unknown error: INTEGER data
in getBlob_native.
  I just try to change other way to encode byte data and then put it
in blob field , the exception will gone.
   I really want to know why i got this exception.
   thanks

-Sandy


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Strange exception that doesn't cause any harm apparently!

2009-11-30 Thread babu
I have a ListActivity class that has a list of items. I am using the
List14 (http://developer.android.com/guide/samples/ApiDemos/src/com/
example/android/apis/view/List14.html) sample from android to build
this ListActivity with icons+text for each row. Clicking each of these
items would launch an Activity.

Whenever my ListActivity starts, I get the below strange exceptions in
logcat, but it seems to cause no harm, as the application works fine.
But I'm curious as to what could be causing it. Any ideas?

D/skia(29776):  read threw an exception
W/System.err(29776): java.io.IOException: Is a directory
W/System.err(29776):at
org.apache.harmony.luni.platform.OSFileSystem.readImp
l(Native Method)
W/System.err(29776):at
org.apache.harmony.luni.platform.OSFileSystem.read(OS
FileSystem.java:154)
W/System.err(29776):at java.io.FileInputStream.read
(FileInputStream.java:333
)
W/System.err(29776):at java.io.BufferedInputStream.fillbuf
(BufferedInputStre
am.java:200)
W/System.err(29776):at java.io.BufferedInputStream.read
(BufferedInputStream.
java:350)
W/System.err(29776):at
android.graphics.BitmapFactory.nativeDecodeStream(Nat
ive Method)
W/System.err(29776):at android.graphics.BitmapFactory.decodeStream
(BitmapFac
tory.java:451)
W/System.err(29776):at android.graphics.BitmapFactory.decodeFile
(BitmapFacto
ry.java:270)
W/System.err(29776):at android.graphics.BitmapFactory.decodeFile
(BitmapFacto
ry.java:295)
W/System.err(29776):at org.examples.listexample
$EfficientAdapter.getView(
FitDeck.java:105)
W/System.err(29776):at android.widget.AbsListView.obtainView
(AbsListView.jav
a:1255)
W/System.err(29776):at android.widget.ListView.makeAndAddView
(ListView.java:
1658)
W/System.err(29776):at android.widget.ListView.fillDown
(ListView.java:637)
W/System.err(29776):at android.widget.ListView.fillSpecific
(ListView.java:12
24)
W/System.err(29776):at android.widget.ListView.layoutChildren
(ListView.java:
1494)
W/System.err(29776):at android.widget.AbsListView.onLayout
(AbsListView.java:
1112)
W/System.err(29776):at android.view.View.layout(View.java:6569)
W/System.err(29776):at android.widget.FrameLayout.onLayout
(FrameLayout.java:
333)
W/System.err(29776):at android.view.View.layout(View.java:6569)
W/System.err(29776):at android.widget.LinearLayout.setChildFrame
(LinearLayou
t.java:1119)
W/System.err(29776):at android.widget.LinearLayout.layoutVertical
(LinearLayo
ut.java:998)
W/System.err(29776):at android.widget.LinearLayout.onLayout
(LinearLayout.jav
a:918)
W/System.err(29776):at android.view.View.layout(View.java:6569)
W/System.err(29776):at android.widget.FrameLayout.onLayout
(FrameLayout.java:
333)
W/System.err(29776):at android.view.View.layout(View.java:6569)
W/System.err(29776):at android.view.ViewRoot.performTraversals
(ViewRoot.java
:979)
W/System.err(29776):at android.view.ViewRoot.handleMessage
(ViewRoot.java:161
3)
W/System.err(29776):at android.os.Handler.dispatchMessage
(Handler.java:99)
W/System.err(29776):at android.os.Looper.loop(Looper.java:123)
W/System.err(29776):at android.app.ActivityThread.main
(ActivityThread.java:4
203)
W/System.err(29776):at java.lang.reflect.Method.invokeNative
(Native Method)
W/System.err(29776):at java.lang.reflect.Method.invoke(Method.java:
521)
W/System.err(29776):at com.android.internal.os.ZygoteInit
$MethodAndArgsCalle
r.run(ZygoteInit.java:791)
W/System.err(29776):at com.android.internal.os.ZygoteInit.main
(ZygoteInit.ja
va:549)
W/System.err(29776):at dalvik.system.NativeStart.main(Native
Method)
D/skia(29776):  read threw an exception
W/System.err(29776): java.io.IOException: Is a directory
W/System.err(29776):at
org.apache.harmony.luni.platform.OSFileSystem.readImp
l(Native Method)
W/System.err(29776):at
org.apache.harmony.luni.platform.OSFileSystem.read(OS
FileSystem.java:154)
W/System.err(29776):at java.io.FileInputStream.read
(FileInputStream.java:333
)
W/System.err(29776):at java.io.BufferedInputStream.fillbuf
(BufferedInputStre
am.java:200)
W/System.err(29776):at java.io.BufferedInputStream.read
(BufferedInputStream.
java:350)
W/System.err(29776):at
android.graphics.BitmapFactory.nativeDecodeStream(Nat
ive Method)
W/System.err(29776):at android.graphics.BitmapFactory.decodeStream
(BitmapFac
tory.java:451)
W/System.err(29776):at android.graphics.BitmapFactory.decodeFile
(BitmapFacto
ry.java:270)
W/System.err(29776):at android.graphics.BitmapFactory.decodeFile
(BitmapFacto
ry.java:295)
W/System.err(29776):at org.examples.listexample
$EfficientAdapter.getView(
FitDeck.java:105)
W/System.err(29776):at android.widget.AbsListView.obtainView
(AbsListView.jav
a:1255)
W/System.err(29776):at android.widget.ListView.makeAndAddView
(ListView.java:
1658)
W/System.err(29776):at android.widget.ListView.fillDown
(ListView.java:637)
W/System.err(29776):at 

[android-developers] Strange Exception

2009-10-29 Thread Samuh

In my application, the user selects an image from the sdcard. I
launch  Intent.ACTION_GET_CONTENT action for  image/* type. This
displays the com.android.camera/.ImageGallery2 activity. When the user
makes a selection, I create a Bitmap Object using Media.createBitmap
(..).

However, when the user was trying to open an image from the SD card
the app ran into strange errors.

Stack dump :

10-29 08:51:35.536: ERROR/IMemory(18142): binder=0x191868 transaction
failed fd=-2147483647, size=0, err=-2147483646 (Unknown error:
2147483646)
10-29 08:51:35.536: ERROR/IMemory(18142): cannot dup fd=-2147483647,
size=0, err=-2147483646 (Bad file number)
10-29 08:51:35.536: ERROR/IMemory(18142): cannot map BpMemoryHeap
(binder=0x191868), size=0, fd=-1 (Bad file number)
10-29 08:51:35.555: ERROR/Surface(18142): Couldn't map Surface's heap
(binder=0x191868, heap=0x1918c0)
10-29 08:51:35.555: DEBUG/AndroidRuntime(18142): Shutting down VM
10-29 08:51:35.555: WARN/dalvikvm(18142): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
10-29 08:51:35.585: ERROR/AndroidRuntime(18142): Uncaught handler:
thread main exiting due to uncaught exception
10-29 08:51:35.675: ERROR/AndroidRuntime(18142):
java.lang.IllegalArgumentException
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
android.view.Surface.lockCanvasNative(Native Method)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
android.view.Surface.lockCanvas(Surface.java:196)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
android.view.ViewRoot.draw(ViewRoot.java:1175)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
android.os.Looper.loop(Looper.java:123)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
android.app.ActivityThread.main(ActivityThread.java:3948)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
java.lang.reflect.Method.invokeNative(Native Method)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
java.lang.reflect.Method.invoke(Method.java:521)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at
dalvik.system.NativeStart.main(Native Method)

Strangely, I was not able to recreate this, but it has got me
worrying.
What does this error mean? What are the possible scenarios that can
lead to this error?

Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---