RC2 hang on Mac when pasting in editor

I get the following exception in 11.0 RC2 when copying and pasting in the editor and IDEA hangs with spinning beachball:


06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij: [10012415]  ERROR - .history.utils.LocalHistoryLog - Assertion failed: current changes won't be saved: [ContentChange: /MyProject/src/main/java/MyClass.java]

06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij: java.lang.Throwable

06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij:  at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:98)

06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij:  at com.intellij.history.core.ChangeList.close(ChangeList.java:47)

06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij:  at com.intellij.history.integration.LocalHistoryImpl.disposeComponent(LocalHistoryImpl.java:138)

06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij:  at com.intellij.history.integration.LocalHistoryImpl$1.run(LocalHistoryImpl.java:61)

06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij:  at com.intellij.openapi.util.ShutDownTracker.run(ShutDownTracker.java:60)

06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij:  at java.lang.Thread.run(Thread.java:680)

06/12/11 09:12:03,517 [0x0-0x457457].com.jetbrains.intellij: [10012457]  ERROR - .history.utils.LocalHistoryLog - IntelliJ IDEA 11.0 RC2  Build #IU-111.54

06/12/11 09:12:03,518 [0x0-0x457457].com.jetbrains.intellij: [10012457]  ERROR - .history.utils.LocalHistoryLog - JDK: 1.6.0_29

06/12/11 09:12:03,518 [0x0-0x457457].com.jetbrains.intellij: [10012457]  ERROR - .history.utils.LocalHistoryLog - VM: Java HotSpot(TM) 64-Bit Server VM

06/12/11 09:12:03,518 [0x0-0x457457].com.jetbrains.intellij: [10012457]  ERROR - .history.utils.LocalHistoryLog - Vendor: Apple Inc.

06/12/11 09:12:03,518 [0x0-0x457457].com.jetbrains.intellij: [10012457]  ERROR - .history.utils.LocalHistoryLog - OS: Mac OS X

06/12/11 09:12:03,518 [0x0-0x457457].com.jetbrains.intellij: [10012457]  ERROR - .history.utils.LocalHistoryLog - Last Action: EditorPaste

06/12/11 09:12:03,518 [0x0-0x457457].com.jetbrains.intellij: [10012457]  ERROR - .history.utils.LocalHistoryLog - Current Command: Paste

6 comments
Comment actions Permalink

Phill,
next time this happens, please take a thread dump with jstack and attach it.

Thanks

0
Comment actions Permalink

thread dump attached



Attachment(s):
osx_hang.txt.zip
0
Comment actions Permalink

To avoid this you should disable native clipboard handling: Go to Registry (Command+Alt+Shift+/, choose Registry), find "ide.mac.useNativeClipboard" and uncheck the checkbox.

0
Comment actions Permalink

Is this necessary in the final relase or has it been fixed?

0
Comment actions Permalink

Hello Phill,

There are no changes in this regard between RC2 and the final release.

Is this necessary in the final relase or has it been fixed?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I can confirm that it's still breaking on OSX Lion with the 11 CE release.  Going to try out disabling native clipboard handling now.

0

Please sign in to leave a comment.