Bug 281118 - [fiximprove][debug]: Emulator crushing without trace while debuging
Summary: [fiximprove][debug]: Emulator crushing without trace while debuging
Status: CLOSED WONTFIX
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: Core (show other bugs)
Version: 0.9.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate, needinfo
Depends on:
Blocks:
 
Reported: 2009-06-22 13:38 EDT by Despot CLA
Modified: 2009-07-15 10:31 EDT (History)
3 users (show)

See Also:


Attachments
system thread and disabled stepping buttons (30.08 KB, image/jpeg)
2009-06-22 13:41 EDT, Despot CLA
no flags Details
debug window after clicking pause button (74.54 KB, image/jpeg)
2009-06-22 15:57 EDT, Despot CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Despot CLA 2009-06-22 13:38:09 EDT
When I am trying to debug the application, it crashes while I am invoking a command from a menu. It doesn't leave any trace and it freezes - I cannot step forward. The trace is empty:
"Waiting for KVM...
Connecting to 127.0.0.1 on port 2800
Waiting for debugger on port 3586
Connection received.
Running with storage root C:\Documents and Settings\Dev\j2mewtk\2.5.2\appdb\temp.DefaultGrayPhone6
Running with locale: English_United States.1252
Running in the identified_third_party security domain
Connected to KVM"

And the system thread says "stepping" when actually is frozen in some state. (You can see that from the pictures, if you get them)

I tried to restart eclipse, clean the project, restart the pc. It doesn't work. The same happens. When I debugged I got to a line were he tries to execute a getter, but at the point it exits the getter it freezes. On the other hand the last time I debug the app, I had some problems with the record store. I tried to readInt when there was no such field in that record (at least that's what it said).
Comment 1 Despot CLA 2009-06-22 13:41:24 EDT
Created attachment 139779 [details]
system thread and disabled stepping buttons

This jpg shows that while the system thread says "stepping", the buttons for stepping are unavailable => that clearly states it is frozen.
Comment 2 Despot CLA 2009-06-22 15:47:08 EDT
The first time I succeeded to find a workaround by clicking on the pause button. Than a "System Thread [] (Suspend)" appears and I can click on the run button to continue. But as I continue working with the app (reaching a command in a menu again), I get the same and this time when I try the same I get the error "com.sun.jdi.InternalException: Got error code in reply:10 occured resuming VM." and than it freezes again.
Comment 3 Despot CLA 2009-06-22 15:57:33 EDT
Created attachment 139799 [details]
debug window after clicking pause button

The look of the debug window after clicking the pause button the first time it freezes. When it freezes the second time and I try to run it with the run button, I get the error.
Comment 4 Gustavo de Paula CLA 2009-06-23 06:24:31 EDT
if you do a simple midlet, can you debug it? can you double check if you have the debug timeout settings ok? (http://dsdp.eclipse.org/help/latest/index.jsp?topic=/org.eclipse.mtj.doc.user/html/gettingstarted/gettingstarted.html)
are you able to do a debug on a different OS? can you debug with a a different emulator (like the motorola one?)

MTJ code don't do almost anything during the debug. it just starts a JDT debug session... so the issue might be on a different place

:)
gep 

Comment 5 Despot CLA 2009-07-01 14:39:00 EDT
Everything was done by the book - all the stuff that you mentioned with the timeout settings... Anyway, I found a workaround. I just don't use as many breakpoints as I did. The Thread is working properly with one breakpoint. 

Regards,
Despot
Comment 6 Gustavo de Paula CLA 2009-07-09 10:06:09 EDT
change target milestone to galileo SR1 
Comment 7 Gustavo de Paula CLA 2009-07-15 10:30:51 EDT
this bug was not included on 1.0.1
Comment 8 Gustavo de Paula CLA 2009-07-15 10:31:10 EDT
close bug