jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • IzPack
  • IZPACK-392

installer hangs when ShortcutPanel is opened

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 4.3.0
  • Fix Version/s: 5.0
  • Component/s: Panels
  • Labels:
    None
  • Environment:
    Linux, Java

Description

When I try to install IzPack (4.3.0) the installer hangs after I clicked the "next" button, and the ShortcutPanel is supposed to pop up.

The UI completely freezes. (One could handle the event in a separate thread.)

I checked the stack trace of the hanging IzPack.

Here it is (a snippet):

java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)

  • waiting on <0x00007f4f972c5f68> (a java.lang.UNIXProcess)
    at java.lang.Object.wait(Object.java:485)
    at java.lang.UNIXProcess.waitFor(UNIXProcess.java:165)
  • locked <0x00007f4f972c5f68> (a java.lang.UNIXProcess)
    at com.izforge.izpack.util.FileExecutor.executeCommand(Unknown Source)
    at com.izforge.izpack.util.FileExecutor.getExecOutput(Unknown Source)
    at com.izforge.izpack.util.os.unix.UnixUser.getXdgDesktopfolder(Unknown Source)
    at com.izforge.izpack.util.os.unix.UnixUsers._getUsersWithValidShellsExistingHomesAndDesktops(Unknown Source)
    at com.izforge.izpack.util.os.unix.UnixUsers.getUsersWithValidShellsExistingHomesAndDesktops(Unknown Source)
    at com.izforge.izpack.util.os.Unix_Shortcut.<clinit>(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)

So, it seems that the process does not return.
I dived into the code of UnixUser.getXdgDesktopfolder().
When I rename the file .config/user-dirs.dirs the installer works correctly, i.e., the ShortcutPanel is shown.

The script with the pseudo unique name is correctly written (and returns the correct path when called externally). But the call to
String xdgDesktopfolder = FileExecutor.getExecOutput( new String[] { UnixHelper.getSuCommand(), itsName, "-c", XDGDesktopFolderNameScriptFilename }, true ).trim();
causes my system to ask for the password, and so we hang at this point.

Could anyone look into this please!

Cheers

Sascha

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. IZPACK-501 On unix corporate install (with 30000 users), izpack hangs forever

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Sascha Hunold added a comment - 15/May/09 3:03 AM

Well, it works when one starts the installer as root user.
But I want to install programs packed with IzPack as regular user.

Show
Sascha Hunold added a comment - 15/May/09 3:03 AM Well, it works when one starts the installer as root user. But I want to install programs packed with IzPack as regular user.
Hide
Permalink
Raoul S da Silva Curiel added a comment - 14/Dec/09 4:46 PM

It also works if you remove all the other users on the system apart from the user under which you want to install! Seriously, I'm also running up against this and it is rather frustrating. I'm surprised this issue isn't being dealt with because for me this is stopping me using IzPack for Linux users. If only I hadn't convinced my wife to start using Linux instead of Windows (using her own account), then I wouldn't have this problem!

Show
Raoul S da Silva Curiel added a comment - 14/Dec/09 4:46 PM It also works if you remove all the other users on the system apart from the user under which you want to install! Seriously, I'm also running up against this and it is rather frustrating. I'm surprised this issue isn't being dealt with because for me this is stopping me using IzPack for Linux users. If only I hadn't convinced my wife to start using Linux instead of Windows (using her own account), then I wouldn't have this problem!
Hide
Permalink
Raoul S da Silva Curiel added a comment - 15/Dec/09 11:56 AM

In 4.3.3 this bug seems closed to me! Good job guys!

Show
Raoul S da Silva Curiel added a comment - 15/Dec/09 11:56 AM In 4.3.3 this bug seems closed to me! Good job guys!

People

  • Assignee:
    Julien Ponge
    Reporter:
    Sascha Hunold
Vote (1)
Watch (0)

Dates

  • Created:
    14/May/09 4:28 PM
    Updated:
    15/Dec/09 12:10 PM
    Resolved:
    15/Dec/09 12:10 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.