PDA

View Full Version : themebuilder "Unknown image type 0" error



remark
12 May 2014, 12:05 AM
When I start themebulder as described in readme file and documentation on site: .\themebuilder\bin\themer.bat .\themebuilder\examples\quick-start\quick-start.theme I get the following error : "Unknown image type 0".

Version: GXT 3.1.0 downloaded from Sencha Support Site.
Java: 1.7.0
OS: Windows 7

Error log:


E:\gxt310\gxt-3.1.0>java -version java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)


E:\gxt310\gxt-3.1.0>.\themebuilder\bin\themer.bat .\themebuilder\examples\quick-
start\quick-start.theme
12.05.2014. 09.48.05 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: template generation started
12.05.2014. 09.48.07 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: template generation complete
12.05.2014. 09.48.07 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: image generation started
12.05.2014. 09.48.08 org.slf4j.Logger$trace call
FINEST: generating icons
12.05.2014. 09.48.10 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: image generation complete
12.05.2014. 09.48.10 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: compile started
12.05.2014. 09.48.12 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: compile complete
12.05.2014. 09.48.12 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: capture started
12.05.2014. 09.48.14 org.slf4j.Logger$debug call
FINE: loading page C:/Users\PPesic\AppData\Local\Temp\temp22437.3/sliceme/index.
html
Capturing screenshot
Saving slicer widget manifest
Capture complete


12.05.2014. 09.48.14 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: capture complete
12.05.2014. 09.48.14 sun.reflect.NativeMethodAccessorImpl invoke0
FINEST: slice started
12.05.2014. 09.48.14 com.sencha.command.filesystem.SliceCommand execute
INFO: Slicing images...
12.05.2014. 09.48.14 com.sencha.command.filesystem.SliceCommand execute
FINE: Loading slice manifest - C:\Users\PPesic\AppData\Local\Temp\temp22439.json


12.05.2014. 09.48.14 com.sencha.util.Version <init>
FINEST: Parsing Version String : -?
12.05.2014. 09.48.14 com.sencha.util.Version <init>
FINEST: Parsing Version String : +?
12.05.2014. 09.48.14 com.sencha.util.Version <init>
FINEST: Parsing Version String : 2
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.button.ButtonJob-
has incompatible slices for image "button/button.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.button.FocusButton
Job--focus has incompatible slices for image "button/button-focus.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.button.OverButtonJ
ob--over has incompatible slices for image "button/button-over.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.button.PressedButt
onJob--pressed has incompatible slices for image "button/button-pressed.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.button.ToolBarButt
onJob- has incompatible slices for image "button/toolbar-button.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.button.ToolBarFocu
sButtonJob--focus has incompatible slices for image "button/toolbar-button-focus
.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.button.ToolBarOver
ButtonJob--over has incompatible slices for image "button/toolbar-button-over.pn
g"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.button.ToolBarPres
sedButtonJob--pressed has incompatible slices for image "button/toolbar-button-p
ressed.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.field.ErrorTipJob-
tip has incompatible slices for image "field/tip.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.panel.FramedPanelH
eaderJob-framedpanel-header has incompatible slices for image "panel/framedpanel
-header.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.panel.FramedPanelJ
ob-framedpanel has incompatible slices for image "panel/framedpanel.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.tip.TipJob-tip has
incompatible slices for image "tips/tip.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.window.WindowHeade
rJob-window-header has incompatible slices for image "window/window-header.png"
12.05.2014. 09.48.14 com.sencha.tools.slicer.Model$LoggingAuditor onSliceConflic
t
WARNING: Widget com.sencha.gxt.themebuilder.slicer.client.job.window.WindowJob-w
indow has incompatible slices for image "window/window.png"
12.05.2014. 09.48.14 com.sencha.command.filesystem.SliceCommand execute
FINE: Loading image to slice - C:\Users\PPesic\AppData\Local\Temp\temp22438.png
12.05.2014. 09.48.14 com.sencha.command.filesystem.SliceCommand execute
FINE: Slicing images
12.05.2014. 09.48.14 com.sencha.tools.slicer.operations.BasicOperation perform
FINE: Generating image content for button/button-background.png
12.05.2014. 09.48.14 org.slf4j.Logger$error call
SEVERE: error with slice
java.lang.IllegalArgumentException: Unknown image type 0
at java.awt.image.BufferedImage.<init>(BufferedImage.java:490)
at com.sencha.util.ImagePool$Entry.<init>(ImagePool.java:70)
at com.sencha.util.ImagePool$Entry.<init>(ImagePool.java:36)
at com.sencha.util.ImagePool.get(ImagePool.java:109)
at com.sencha.util.ImagePool.get(ImagePool.java:115)
at com.sencha.tools.slicer.operations.BasicOperation.perform(BasicOperat
ion.java:33)
at com.sencha.tools.slicer.Model$Slice.perform(Model.java:678)
at com.sencha.tools.slicer.Model$Widget.perform(Model.java:430)
at com.sencha.tools.slicer.Model$Manifest.perform(Model.java:738)
at com.sencha.command.filesystem.SliceCommand.execute(SliceCommand.java:
108)
at com.sencha.command.filesystem.SliceCommand$execute.call(Unknown Sourc
e)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
at com.sencha.gxt.themebuilder.ThemeSlicer.slice(ThemeSlicer.groovy:67)
at com.sencha.gxt.themebuilder.ThemeSlicer$slice.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
at com.sencha.gxt.themebuilder.ThemeBuilder$_main_closure6.doCall(ThemeB
uilder.groovy:115)
at com.sencha.gxt.themebuilder.ThemeBuilder$_main_closure6.doCall(ThemeB
uilder.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(C
losureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
lassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
lassSite.java:54)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
at com.sencha.gxt.themebuilder.ThemeBuilder$__clinit__closure8.doCall(Th
emeBuilder.groovy:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(C
losureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHel
per.java:848)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:831)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:164)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(Scrip
tBytecodeAdapter.java:570)
at com.sencha.gxt.themebuilder.ThemeBuilder.main(ThemeBuilder.groovy:114
)
12.05.2014. 09.48.14 org.slf4j.Logger$error$0 call
SEVERE: java.lang.IllegalArgumentException: Unknown image type 0
at java.awt.image.BufferedImage.<init>(BufferedImage.java:490)
at com.sencha.util.ImagePool$Entry.<init>(ImagePool.java:70)
at com.sencha.util.ImagePool$Entry.<init>(ImagePool.java:36)
at com.sencha.util.ImagePool.get(ImagePool.java:109)
at com.sencha.util.ImagePool.get(ImagePool.java:115)
at com.sencha.tools.slicer.operations.BasicOperation.perform(BasicOperat
ion.java:33)
at com.sencha.tools.slicer.Model$Slice.perform(Model.java:678)
at com.sencha.tools.slicer.Model$Widget.perform(Model.java:430)
at com.sencha.tools.slicer.Model$Manifest.perform(Model.java:738)
at com.sencha.command.filesystem.SliceCommand.execute(SliceCommand.java:
108)
at com.sencha.command.filesystem.SliceCommand$execute.call(Unknown Sourc
e)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
at com.sencha.gxt.themebuilder.ThemeSlicer.slice(ThemeSlicer.groovy:67)
at com.sencha.gxt.themebuilder.ThemeSlicer$slice.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
at com.sencha.gxt.themebuilder.ThemeBuilder$_main_closure6.doCall(ThemeB
uilder.groovy:115)
at com.sencha.gxt.themebuilder.ThemeBuilder$_main_closure6.doCall(ThemeB
uilder.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(C
losureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
lassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
lassSite.java:54)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
at com.sencha.gxt.themebuilder.ThemeBuilder$__clinit__closure8.doCall(Th
emeBuilder.groovy:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(C
losureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHel
per.java:848)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:831)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:164)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(Scrip
tBytecodeAdapter.java:570)
at com.sencha.gxt.themebuilder.ThemeBuilder.main(ThemeBuilder.groovy:114
)

Colin Alworth
19 May 2014, 4:29 PM
We've seen an error message like this before, but not yet with the themer. Previously this has shown up with the GWT ClientBundle, and indicates that you are using a JDK that has faulty image processing code. It looks as though a few old JDK builds had problems in how they handled PNG files - can you confirm that that is the case here by updating to a newer Java 1.7?

According to https://community.oracle.com/thread/2426746 your JDK build is at least a year and a half old - there have been many updates since then that may resolve this.

If a newer build doesn't solve this, can you try opening the image file to see if your browser believes it to be a real image? In your log, this was generated as C:\Users\PPesic\AppData\Local\Temp\temp22438.png, though each build will have a different location. I got that out of this line:


FINE: Loading image to slice - C:\Users\PPesic\AppData\Local\Temp\temp22438.png

remark
19 May 2014, 11:57 PM
With the latest 1.7 JDK everything is OK. Thanks.