JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#613 Ribbon Preferred Width
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: GUI
State: closed Help

I haven't dissected it fully but it seems your 105 preferred width on your GUI menu doesn't work with Flamingo's 128. This might be due to my OS's scaling? > What is the expected output? What do you see instead? The program simply will not open. > What version of the product are you using? On what operating system? 2.1.1 on Windows 8.1 > Please provide any additional information below. Here's the stack trace: C:\Program Files (x86)\FFDec>java -Xmx1024m -jar ffdec.jar Jun 22, 2014 10:55:21 AM com.jpexs.decompiler.flash.gui.View execInEventDispatch SEVERE: null java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(Unknown Source) at java.awt.EventQueue.invokeAndWait(Unknown Source) at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) at com.jpexs.decompiler.flash.gui.View.execInEventDispatch(View.java:332) at com.jpexs.decompiler.flash.gui.Main.showModeFrame(Main.java:741) at com.jpexs.decompiler.flash.gui.Main.main(Main.java:909) Caused by: java.lang.IllegalStateException: Inconsistent preferred widths Ribbon band 'Language' has the following resize policies com.jpexs.decompiler.flash.gui.MainFrameRibbonMenu$3 with preferred width 105 org.pushingpixels.flamingo.api.ribbon.resize.IconRibbonBandResizePolicy with preferred width 128 com.jpexs.decompiler.flash.gui.MainFrameRibbonMenu$3 with pref width 105 is followed by resize policy org.pushingpixels.flamingo.api.ribbon.resize.IconRibbonBandResizePolicy with larger pref width at org.pushingpixels.flamingo.internal.utils.FlamingoUtilities.checkResizePoliciesConsistency (FlamingoUtilities.java:579) at org.pushingpixels.flamingo.api.ribbon.AbstractRibbonBand.setRibbonTask(AbstractRibbonBand. java:539) at org.pushingpixels.flamingo.api.ribbon.RibbonTask.<init>(RibbonTask.java:90) at com.jpexs.decompiler.flash.gui.MainFrameRibbonMenu.createSettingsRibbonTask(MainFrameRibbo nMenu.java:457) at com.jpexs.decompiler.flash.gui.MainFrameRibbonMenu.<init>(MainFrameRibbonMenu.java:160) at com.jpexs.decompiler.flash.gui.MainFrameRibbon.<init>(MainFrameRibbon.java:60) at com.jpexs.decompiler.flash.gui.Main.ensureMainFrame(Main.java:113) at com.jpexs.decompiler.flash.gui.Main$16.run(Main.java:744) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
developer
What is your screen resolution? I have Win 8.1 Update 1 with screen resolution 1920x1080, touch screen, UI scaling 100% (Smaller) and i have no exeptions. Earlier i used it with UI scaling "Larger", and it was OK, too. Do you have a special Windows Theme?
user
My resolution is 3200x1800 with UI scaling at Larger. It tried it with the UI scaling down to 100% and the same exception was thrown with the same difference of 105 and 128 between the two.
user
Hey sorry for the late Answer. The Problem is that u don't have enoth CommandButtons in one RibbonBand. U cant use a Hight2Low resize police with less then 4 Buttons. Try out this Code for your resize police and the problem should be fixed. More then 4 Buttons: band_del.setResizePolicies((List) Arrays.asList( new CoreRibbonResizePolicies.None(band_del.getControlPanel()), new CoreRibbonResizePolicies.Mirror(band_del.getControlPanel()), new CoreRibbonResizePolicies.Mid2Low(band_del.getControlPanel()), new IconRibbonBandResizePolicy(band_del.getControlPanel()))); Less then 4 Buttons: band_del.setResizePolicies((List) Arrays.asList( new CoreRibbonResizePolicies.None(band_del.getControlPanel()), new CoreRibbonResizePolicies.Mirror(band_del.getControlPanel()), new CoreRibbonResizePolicies.Mid2Low(band_del.getControlPanel()), new CoreRibbonResizePolicies.High2Low(band_del.getControlPanel()), new IconRibbonBandResizePolicy(band_del.getControlPanel())));
user
Oh Sorry turn around pls!!! More then 4 Buttons: band_del.setResizePolicies((List) Arrays.asList( new CoreRibbonResizePolicies.None(band_del.getControlPanel()), new CoreRibbonResizePolicies.Mirror(band_del.getControlPanel()), new CoreRibbonResizePolicies.Mid2Low(band_del.getControlPanel()), new CoreRibbonResizePolicies.High2Low(band_del.getControlPanel()), new IconRibbonBandResizePolicy(band_del.getControlPanel()))); Less then 4 Buttons: band_del.setResizePolicies((List) Arrays.asList( new CoreRibbonResizePolicies.None(band_del.getControlPanel()), new CoreRibbonResizePolicies.Mirror(band_del.getControlPanel()), new CoreRibbonResizePolicies.Mid2Low(band_del.getControlPanel()), new IconRibbonBandResizePolicy(band_del.getControlPanel())));
developer
You wrote: "U cant use a Hight2Low resize police with less then 4 Buttons" But there is no Hight2Low resize policy in our code. And why is this 4 button limit? Maybe it depends on the resolution. I'm afraid that it is ok only with your resolution (or smaller), and there will be a new limit with higher resolutions.
developer
Please try the latest nightly version. If it is still not working, please let us know in Issue #865 (duplicate is this issue). I close this one now.
State: new→closed