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 121780 - I18N: Installer eats 100% CPU when username is Japanese on WinXP
Summary: I18N: Installer eats 100% CPU when username is Japanese on WinXP
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: dlipin
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-11-13 05:14 UTC by Masaki Katakai
Modified: 2007-11-18 13:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
taskmanager : many cmd and nbi-cleaner are running (25.72 KB, image/png)
2007-11-13 05:16 UTC, Masaki Katakai
Details
NBI Core with the fix included. (955.10 KB, application/octet-stream)
2007-11-13 10:32 UTC, dlipin
Details
Diff log. Instead of writing unicode data in .bat file it is passed as the command line argument (1.68 KB, text/plain)
2007-11-13 18:59 UTC, dlipin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2007-11-13 05:14:12 UTC
OS : Windows XP Japanese
IDE : NetBeans 6.0 Beta2 (same on the latest RC)
User name : Japanese, not ascii

When user name is Japanese on Windows XP, installer eats 100% of CPU after exit.
How about on your environment? I tried it on different two machines and I got
the same result.

Many cmd.exe and nbi-cleaner are still running and it's hard to continue.
It's not possible to kill them on task manager, so I have to log off from the desktop.
It may cause the data loss when users are editing something on the desktop.

This problem happens always, with installation or without installation.

1. Start installer
2. Just Click Cancel button to exit installer

1. Start installer
2. Install NetBeans
3. Exit installer

So there is no workaround after user starts installer on
such environment. Canceling installer does not help.

I don't think Japanese username is common on WinXP
but I know there are some actually, also it will cause
data loss and there is no workaround so I filed this as P1.
Comment 1 Masaki Katakai 2007-11-13 05:16:52 UTC
Created attachment 52910 [details]
taskmanager : many cmd and nbi-cleaner are running
Comment 2 Ken Frank 2007-11-13 05:59:48 UTC
probably not help but can you remove the nbi dir from Documents and Settings;
I can' remember exact dir name.

even if not related to this, its helpful to do it while verifying translations
of installers so always have a fresh situation.

ken.frank@sun.com
Comment 3 dlipin 2007-11-13 08:07:45 UTC
masaki,
could you please run installer in the following way:
<installer.exe> --verbose --output output.txt
and after exit (scenario 1 works fine) please attach the resulting output.txt file at the issue.

BTW, are you in Ja locale?
BTW2, Beta1 should work fine :)

Thanks,
Dmitry
Comment 4 dlipin 2007-11-13 10:30:55 UTC
Masaki,

please try the attached jar file (remove %USERPROFILE%/.nbi directory first).
It will show some kind of the panel - just click Cancel button and look into Task Manager whether the cmd and nbi-
cleaner are still running (please make sure that there are no such processed before running the jar).

If it works then I fill integrate the fix to trunk and will ask you to verify on the next trunk build.
If it works then I will integrate it back to release60 branch since this is a stopper issue.

Thanks,
Dmitry
Comment 5 dlipin 2007-11-13 10:32:05 UTC
Created attachment 52915 [details]
NBI Core with the fix included.
Comment 6 dlipin 2007-11-13 18:59:16 UTC
Created attachment 52943 [details]
Diff log. Instead of writing unicode data in .bat file it is passed as the command line argument
Comment 7 dlipin 2007-11-14 08:52:39 UTC
Fixed in trunk.

Checking in src/main.c;
/cvs/nbi/engine/native/cleaner/windows/src/main.c,v  <--  main.c
new revision: 1.10; previous revision: 1.9
done
Checking in dist/cleaner.exe;
/cvs/nbi/engine/native/cleaner/windows/dist/cleaner.exe,v  <--  cleaner.exe
new revision: 1.7; previous revision: 1.6
done

Masaki, please verify on the next build (>=200711141200) when it is available:
http://bits.netbeans.org/netbeans/trunk/nightly/latest/
Comment 8 Masaki Katakai 2007-11-16 00:22:38 UTC
Great! I verified that it works on trunk 200711151200 build.
Comment 9 dlipin 2007-11-16 08:18:00 UTC
Checking in dist/cleaner.exe;
/cvs/nbi/engine/native/cleaner/windows/dist/cleaner.exe,v  <--  cleaner.exe
new revision: 1.6.4.1; previous revision: 1.6
done
Checking in src/main.c;
/cvs/nbi/engine/native/cleaner/windows/src/main.c,v  <--  main.c
new revision: 1.9.4.1; previous revision: 1.9
done

Fixed in branch as well.

Masaki,
please verify on the next release60 branch build.
Comment 10 Masaki Katakai 2007-11-18 13:19:28 UTC
Verified in release60 branch build, NetBeans IDE 6.0 RC2 (Build 200711171200)

Marked as VERIFIED.