mcRPW / rpw

Resource Pack Workbench, Minecraft resource pack editor
http://mcrpw.github.io
Other
104 stars 41 forks source link

Resource Pack Workbench Issue #140

Closed rohxn-o closed 6 years ago

rohxn-o commented 6 years ago

What happened? I opened a image file, then It comes up with a crash report. ...

Steps to reproduce: Go to assests, models, items, click any image. ...

Crash report (if any)

RPW 4.5.2 CRASH REPORT

Please, report this issue on GitHub (use the button below). If possible, include THIS WHOLE LOG in the report.

Alternatively, you can send this log to MightyPork. E-mail: ondra@ondrovo.com

SYSTEM INFO

Key Value
Runtime name Java(TM) SE Runtime Environment
Java version 1.8.0_151
Java vendor Oracle Corporation
Java path C:\Program Files (x86)\Java\jre1.8.0_151
OS name Windows 10
OS arch x86
File encoding Cp1252
Launch dir C:\Users\Rohan\Downloads
RPW version 4.5.2
Library version 1.12.2
RPW path C:\Users\Rohan\AppData\Roaming.mcRPW
Minecraft path C:\Users\Rohan\AppData\Roaming.minecraft

STACK TRACE

java.lang.NullPointerException
    at net.mightypork.rpw.tasks.TaskModifyAsset.editModel(TaskModifyAsset.java:103)
    at net.mightypork.rpw.tasks.Tasks.taskEditModel(Tasks.java:813)
    at net.mightypork.rpw.gui.widgets.SidePanel$9.actionPerformed(SidePanel.java:719)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.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)

FULL LOG

[ i ] Main logger initialized.
[ i ] 2018/01/09 19:37:50
[ i ] ResourcePack Workbench v.4.5.2 (#452)
[ # ] Init started...
[ - ] Checking Minecraft installation.
[ - ] Initializing configuration manager.
[ - ] Checking working directory.
[   ] Last run version: 4.5.2 (#452)
[ i ] Using library version: 1.12.2
[ - ] Loading GUI icons
[ - ] Loading GUI icons - done.
[   ] Initializing RSyntaxTextArea
[ - ] Loading help pages
[ # ] Initializing Sources
[ - ] Loading vanilla structure
[ - ] Loading help pages - done.
[ - ] Loading vanilla structure - done.
[ - ] Erasing library cache
[ - ] Loading resourcepacks...
[ # ] Initializing Sources - done.
[ - ] Building main window.
[ - ] Downloading update info
[ - ] Opening last project (if any).
[ - ] Downloading update info - done.
[ i ] Your version is up-to-date.
[   ] Dialog open: New Project
[   ] Dialog closed: New Project
[ - ] Project 'ExtraPlaysMC 1.8 PvP Resource Pack [Faithful PvP Edit]': Creating backup copy...
[ - ] Project 'ExtraPlaysMC 1.8 PvP Resource Pack [Faithful PvP Edit]': Copying - done.
[ - ] Project 'ExtraPlaysMC 1.8 PvP Resource Pack [Faithful PvP Edit]': Loading from workdir
[   ] Adding default pack icon
[   ] Adding RPW_README.txt to the pack
[   ] Dialog open: Loading Resource Pack
[ # ] Loading resource pack to project
[   ] Pack file: C:\Users\Rohan\OneDrive\Desktop\ExtraPlaysMC 1.8 PvP Resource Pack [Faithful PvP Edit].zip
[ - ] Listing pack file
[ - ] Loading custom languages
[   ] + pack.png
[!E!] java.lang.StringIndexOutOfBoundsException: String index out of range: -56
[!E!]   at java.lang.String.substring(Unknown Source)
[!E!]   at net.mightypork.rpw.struct.PackMcmeta.fromJson(PackMcmeta.java:38)
[!E!]   at net.mightypork.rpw.tasks.sequences.SequencePopulateProjectFromPack.stepMcmetaAndLanguages(SequencePopulateProjectFromPack.java:143)
[!E!]   at net.mightypork.rpw.tasks.sequences.SequencePopulateProjectFromPack.step(SequencePopulateProjectFromPack.java:91)
[!E!]   at net.mightypork.rpw.tasks.sequences.AbstractSequence.run(AbstractSequence.java:100)
[!E!]   at net.mightypork.rpw.tasks.sequences.AbstractSequence.run(AbstractSequence.java:71)
[!E!]   at net.mightypork.rpw.tasks.Tasks$18.run(Tasks.java:923)
[!E!]   at java.lang.Thread.run(Unknown Source)
[!E!] 
[ # ] Loading resource pack to project - done.
[ i ] Import successful.
[!W!] Sequence failed at step #1: Loading custom languages
[   ] Dialog closed: Loading Resource Pack
[!E!] Unhandled error, opening error screen.
[!E!] java.lang.NullPointerException
[!E!]   at net.mightypork.rpw.tasks.TaskModifyAsset.editModel(TaskModifyAsset.java:103)
[!E!]   at net.mightypork.rpw.tasks.Tasks.taskEditModel(Tasks.java:813)
[!E!]   at net.mightypork.rpw.gui.widgets.SidePanel$9.actionPerformed(SidePanel.java:719)
[!E!]   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
[!E!]   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
[!E!]   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
[!E!]   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
[!E!]   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
[!E!]   at java.awt.Component.processMouseEvent(Unknown Source)
[!E!]   at javax.swing.JComponent.processMouseEvent(Unknown Source)
[!E!]   at java.awt.Component.processEvent(Unknown Source)
[!E!]   at java.awt.Container.processEvent(Unknown Source)
[!E!]   at java.awt.Component.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.Container.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.Component.dispatchEvent(Unknown Source)
[!E!]   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
[!E!]   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
[!E!]   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
[!E!]   at java.awt.Container.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.Window.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.Component.dispatchEvent(Unknown Source)
[!E!]   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.EventQueue.access$500(Unknown Source)
[!E!]   at java.awt.EventQueue$3.run(Unknown Source)
[!E!]   at java.awt.EventQueue$3.run(Unknown Source)
[!E!]   at java.security.AccessController.doPrivileged(Native Method)
[!E!]   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[!E!]   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[!E!]   at java.awt.EventQueue$4.run(Unknown Source)
[!E!]   at java.awt.EventQueue$4.run(Unknown Source)
[!E!]   at java.security.AccessController.doPrivileged(Native Method)
[!E!]   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[!E!]   at java.awt.EventQueue.dispatchEvent(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.run(Unknown Source)
[!E!] 
[   ] Dialog open: RPW has crashed!
[   ] Dialog closed: RPW has crashed!
[!E!] Unhandled error, opening error screen.
[!E!] java.lang.NullPointerException
[!E!]   at net.mightypork.rpw.tasks.TaskModifyAsset.editModel(TaskModifyAsset.java:103)
[!E!]   at net.mightypork.rpw.tasks.Tasks.taskEditModel(Tasks.java:813)
[!E!]   at net.mightypork.rpw.gui.widgets.SidePanel$9.actionPerformed(SidePanel.java:719)
[!E!]   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
[!E!]   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
[!E!]   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
[!E!]   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
[!E!]   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
[!E!]   at java.awt.Component.processMouseEvent(Unknown Source)
[!E!]   at javax.swing.JComponent.processMouseEvent(Unknown Source)
[!E!]   at java.awt.Component.processEvent(Unknown Source)
[!E!]   at java.awt.Container.processEvent(Unknown Source)
[!E!]   at java.awt.Component.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.Container.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.Component.dispatchEvent(Unknown Source)
[!E!]   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
[!E!]   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
[!E!]   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
[!E!]   at java.awt.Container.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.Window.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.Component.dispatchEvent(Unknown Source)
[!E!]   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
[!E!]   at java.awt.EventQueue.access$500(Unknown Source)
[!E!]   at java.awt.EventQueue$3.run(Unknown Source)
[!E!]   at java.awt.EventQueue$3.run(Unknown Source)
[!E!]   at java.security.AccessController.doPrivileged(Native Method)
[!E!]   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[!E!]   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[!E!]   at java.awt.EventQueue$4.run(Unknown Source)
[!E!]   at java.awt.EventQueue$4.run(Unknown Source)
[!E!]   at java.security.AccessController.doPrivileged(Native Method)
[!E!]   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[!E!]   at java.awt.EventQueue.dispatchEvent(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[!E!]   at java.awt.EventDispatchThread.run(Unknown Source)
[!E!] 

...
MarcusElg commented 6 years ago

Latest version should fix it