This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 176358 - IDE freeze (sleep) in Ubuntu 9.10
Summary: IDE freeze (sleep) in Ubuntu 9.10
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
: 176840 178122 185482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-10 02:09 UTC by danilchenko_anton
Modified: 2010-05-05 08:59 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profile image (86.50 KB, image/png)
2009-11-10 06:27 UTC, danilchenko_anton
Details
Snapshot afret start killed IDE (302.55 KB, text/xml)
2009-11-10 06:28 UTC, danilchenko_anton
Details
Dump created by jstack (12.15 KB, text/plain)
2009-11-10 08:43 UTC, danilchenko_anton
Details
Dump createb by press CTRL+\ (12.43 KB, text/plain)
2009-11-10 08:44 UTC, danilchenko_anton
Details
~/.netbeans/6.7/var/log/message.log content (21.46 KB, text/x-log)
2009-11-11 01:18 UTC, danilchenko_anton
Details
Freeze and wake up in php (screenshot) (179.57 KB, image/png)
2009-11-12 10:05 UTC, danilchenko_anton
Details
Freeze and wake up in php (stack) (24.16 KB, text/plain)
2009-11-12 10:05 UTC, danilchenko_anton
Details
Freeze on SVN update command (screenshot) (37.39 KB, image/png)
2009-11-12 10:06 UTC, danilchenko_anton
Details
Freeze on SVN update command (stack 1) (13.97 KB, text/plain)
2009-11-12 10:07 UTC, danilchenko_anton
Details
Freeze on SVN update command (stack 2) (11.07 KB, text/plain)
2009-11-12 10:08 UTC, danilchenko_anton
Details
Freeze (after 2 seconds) (11.71 KB, application/octet-stream)
2009-11-13 05:58 UTC, danilchenko_anton
Details
Freeze (after 10 seconds) (11.26 KB, application/octet-stream)
2009-11-13 05:59 UTC, danilchenko_anton
Details
Freeze (after 1 minute) (8.80 KB, application/octet-stream)
2009-11-13 05:59 UTC, danilchenko_anton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description danilchenko_anton 2009-11-10 02:09:04 UTC
I use NetBeans 6.7.1 on WinXP - all work correctly.

Now I use IDE NetBeans 6.7.1 in Ubuntu 9.10 (x32).
I see namy critical problems with IDE freeze (sleep): on SVN checkout and SVN update, editing php files and many other.
I resolve this problem only "kill Java process".
Installed all latest versions of plugins (up to date).
I use version from ubuntu repository (aptitude) for Java + additional installed plugin for php.
Comment 1 danilchenko_anton 2009-11-10 05:31:56 UTC
I use Subversion plugin ans installed "subversion 1.6.5" in Ubuntu.
I found problem with this component. If I set Subversion -> Show changes (or Diff, Update) - my IDE freeze. Help only "kill process".

Please, fix this bug in 6.7 and I waiting 6.8.
Thanks!
Comment 2 Ondrej Vrabec 2009-11-10 05:44:29 UTC
Please attach the profiler snapshot, thanks - http://wiki.netbeans.org/FitnessViaPartnership
Comment 3 danilchenko_anton 2009-11-10 06:10:22 UTC
I not understand - how to use this tool.
I search this button - but not found. Maybe need install additional plugin and activate it?
Comment 4 Ondrej Vrabec 2009-11-10 06:14:29 UTC
Do you have the Memory toolbar displayed, as is stated in the article?
> Make sure the Memory toolbar is displayed (step 0)
Comment 5 danilchenko_anton 2009-11-10 06:24:08 UTC
I found and install plugin.
Restart IDE.
Press on this "Profile" button.

Click on my project folder, select Subversion -> Update.
Waiting 10 seconds.... IDE freeze.

I go to System monitor and kill Java process.

Run IDE. Button "Profile" not pressed!

No dump saved (((
Comment 6 danilchenko_anton 2009-11-10 06:26:55 UTC
I attach image and profile file after start killed IDE.
Comment 7 danilchenko_anton 2009-11-10 06:27:51 UTC
Created attachment 90705 [details]
Profile image
Comment 8 danilchenko_anton 2009-11-10 06:28:27 UTC
Created attachment 90706 [details]
Snapshot afret start killed IDE
Comment 9 Ondrej Vrabec 2009-11-10 06:37:10 UTC
Those are useless, could you then attach few thread dumps? Try svn update and when IDE freezes, switch to commandline, and create several thread dumps (at least 5) in 10 seconds period (if you're on linux, to create a thread dump press Ctrl+\). 
http://wiki.netbeans.org/GenerateThreadDump.
Comment 10 danilchenko_anton 2009-11-10 08:43:36 UTC
Created attachment 90720 [details]
Dump created by jstack
Comment 11 danilchenko_anton 2009-11-10 08:44:07 UTC
Created attachment 90721 [details]
Dump createb by press CTRL+\
Comment 12 Ondrej Vrabec 2009-11-11 00:06:10 UTC
1) I checked your thread dumps and there's not a single thread occupied by subversion. Are you sure you created the thread dumps when the IDE got frozen while doing svn update?

2) AWT is doing some painting - but those are classes from JDK. It's definitely not a subversion issue. Could you please attach the message log (~/.netbeans/6.7/var/log/message.log)? I would like to know what version of JDK you use.
Comment 13 danilchenko_anton 2009-11-11 01:18:16 UTC
Created attachment 90768 [details]
~/.netbeans/6.7/var/log/message.log content

Also I found message.log.1 and message.log.2
Comment 14 danilchenko_anton 2009-11-11 01:24:00 UTC
> Are you sure you created the thread dumps when the IDE got frozen
while doing svn update?

Yes. After press SVN Update platform frozen and I go to terminal and create dump.

I install IDE from Ubuntu aptitude repository for Java developers. And additionaly install plugin for SVN and PHP.
Comment 15 Ondrej Vrabec 2009-11-11 01:35:33 UTC
You use java 1.6, that should be OK.
Could you try few more things?
1) run IDE with the following switch: -J-DsvnClientAdapterFactory=commandline - still nothing?
2) try a different look and feel: e.g. Nimbus: run IDE with:
--laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
And again please attach a thread dump
Comment 16 danilchenko_anton 2009-11-11 08:14:46 UTC
Also this bug I see if work with DB plugin.
Comment 17 Ondrej Vrabec 2009-11-11 08:19:58 UTC
So i think it's not subversion related.
Please the different look&feel.
Comment 18 Ondrej Vrabec 2009-11-12 05:08:42 UTC
Have you tried the different look&feel? Does it help?
Comment 19 danilchenko_anton 2009-11-12 10:03:50 UTC
> 1) run IDE with the following switch:
> -J-DsvnClientAdapterFactory=commandline
> still nothing?

I run
> netbeans -J-DsvnClientAdapterFactory=commandline
All work good. But after use PHP editor platform freeze.
I create screenshot and create dump. After this I see then plathorm wake up.

> 2) try a different look and feel: e.g. Nimbus: run IDE with:
> --laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
> And again please attach a thread dump

I see startup message:
> See http://java.sun.com/javase/reference for more details.
> UI class not found, using default UI...

After I start SVN update process I see FREEZE. I create 2 dumps and one screenshot.
Comment 20 danilchenko_anton 2009-11-12 10:05:09 UTC
Created attachment 90924 [details]
Freeze and wake up in php (screenshot)
Comment 21 danilchenko_anton 2009-11-12 10:05:33 UTC
Created attachment 90925 [details]
Freeze and wake up in php (stack)
Comment 22 danilchenko_anton 2009-11-12 10:06:36 UTC
Created attachment 90926 [details]
Freeze on SVN update command (screenshot)
Comment 23 danilchenko_anton 2009-11-12 10:07:08 UTC
Created attachment 90927 [details]
Freeze on SVN update command (stack 1)
Comment 24 danilchenko_anton 2009-11-12 10:08:19 UTC
Created attachment 90928 [details]
Freeze on SVN update command (stack 2)

I waiting 5 minutes - but platform NOT wake up and continue sleep
Comment 25 Ondrej Vrabec 2009-11-13 01:05:48 UTC
> All work good. But after use PHP editor platform freeze.
That's a different issue and i believe it's already fixed in 6.8. If you want, you can file a separate issue for this.

> All work good.
Do you mean that if you use this switch, the SVN update works fine? That i suggest you run with the switch permanently and use the commandline client all the time.

> 2) try a different look and feel: e.g. Nimbus: run IDE with:
Could you try any other different look and feel? Maybe --laf javax.swing.plaf.metal.MetalLookAndFeel
Do you still get 'UI class not found, using default UI'?
Comment 26 Ondrej Vrabec 2009-11-13 01:09:26 UTC
> Could you try any other different look and feel? Maybe --laf
javax.swing.plaf.metal.MetalLookAndFeel
Or directly --laf Metal
Comment 27 danilchenko_anton 2009-11-13 03:20:01 UTC
> netbeans --laf Metal
Start and work well.

This problem exists not all time. But one time - I see freeze, but now - all right.

If this problem will in future - I create dump and attach to this task.

Thanks!
Comment 28 danilchenko_anton 2009-11-13 03:21:26 UTC
> Do you still get 'UI class not found, using default UI'?

Plathoem runned in standart mode (not metalic).
Comment 29 danilchenko_anton 2009-11-13 05:58:59 UTC
Created attachment 90988 [details]
Freeze (after 2 seconds)
Comment 30 danilchenko_anton 2009-11-13 05:59:20 UTC
Created attachment 90989 [details]
Freeze (after 10 seconds)
Comment 31 danilchenko_anton 2009-11-13 05:59:54 UTC
Created attachment 90991 [details]
Freeze (after 1 minute)
Comment 32 hperrin 2009-11-18 11:18:30 UTC
I'm having this exact same problem. When I commit SVN, sometimes it freezes, sometimes it doesn't. The only way to recover it is to kill the "java" process. The commits get completed, but it's very annoying to have the entire IDE freeze. Has this issue been fixed?
Comment 33 Ondrej Vrabec 2009-11-18 11:36:25 UTC
> Has this issue been fixed
I am affraid not, because i don't think it's subversion related. Do you get the same thread-dump? Could you attach that?
Could you also try a different look&feel than GTK? Run IDE e.g. with --laf Metal.
Comment 34 hperrin 2009-11-18 11:39:19 UTC
Do you have an extra SVN server I could make commits to? The one I'm using is a production server, so I can't just make unnecessary commits to it.
Comment 35 Ondrej Vrabec 2009-11-18 11:43:32 UTC
Our test servers are in the intranet, sorry. But you can try kenai and create a dummy project there. http://kenai.com/
Comment 36 Ondrej Vrabec 2009-11-18 13:27:02 UTC
OK, so i installed Ubuntu 9.10 and played with Netbeans for several minutes:
It indeed happens that the IDE gets stuck and frozen. Yet i am still convinced that it is not fully our fault, because it happened to me only with:
1) OpenJDK 1.6, which is preselected in Ubuntun 9.10 by default
2) With the GTK look&feel
3) With javahl library used as a subversion client - this library is not under our control, it is a separate rpm package in Ubuntu 9.10

So than i tried few workarounds, which i recommend to use. So either:
1) Try Sun JDK, not OpenJDK
2) Use a different look&feel - start IDE with e.g.: --laf Metal 
3) Don't use javahl library as subversion client - run IDE with: -J-DsvnClientAdapterFactory=commandline

I am reopenning the issue, but since there seem to be few WAs and it doesn't seem to be netbeans problem, lowering the priority to P3. Please let me know if any of the workarounds doesn't help.

I will try to dig deeper and try to find a reason for this behavior.
Comment 37 Ondrej Vrabec 2009-11-19 06:21:31 UTC
This seems to be caused by a bug in javahl library, see http://subversion.tigris.org/issues/show_bug.cgi?id=3498
It seems to be already fixed, however not backported to 1.6 versions of subversion.

For now, please either try my workarounds or try the workaround mentioned in http://subclipse.tigris.org/wiki/JavaHL#head-3a1d2d3c54791d2d751794e5d6645f1d77d95b32 - in short, uncomment the line 'password-stores = ' and set it to empty value. It seems not to be enough just to leave the line as a comment, you really need to set it to the empty value.

Since it is probably not a netbeans issue, i'm closing as WONTFIX. If you are still able to reproduce even with above mentioned workarounds, please reopen and we will try to find another solution. Thanks.
Comment 38 Ondrej Vrabec 2009-11-19 06:23:23 UTC
*** Bug 176840 has been marked as a duplicate of this bug. ***
Comment 39 Ondrej Vrabec 2009-12-04 03:10:35 UTC
*** Bug 178122 has been marked as a duplicate of this bug. ***
Comment 40 ulfzibis 2009-12-04 05:32:10 UTC
Another workaround:
After installing Ubuntu 9.10 install KDE:
   sudo apt-get install kubuntu-desktop

Then only run NetBeans from Kubuntu GUI.
Comment 41 Ondrej Vrabec 2010-05-05 08:59:48 UTC
*** Bug 185482 has been marked as a duplicate of this bug. ***