Unable to launch muCommander on a 10.4.10 PowerBook

This forum is for general discussions about bugs. Actual bugs should be reported to the bug tracker to allow them to be properly processed and followed up.

Unable to launch muCommander on a 10.4.10 PowerBook

Postby TvE » Sun Oct 07, 2007 9:00 pm

When trying to launch muCommander (both 0.8.0 & 0.8.1) on my 867 MHz PowerBook running a fully updated 10.4.10 (even reinstalled "JavaForMacOSX10.4Release5.pkg") it hangs when it tries to "initialize window". It alerts an error:

Code: Select all
Cannot launch application

Uncaught exception in main method:
java.lang.illegalArgumentException: Width 0) and Height (0) must be non-zero


And a log "JavaNativeCrash_pid770" contains the information:
Code: Select all
Local Time = Thu Oct 13 23:00:56 2005
Elapsed Time = 28666643
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-38 mixed mode)
#



The most interesting is probably in console.log:
Code: Select all
Oct  7 21:38:48 TvE-TiBook /Applications/muCommander 0.8.1.app/Contents/MacOS/JavaApplicationStub: Java is generating its shared archive, version 1.5
Could not load custom commands: /Users/tve/Library/Preferences/muCommander/commands.xml (No such file or directory). Using default values.
Could not load custom associations: /Users/tve/Library/Preferences/muCommander/associations.xml (No such file or directory). Using default values.
Could not load bookmarks: /Users/tve/Library/Preferences/muCommander/bookmarks.xml (No such file or directory). Using default values.
[LaunchRunner Error] com.mucommander.Launcher.main(String[]) threw an exception:
java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero
   at java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:85)
   at java.awt.image.AreaAveragingScaleFilter.<init>(AreaAveragingScaleFilter.java:60)
   at java.awt.Image.getScaledInstance(Image.java:152)
   at dp.a(Unknown Source)
   at dp.a(Unknown Source)
   at kR.f(Unknown Source)
   at kR.b(Unknown Source)
   at dL.b(Unknown Source)
   at gg.a(Unknown Source)
   at gg.<init>(Unknown Source)
   at rh.<init>(Unknown Source)
   at jn.a(Unknown Source)
   at jn.e(Unknown Source)
   at com.mucommander.Launcher.main(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
   at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
   at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.Vector.elementAt(Vector.java:435)
   at jn.f(Unknown Source)
   at fH.handleQuit(Unknown Source)
   at com.apple.eawt.Application$6.run(Application.java:396)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



I then have to force quit muCommander :(

muCommander runs perfectly on my mainmachine (a 24" iMac) - but my testmachine (the PPC PowerBook) also need it…




PS.: The java installations I have done on the machine are:
2006.01.26 SWU: Java 1.3.1 and 1.4.2 Release 2 2.0
2007.03.18 JavaForMacOSX10.4Release5.pkg
2007.10.07 JavaForMacOSX10.4Release5.pkg (reinstalled due to a muCommander error)



PPS.: Perhaps relevant - I am capable of running other java apps, EG.: Zend Studio 5.1
TvE
 
Posts: 12
Joined: Sun Oct 07, 2007 8:21 pm

Also same behavior on my server (PPC)

Postby TvE » Sun Oct 07, 2007 9:30 pm

My 10.4.10 Server (a dual 450 MHz PPC G4) behaves in the same way - at least it displays the same dialog (did not go to the logs…)


Hmm(!!!)
TvE
 
Posts: 12
Joined: Sun Oct 07, 2007 8:21 pm

Also problematic on a G5 iMac

Postby TvE » Mon Oct 08, 2007 11:25 am

Hmm - now I have also tried the installation om a G5 iMac and am getting the same error alerted to me.

I even decompressed the nightly build via the shell just in case the old StuffIt problems might be the cause
TvE
 
Posts: 12
Joined: Sun Oct 07, 2007 8:21 pm

Postby Nicolas » Mon Oct 08, 2007 9:50 pm

Hey there,

I think I might finally have figured out what the problem was. I've just commited a potential fix to CVS, can you wait until tomorrow, get the nightly build and try again?

Cheers,
Nicolas
User avatar
Nicolas
 
Posts: 831
Joined: Mon Oct 02, 2006 10:36 pm
Location: France

Postby TvE » Mon Oct 08, 2007 10:01 pm

Nicolas wrote:Hey there,

I think I might finally have figured out what the problem was. I've just commited a potential fix to CVS, can you wait until tomorrow, get the nightly build and try again?

Cheers,
Nicolas


Naturally(!) - looking forward to DL'ing it 2morrow
TvE
 
Posts: 12
Joined: Sun Oct 07, 2007 8:21 pm

Postby maxence » Mon Oct 08, 2007 10:43 pm

Hi TvE,
The nightly build has just been rebuilt, you can download it whenever you like. The fix may or may not work.

Additionally, I have a few questions for you which will help pinpoint the exact cause of the problem, both in 0.8 (final) and 0.8.1 (nightly build) :

1) I have generated a 0.8 build with full stack trace symbols (no obfuscation) :
http://www.mucommander.com/download/muc ... _unobf.jar
Could you please download this build and copy/paste the stack trace you got in your console.log file here ?

2) Same thing for the nightly build (0.8.1) if the fix didn't work :
http://www.mucommander.com/download/nig ... _unobf.jar

3) Are you using Java 1.4 on all the machines that exhibit this problem ?

Thanks a lot for your help!
Maxence
User avatar
maxence
Site Admin
 
Posts: 436
Joined: Wed Aug 21, 2002 8:18 pm

Postby TvE » Tue Oct 09, 2007 9:39 am

Thanx again for the prompt response! Unfortunately I am still unable to launch succesfully (on the G5). But I do not get any alerts, just the output shown below.

The Java version is what Apple has provided me with via Software Update - I have not made any "unauthorized" installations:
Code: Select all
TvE-G5:~/Desktop/TMP tve$ java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)





1:
Code: Select all
TvE-G5:~/Desktop/TMP tve$ java -jar mucommander-0_8_unobf.jar
Could not load custom commands: /Users/tve/Library/Preferences/muCommander/commands.xml (No such file or directory). Using default values.
Could not load custom associations: /Users/tve/Library/Preferences/muCommander/associations.xml (No such file or directory). Using default values.
Could not load bookmarks: /Users/tve/Library/Preferences/muCommander/bookmarks.xml (No such file or directory). Using default values.
Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero
        at java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:85)
        at java.awt.image.AreaAveragingScaleFilter.<init>(AreaAveragingScaleFilter.java:60)
        at java.awt.Image.getScaledInstance(Image.java:152)
        at com.mucommander.ui.icon.IconManager.getScaledIcon(IconManager.java:123)
        at com.mucommander.ui.icon.IconManager.getIcon(IconManager.java:164)
        at com.mucommander.ui.icon.FileIcons.getCustomFileIcon(FileIcons.java:266)
        at com.mucommander.ui.icon.FileIcons.getFileIcon(FileIcons.java:243)
        at com.mucommander.ui.main.DrivePopupButton.updateButton(DrivePopupButton.java:189)
        at com.mucommander.ui.main.DrivePopupButton.locationChanged(DrivePopupButton.java:257)
        at com.mucommander.ui.event.LocationManager.fireLocationChanged(LocationManager.java:91)
        at com.mucommander.ui.main.FolderPanel.setCurrentFolder(FolderPanel.java:497)
        at com.mucommander.ui.main.FolderPanel.<init>(FolderPanel.java:168)
        at com.mucommander.ui.main.MainFrame.<init>(MainFrame.java:123)
        at com.mucommander.ui.main.WindowManager.createNewMainFrame(WindowManager.java:298)
        at com.mucommander.ui.main.WindowManager.createNewMainFrame(WindowManager.java:268)
        at com.mucommander.Launcher.main(Launcher.java:467)



2:
Code: Select all
TvE-G5:~/Desktop/TMP tve$ java -jar mucommander_unobf.jar     
Could not load custom commands: /Users/tve/Library/Preferences/muCommander/commands.xml (No such file or directory). Using default values.
Could not load custom associations: /Users/tve/Library/Preferences/muCommander/associations.xml (No such file or directory). Using default values.
Could not load bookmarks: /Users/tve/Library/Preferences/muCommander/bookmarks.xml (No such file or directory). Using default values.
Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero
        at java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:85)
        at java.awt.image.AreaAveragingScaleFilter.<init>(AreaAveragingScaleFilter.java:60)
        at java.awt.Image.getScaledInstance(Image.java:152)
        at com.mucommander.ui.icon.FileIcons.getFileProviderIcon(FileIcons.java:174)
        at com.mucommander.ui.icon.FileIcons.getCustomFileIcon(FileIcons.java:139)
        at com.mucommander.ui.icon.FileIcons.getFileIcon(FileIcons.java:125)
        at com.mucommander.ui.main.DrivePopupButton.updateButton(DrivePopupButton.java:189)
        at com.mucommander.ui.main.DrivePopupButton.locationChanged(DrivePopupButton.java:257)
        at com.mucommander.ui.event.LocationManager.fireLocationChanged(LocationManager.java:91)
        at com.mucommander.ui.main.FolderPanel.setCurrentFolder(FolderPanel.java:500)
        at com.mucommander.ui.main.FolderPanel.<init>(FolderPanel.java:172)
        at com.mucommander.ui.main.MainFrame.<init>(MainFrame.java:220)
        at com.mucommander.ui.main.WindowManager.createNewMainFrame(WindowManager.java:299)
        at com.mucommander.ui.main.WindowManager.createNewMainFrame(WindowManager.java:268)
        at com.mucommander.Launcher.main(Launcher.java:465)
TvE
 
Posts: 12
Joined: Sun Oct 07, 2007 8:21 pm

Postby maxence » Tue Oct 09, 2007 9:47 am

Thanks a lot for this detailed report! That should be all we need to fix the bug.
I'll let you know when a potential fix has been issued, hopefully today.
User avatar
maxence
Site Admin
 
Posts: 436
Joined: Wed Aug 21, 2002 8:18 pm

Postby maxence » Tue Oct 09, 2007 11:42 am

Actually now that I have looked into it, I have another question for you :)

Could you please open the preferences file on one of the machines where muCommander can't launch (~/Library/Preferences/muCommander/preferences.xml) and check the value of the following element :

Code: Select all
<prefs>
  <file_table>
    <icon_scale>

It contains a numeric value that is normally greater or equal to 1.0.
I suspect this value to be 0.0 and cause the problem you're experiencing. If that is the case, you can change it to 1.0 to fix the startup issue until it gets fixed in muCommander.

Thanks!
Maxence
User avatar
maxence
Site Admin
 
Posts: 436
Joined: Wed Aug 21, 2002 8:18 pm

Postby TvE » Tue Oct 09, 2007 7:54 pm

maxence wrote:Actually now that I have looked into it, I have another question for you :)

Could you please open the preferences file on one of the machines where muCommander can't launch (~/Library/Preferences/muCommander/preferences.xml) and check the value of the following element :

Code: Select all
<prefs>
  <file_table>
    <icon_scale>

It contains a numeric value that is normally greater or equal to 1.0.
I suspect this value to be 0.0 and cause the problem you're experiencing. If that is the case, you can change it to 1.0 to fix the startup issue until it gets fixed in muCommander.

Thanks!
Maxence


I am testing it on my G4:
You're correct - the value is 0.0, but changing it makes no difference - I still get the same error


BUT if I also change the other places where the icon_scale is (pre-)set to 0.0 THEN I can get muCommander to launch(!)
Code: Select all
    <toolbar>
        <icon_scale>1.0</icon_scale>
        <visible>true</visible>
    </toolbar>
    <command_bar>
        <icon_scale>1.0</icon_scale>



Now if I could also get it to run on my company XP machine http://www.mucommander.com/forums/viewtopic.php?t=571 then I can use the same nice app on both my platforms - Currently I am using Total Commander (the first OFM I began to use - then all other "normal" file managers suddenly looks very crappy)
TvE
 
Posts: 12
Joined: Sun Oct 07, 2007 8:21 pm

Postby TvE » Wed Oct 10, 2007 8:04 am

And it's also working on my G5 after changing the three values for icon_scale from 0.0 to 1.0

;-)
TvE
 
Posts: 12
Joined: Sun Oct 07, 2007 8:21 pm

Postby maxence » Wed Oct 10, 2007 8:23 am

OK, thanks for the follow up! I'm glad you can launch muCommander again under OS X. Tonight's nightly build will contain a patch for the startup problem, should other people have bogus values in their configuration. Now, what I need to find out is how in the world those values got set to 0.0...

I'll reply to the XP problem in the other thread. Man, you're not being very lucky with muCommander and I'm thankful you're not giving up entirely :)
User avatar
maxence
Site Admin
 
Posts: 436
Joined: Wed Aug 21, 2002 8:18 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron