[android-developers] Re: Very nasty error for no reason

2009-08-31 Thread fadden
On Aug 29, 3:51 pm, longhairedsi wrote: > I will post a bug report with example code after the developer > challenge monday deadline. An APK that explodes when launched would be best. The stack trace doesn't say much, so a reproducible test case would be very helpful. pid: 1710, tid: 1711 >>>

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi
Hi Diane, I will post a bug report with example code after the developer challenge monday deadline. I've found the problem, it seems to be totaly unrelated, but this is for sure where the problem comes from. I reverted project then added code line by line. This is where it went wrong: (this is

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Roman ( T-Mobile USA)
Any ideas what is the size of your input stream? I assume that when you call the method with passing the input stream, your stack is too small that's why you get the segmentation fault. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements i

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Dianne Hackborn
Could you please file a bug report with full code to reproduce? Also I know this is not going to be helpful at all, but I would really recommend staying away from DocumentBuilder -- it is a lot more overhead compared to directly parsing the XML. In fact, by far the most efficient way to parse an

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi
Sorry, forgot to say that the method builds everything as expected, when inspecting objects in the debugger the xml looks good the JamPack looks good Cheers Simon On Aug 29, 3:30 pm, longhairedsi wrote: > Arggh! it seems to be a random error, it just happned again a few > times. If I debug

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi
Arggh! it seems to be a random error, it just happned again a few times. If I debug and step through it works fine. If i run normally it fails. the code fails when builder.create().show(); is called on the dialogue Here's the snippets( i'm using the template pattern to build different loading o

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi
Ok i found the problem. But don't ask my why this would cause a problem, I have no idea! It stems from me passing the inputstream into a method. This is what i was doing. //in the activity InputStream filestream = null; filestream = mCtx.getResources().openRawResource(R.raw.default_song); Docume

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
Firstly, I agree it does fail in a "spectacular way" :) Secondly, please paste your code snippet : before and after ! Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual ca