Monday, March 25, 2013

Re: [android-developers] Re: App works on Samsung Galaxy Note ONLY when I debug it with eclipse



Il giorno domenica 24 marzo 2013 23:49:40 UTC+1, Kostya Vasilyev ha scritto:
If I were to guess, I'd say there might be a thread race issue

I suppose a race issue too but usually race issues are random, in this case with 2.3.6 it always works with galaxy it always not work (apart with debugger)
When it "hangs", use the Eclipse DDMS perspective to attach the
debugger (select the device, then your app on it, then tap the green
"Bug" icon). Next, switch to Debug perspective / tab, and use the
Pause button there to pause and examine your threads.

Great hint thanks! I did not remember that I can attach debugger AFTER it hangs!!
 
That's what I would do anyway.

-- K

2013/3/25 Mario Giammarco <mgiam...@gmail.com>:
> Can no one help me? Is there a thread problem in asynctask?
>
> Il giorno mercoledì 20 marzo 2013 10:03:35 UTC+1, Mario Giammarco ha
> scritto:
>>
>> Hello,
>> I have written an Android app that uses fusesource stompjms client.
>>
>> The app connect to a server with stompjms. I am using AsyncTask for
>> network related operations.
>>
>> The app:
>>
>> - works on all 2.3 devices;
>> - works on 2.3 emulator;
>> - works on 4.0 emulator;
>> - works on HTC 4.0 phone;
>> - hangs on connect to server on Motorola RAZR 4.0;
>> - hangs on connect to server on Samsung Galaxy Note 4.0;
>> - WORKS ON GALAXY NOTE WHEN I AM DEBUGGING IT WITH ECLIPSE AND USB CABLE!
>>
>> I can see that stomp jms is an asynchronous framework that uses
>> CountDownLatch java class.
>> When it hangs I am pretty sure that it waits forever on latch.await()
>>
>> Please help me, it is a very strange behaviour!
>>
>> Thanks,
>> Mario
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-d...@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment