products forums blog support careers about
  History | Log In     View a printable version of the current page.  
PRO USERS, to ensure 'PRIORITY SUPPORT' make sure that your ASAP account is "tagged" when you file the request. Click here for instructions on how to tag your account.
Issue Details (XML | Word | Printable)

Key: ROR-1089
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Chris Williams
Reporter: James Baker
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Aptana RadRails

Hang/pause on "[Re]Building workspace" when saving a file, opening project

Created: 22/Dec/08 04:32 PM   Updated: 24/Jun/09 10:21 AM
Return to search
Component/s: Editor: Ruby
Affects Version/s: None
Fix Version/s: 1.1.1

File Attachments: 1. Text File .bak_0.log (1001 kb)
2. Text File .log (836 kb)
3. PNG File aptanahang.png (25 kb)
4. JPEG File feature version.jpg (83 kb)

Issue Links:
Related
 

Impact on Workflow: Critical
Specific Build Number: 1.2.7.024774
Studio Install Type: Standalone
Operating System: Windows Vista
Participants: Aron Rotteveel, Chris Williams and James Baker


 Description  « Hide
I believe the problems started soon but not immediately after the 1.2.1.020234 update.

Saving ruby (or javascript files, but with ruby files also open) files started taking more than 10 seconds. This would be paused on a task called "Refreshing workspace", with detail "Resources to refresh: X" where X is some number in the hundreds and doesn't change (much if ever that I can see).
In bak_0.log, this looks like the most likely offender:
java.lang.NullPointerException
at java.util.Hashtable.get(Unknown Source)
at org.rubypeople.rdt.internal.core.buffer.LRUCache.get(LRUCache.java:206)
at org.rubypeople.rdt.internal.core.parser.RubyParser.parse(RubyParser.java:134)
at org.rubypeople.rdt.internal.core.parser.RubyParser.parse(RubyParser.java:121)
at org.rubypeople.rdt.internal.ti.DataFlowTypeInferrer.infer(DataFlowTypeInferrer.java:78)
at org.rubypeople.rdt.internal.ti.DataFlowTypeInferrer.infer(DataFlowTypeInferrer.java:1)
at org.rubypeople.rdt.internal.ti.util.MethodInvocationLocator.handleNode(MethodInvocationLocator.java:93)
at org.rubypeople.rdt.internal.core.parser.InOrderVisitor.visitCallNode(InOrderVisitor.java:329).......

Oh - I believe this "Refreshing workspace" hang also happens when "edit causes Perforce plugin to checkout" should happen - and that's a hang, not a pause.

******

When closing/opening projects:
This hangs (can't get it to complete at all, though it did once out of 5 or 6 tries) on task "Building workspace" with detail "Analyzing Files...".
This task can't be cancelled - if the X is pressed, it appends (Cancelled) to the task title but then never goes away or does anything else.
In .log, lots (hundreds?) of failures in "getconnection" might be relevant:
java.lang.NullPointerException
at zigen.plugin.db.core.ConnectionManager.getConnection(ConnectionManager.java:66)
at zigen.plugin.db.core.Transaction.createConnection(Transaction.java:171)
at zigen.plugin.db.core.Transaction.getConnection(Transaction.java:123)
at zigen.plugin.db.core.SchemaSearcher.execute(SchemaSearcher.java:29)
at org.radrails.rails.internal.ui.RailsDBConnector.createNewConfig(RailsDBConnector.java:191)
at org.radrails.rails.internal.ui.RailsDBConnector.addDB(RailsDBConnector.java:106)
at org.radrails.rails.internal.ui.RailsDBConnector.access$0(RailsDBConnector.java:99)
at org.radrails.rails.internal.ui.RailsDBConnector$4.run(RailsDBConnector.java:252)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)........

Both problems are intermittent: once in a while I can open/close a project, and save has worked off & on a few times.
What other info can I get you? I know I don't have a great concrete repro.
This is critical for me - I'm trying out an alternate IDE as my only way to get work done.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
James Baker - 22/Dec/08 04:33 PM
This stacktrace (in .log) seems to be related to the "hang on trying to edit" problem:
java.lang.ClassCastException: org.jruby.ast.BlockNode cannot be cast to org.jruby.ast.WhenNode
at com.aptana.rdt.internal.parser.warnings.UnecessaryElseVisitor$ReturnVisitor.visitCaseNode(UnecessaryElseVisitor.java:98)
at org.jruby.ast.CaseNode.accept(CaseNode.java:80)
at org.jruby.ast.visitor.AbstractVisitor.acceptNode(AbstractVisitor.java:149)
at org.rubypeople.rdt.internal.core.parser.InOrderVisitor.visitNewlineNode(InOrderVisitor.java:759)
at org.jruby.ast.NewlineNode.accept(NewlineNode.java:74)
at com.aptana.rdt.internal.parser.warnings.UnecessaryElseVisitor.alwaysExplicitReturn(UnecessaryElseVisitor.java:55)
at com.aptana.rdt.internal.parser.warnings.UnecessaryElseVisitor.visitIfNode(UnecessaryElseVisitor.java:45)
at org.rubypeople.rdt.core.parser.warnings.DelegatingVisitor.visitIfNode(DelegatingVisitor.java:542)

James Baker - 22/Dec/08 05:02 PM
No, the "getConnection" exceptions don't appear to be related: I see something about "Rails DB Connection" flash by on the progress pane upon startup. It looks like the only thing logged is this:

!ENTRY org.rubypeople.rdt.launching 1 -1 2008-12-22 14:59:08.130
!MESSAGE Starting: C:\dev\zaphod\workgroup-support\ruby\bin\ruby.exe -I "C:\Documents and Settings\jbaker\My Documents\configs\Aptana Studio\.metadata\.plugins\org.rubypeople.rdt.launching\ruby\flush" -rrdt_stream_sync.rb – C:\dev\zaphod\workgroup-support\ruby\bin\gem dependency rails -v 1.1.6

!ENTRY com.aptana.rdt 1 -1 2008-12-22 14:59:08.536
Unable to render embedded object: File (MESSAGE Got into a bad state) not found.

!ENTRY org.eclipse.core.resources 4 372 2008-12-22 14:59:08.536
!MESSAGE Resource /zaphod-rspec114 is not open.

These three messages are linked with a successful "refreshing workspace" (that took about 10 seconds) upon starting Aptana.


James Baker - 22/Dec/08 05:03 PM
And it looks like something tried to execute markup on my last comment.
The mangled line is "MESSAGE Got into a bad state" with bangs on the beginning and end.

James Baker - 22/Dec/08 05:18 PM
Here's the javaw stacktrace from VisualStudio when Aptana is hung:

> ntdll.dll!_KiFastSystemCallRet@0()
ntdll.dll!_NtWaitForMultipleObjects@20() + 0xc bytes
kernel32.dll!_WaitForMultipleObjectsEx@20() - 0x48 bytes
user32.dll!_RealMsgWaitForMultipleObjectsEx@20() + 0xd9 bytes
user32.dll!_MsgWaitForMultipleObjects@20() + 0x1f bytes
GdiPlus.dll!BackgroundThreadProc() + 0x5c bytes
kernel32.dll!_BaseThreadStart@8() + 0x37 bytes

This might not be helpful at all.


James Baker - 22/Dec/08 05:28 PM
I notice that a week ago, I have NINE megabytes of logs containing just this error (full trace in the attached bak_0.log, as mentioned):
!ENTRY org.rubypeople.rdt.core 4 0 2008-12-16 19:49:24.110
!MESSAGE
!STACK 0
java.lang.NullPointerException
at java.util.Hashtable.get(Unknown Source)
at org.rubypeople.rdt.internal.core.buffer.LRUCache.get(LRUCache.java:206)
at org.rubypeople.rdt.internal.core.parser.RubyParser.parse(RubyParser.java:134)
at org.rubypeople.rdt.internal.core.parser.RubyParser.parse(RubyParser.java:121)

All from the same minute. That's probably the best place to look.


Change by Michael Xia - 23/Dec/08 01:10 PM
Field Original Value New Value
Assignee Sandip Chitale [ schitale ] Chris Williams [ cwilliams ]

Change by Chris Williams - 29/Dec/08 12:22 PM
Project Aptana Studio [ 10002 ] Aptana RadRails [ 10003 ]
Key STU-2980 ROR-1089
Affects Version/s Aptana Studio 1.2 [ 10024 ]


Change by Chris Williams - 29/Dec/08 12:23 PM
Status Open [ 1 ] Awaiting User Response [ 10001 ]

James Baker - 29/Dec/08 12:29 PM
RadRails version: 1.1.0.200812081651NGT

Change by James Baker - 29/Dec/08 12:29 PM
Attachment feature version.jpg [ 12247 ]

Chris Williams - 29/Dec/08 12:32 PM
Actually, I guess the version doesn't matter I can see the bug plain as day in my code. ..

Change by Chris Williams - 29/Dec/08 12:32 PM
Status Awaiting User Response [ 10001 ] Open [ 1 ]

Change by Chris Williams - 29/Dec/08 12:33 PM
Fix Version/s 1.1.1 [ 10150 ]
Fix Version/s 1.2.0 [ 10082 ]
Affects Version/s 1.1.0 [ 10021 ]
Priority Unprioritized [ 6 ] Critical [ 2 ]
Component/s Editor: Ruby [ 10045 ]

Chris Williams - 29/Dec/08 12:34 PM
Fixed in 1.1 maintenance branch. Targeted for a 1.1.1 release and will get merged into trunk for a 1.2.0 release as well.

Change by Chris Williams - 29/Dec/08 12:34 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]

Chris Williams - 30/Dec/08 03:38 PM
Make sure all bugs marked fixed for 1.1.1 are also marked as fixed for 1.2.0 as the branch bugfixes have now been merged over to trunk.

Chris Williams - 10/Mar/09 12:01 PM
Only tie things resolved in 1.1.2 and 1.2.0 to 1.1.2 as fixed version (since it's assumed that 1.2.0 as a later release will contain all the previous release's bugfixes).

Change by Chris Williams - 10/Mar/09 12:01 PM
Fix Version/s 1.1.2 [ 10153 ]
Fix Version/s 1.2.0 [ 10082 ]
Fix Version/s 1.1.1 [ 10150 ]

Change by Chris Williams - 10/Mar/09 12:12 PM
Fix Version/s 1.1.1 [ 10150 ]
Fix Version/s 1.1.2 [ 10153 ]

Aron Rotteveel - 22/Jun/09 07:00 AM
I have exactly the same problem in 1.2.7.024774. Starting Aptana with -clean does not help; also, it only happens on certain projects.

Change by Aron Rotteveel - 22/Jun/09 07:00 AM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Affects Version/s 1.1.0 [ 10021 ]
Operating System [Windows XP] [Windows Vista]
Last Known Good Version Whatever auto-update was immediately previous to 1.2.1.020234
Specific Build Number 1.2.1.020234 1.2.7.024774
Relevant Browser [Firefox]

Chris Williams - 23/Jun/09 02:36 PM
Aron: What version of RadRails do you have installed? Do your logs contain this exact same error?

Change by Chris Williams - 23/Jun/09 02:36 PM
Status Reopened [ 4 ] Awaiting User Response [ 10001 ]

Aron Rotteveel - 24/Jun/09 02:12 AM
Apologies, my statement "exactly the same" is not entirely correct; this behaviour occurs when opening certain PHP projects. The only way to fix it is to remove the project (not the contents) and re-create it.

Change by Aron Rotteveel - 24/Jun/09 02:12 AM
Status Awaiting User Response [ 10001 ] Open [ 1 ]

Change by Chris Williams - 24/Jun/09 10:20 AM
Link This issue relates to PHP-980 [ PHP-980 ]

Chris Williams - 24/Jun/09 10:21 AM
Closing ticket again. Ticket PHP-980 opened for Aron.

Change by Chris Williams - 24/Jun/09 10:21 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]

Change by Chris Williams - 24/Jun/09 10:21 AM
Status Resolved [ 5 ] Closed [ 6 ]