How to hang your GUI

These steps have worked for me repeatedly.

All of these steps may not be necessary, but I have not tested all the permutations.

1) Open the Help page: Help->Help Topics
2) Open a code page (I used DummyRails->app->controllers->transaction_paths_controller.rb
3) Select enclosing folder (Move cursor to enclosing folder and left click (I used DummyRails))
4) reformat the code: Code->Reformat Code

Note that the user interface panel 'Reformat Code' now has little tiny buttons with no text.

Note that the user interface panel cannot be closed, even with Rt-click->Close applied to the top bar of the user interface panel.

Note that you cannot close RubyMines either.

Note that no keystrokes are accepted anywhere on RubyMines or user interface or Help page.

Hung.

I am using RM 3.2.4, but this behavior has been observed on earlier versions.

To regain control,

ps ax | grep Mine

kill -9 <pid of above output>

Not quite - window image is still there..

ps ax | grep idea

kill -9 <pid of above output>

-------
Note - having the Help page open seems to be necessary to hang GUI.

On one of my tests, I noticed a panel that came up asking if I wanted to reload system.

I said yes, and RM seemed to restart - with all of my file names now in blue..

Have fun

0
3 comments
Avatar
Permanently deleted user

Thanks a lot for description, we'll ask our QA engineer to reproduce it, and create an issue if she succeded.

Regards,
Oleg

0

Incidentally, I am seeing something similar. At the time of nonresponsive death, RM logs the following to idea.log:

2011-09-19 15:32:12,213 [449119052]   INFO -   git4idea.commands.GitHandler - /usr/bin/git rev-list --timestamp --max-count=1 HEAD --
2011-09-19 15:32:23,428 [449130267]  ERROR - llij.ide.plugins.PluginManager - breakpoint(type: START_TAG) encountered
java.lang.AssertionError: breakpoint(type: START_TAG) encountered
     at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:76)
     at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48)
     at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:105)
     at org.rubyforge.debugcommons.ReadersSupport.processElement(ReadersSupport.java:166)
     at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:122)
     at org.rubyforge.debugcommons.ReadersSupport.access$200(ReadersSupport.java:44)
     at org.rubyforge.debugcommons.ReadersSupport$XPPLoop.run(ReadersSupport.java:299)
2011-09-19 15:32:23,429 [449130268]  ERROR - llij.ide.plugins.PluginManager - JetBrains RubyMine 3.2.4  Build #RM-107.612
2011-09-19 15:32:23,429 [449130268]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.6.0_25
2011-09-19 15:32:23,429 [449130268]  ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
2011-09-19 15:32:23,429 [449130268]  ERROR - llij.ide.plugins.PluginManager - Vendor: Sun Microsystems Inc.
2011-09-19 15:32:23,429 [449130268]  ERROR - llij.ide.plugins.PluginManager - OS: Linux
2011-09-19 15:32:23,429 [449130268]  ERROR - llij.ide.plugins.PluginManager - Last Action: StepOver
2011-09-19 15:32:28,550 [449135389]   INFO -   git4idea.commands.GitHandler - /usr/bin/git rev-list --timestamp --max-count=1 HEAD --
2011-09-19 15:32:35,021 [449141860]   WARN - debugger.impl.RubyDebugProcess - Couldn't add breakpoint during timeout
2011-09-19 15:32:36,538 [449143377]   WARN - debugger.impl.RubyDebugProcess - Couldn't remove breakpoint during timeout
2011-09-19 15:32:38,141 [449144980]   WARN - debugger.impl.RubyDebugProcess - Couldn't remove breakpoint during timeout
2011-09-19 15:33:08,256 [449175095]   INFO - j.util.indexing.FileBasedIndex - START INDEX SHUTDOWN
2011-09-19 15:33:08,289 [449175128]   INFO - j.util.indexing.FileBasedIndex - END INDEX SHUTDOWN
2011-09-19 15:33:08,289 [449175128]   INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2011-09-19 15:33:08,289 [449175128]   INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2011-09-19 15:33:08,290 [449175129]   INFO - .history.utils.LocalHistoryLog - Purging local history...
2011-09-19 15:33:08,324 [449175163]   INFO - .history.utils.LocalHistoryLog - Local history storage successfully closed.
2011-09-19 15:33:08,324 [449175163]   INFO - newvfs.persistent.PersistentFS - VFS dispose started
2011-09-19 15:33:08,327 [449175166]   INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2011-09-19 15:33:08,332 [449175171]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDEA SHUTDOWN --------------------------------------
----------------

When this happens however, the hang is hard. The port 3000 is not released and the Ruby process is still running even when I am able to cleanly shut down the IDE. (There is no thread-dump that aligns with the timing of hang).

Hope this sheds some light.

Regards,
Kedar

0

The Ruby rails webserver occasionally does not quit when the red square is clicked.

In those cases:

ps ax | grep rvm

kill -9 <pid of output of above line>

This works if you are running rvm..

0

Please sign in to leave a comment.