Skip to content

javax.imageio.IIOException: I/O error reading PNG header! at #1

@CrazyBoy49z

Description

@CrazyBoy49z

Describe the bug
javax.imageio.IIOException: I/O error reading PNG header! at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readHeader(PNGImageReader.java:315) at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:698) at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1395) at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1810) at com.intellij.util.ImageLoader.loadPng(ImageLoader.java:352) at com.intellij.util.ImageLoader.loadFromStream(ImageLoader.java:547) at com.intellij.util.ImageLoader.loadFromBytes(ImageLoader.java:538) at com.mallowigi.imageicon.converters.RegularImageConverter$Companion.loadImageIcon(RegularImageConverter.kt:111) at com.mallowigi.imageicon.converters.RegularImageConverter$Companion.access$loadImageIcon(RegularImageConverter.kt:101) at com.mallowigi.imageicon.converters.RegularImageConverter.convert(RegularImageConverter.kt:67) at com.mallowigi.imageicon.ImageIconProvider.getIcon(ImageIconProvider.kt:44) at com.intellij.util.PsiIconUtil.getProvidersIcon(PsiIconUtil.java:21) at com.intellij.psi.impl.ElementBase.doComputeIconNow(ElementBase.java:88) at com.intellij.psi.impl.ElementBase.lambda$computeIconNow$3(ElementBase.java:84) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:130) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:119) at com.intellij.psi.impl.ElementBase.computeIconNow(ElementBase.java:84) at com.intellij.psi.impl.ElementBase.lambda$static$0(ElementBase.java:44) at com.intellij.ui.DeferredIconImpl.evaluate(DeferredIconImpl.java:297) at com.intellij.ui.DeferredIconImpl.lambda$scheduleEvaluation$1(DeferredIconImpl.java:178) at com.intellij.ui.IconDeferrerImpl.evaluateDeferred(IconDeferrerImpl.java:99) at com.intellij.ui.DeferredIconImpl.lambda$scheduleEvaluation$2(DeferredIconImpl.java:178) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1078) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:78) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:161) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:118) at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:57) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:170) at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:57) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:115) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:78) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:99) at com.intellij.ui.DeferredIconImpl.lambda$scheduleEvaluation$5(DeferredIconImpl.java:177) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216) at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27) at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195) at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213) at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:184) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: javax.imageio.IIOException: Bad PNG signature! at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readHeader(PNGImageReader.java:242) ... 50 more

Environment

It should contain:
PhpStorm 2021.2.1
Build #PS-212.5080.71, built on August 26, 2021
Licensed to Yurij Finiv
Subscription is active until September 17, 2021.
Runtime version: 11.0.11+9-b1504.16 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.5.2
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: ide.windowSystem.autoShowProcessPopup=true, run.processes.with.pty=TRUE, editor.distraction.free.mode=true, ide.experimental.ui.toolwindow.stripes=true, ide.balloon.shadow.size=0, ide.images.show.chessboard=true
Non-Bundled Plugins: Key Promoter X (2021.2), com.wakatime.intellij.plugin (13.0.3), LiveTemplatePreview (0.3), in.thekalinga.snippet.intellij (6.1.0), com.mnr.java.intellij.idea.plugin.base64helper (2.0.3), com.materkey.codepoints (1.0.2), com.xiaobing1024.laravel (1.1.1), intellij.webp (212.4746.57), com.mallowigi.imageicon (13.0), net.seesharpsoft.intellij.plugins.csv (2.17.1), ski.chrzanow.foldableprojectview (1.1.1), io.aesy.regex101 (0.2), com.github.czy211.licensetemplate (2.0.0), com.tabnine.TabNine (0.4.9), org.intellij.RegexpTester (1.0.8), ideanginx9 (0.1.9), com.mallowigi (38.0.0), mobi.hsz.idea.gitignore (4.2.0), com.github.jk1.ytplugin (1.2.9), com.ultrahob.zerolength.plugin2 (0.93), bundled-phpstorm-help (212.5080.71), com.redhat.devtools.intellij.telemetry (0.0.2.18), com.code-scan.intellij (4.7.3), com.chesterccw.excelreader (2.0.0), com.wix.sasslint (1.1.2), com.intellij.properties (212.4746.57), String Manipulation (8.15.203.000.3), intellij.prettierJS (212.5080.8), com.kalessil.phpStorm.phpInspectionsEA (4.0.6.4), org.endpointdeps.EndpointDependencies (1.3), izhangzhihao.rainbow.brackets (6.21), com.dimabdc.idea.php.phpunit (0.5.1), com.funivan.idea.phpClean (2020.12.22), de.espend.idea.php.annotation (8.0.0), com.alicannklc.laravel.snippets (1.1.1), net.king2500.plugins.PhpAdvancedAutoComplete (1.1.0), pers.fw.doc_en (1.1), com.aurimasniekis.phpclasstemplates (1.0.2), io.nimbly.json.Any2Json (2.17.3), fr.adrienbrault.idea.symfony2plugin (0.23.211), dev.ekvedaras.laravelquery (2.0.6), nl.deschepers.laraveltinker (2.2.0), com.chrisrm.idea.MaterialThemeUI (6.8.2), com.mallowigi.colorHighlighter (8.0), jones.restarteslintaction.restart-eslint-action (0.0.1), com.firsttimeinforever.intellij.pdf.viewer.intellij-pdf-viewer (0.11.1), org.i18nally.jetbrainsideplugin (1.0.9), de.espend.idea.laravel (0.15.4), dev.nybroe.collector (0.3.2), ru.adelf.idea.dotenv (2021.3.0.212), com.laravel_idea.plugin (4.4.0.212)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions