Still debugging.
What I have found:
1) no deadlocks
2) stomp library uses hawtdispatch. They then use java NIO and they open 
sockets and channels.

The problem is:
- the thread waiting for a reply is doing the right thing: infact nothing 
is sent so nothing can be received.

So the real problem is: the thread that must send data with nio send 
nothing. 
But if I go in debugger stepping mode it sends data!
I am getting crazy, since I am 99% sure that there is no deadlock.
Does the debugger disable jit? Change bytecode?

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, and 
> the debug build works because of slower performance (== different 
> timing of events in the app). 
>
> 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. 
>
> That's what I would do anyway. 
>
> -- K 
>
> 2013/3/25 Mario Giammarco <mgiam...@gmail.com <javascript:>>: 
> > 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<javascript:> 
> > To unsubscribe from this group, send email to 
> > android-developers+unsubscr...@googlegroups.com <javascript:> 
> > 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+unsubscr...@googlegroups.com <javascript:>. 
> > 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to