If you use a .psd that contains layer masks or you use CMYK colors, Grayscale colors or alike:
Error: invalid number of channel: 5
at com.voidelement.images.psd.layer::LayerPixelData?()[:78]
at com.voidelement.images.psd.section::PSDLayerAndMask/parseLayerInfo()[:75]
at com.voidelement.images.psd.section::PSDLayerAndMask()[:48]
at com.voidelement.images.psd::PSDParser()[:57]
at at.leichtgewicht.libspark.psdParser::PSDInfoOutput/setInfo()[:105]
at Example/handleFileChange()[:94]
at flash.events::EventDispatcher?/dispatchEventFunction()
at flash.events::EventDispatcher?/dispatchEvent()
at at.leichtgewicht.ui.component.lgw::LGWFileChooser/handleFileComplete()[:81]