Custom Add-on PNG Icons are not loaded correctly in Blender 3.6.0 #107512

Closed
opened 2023-05-01 20:31:18 +02:00 by Alex Zhornyak · 5 comments

System Information
Operating system: macOS-12.4-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 1.2

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-30 05:23, hash: 358ce4f52b58
Worked: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: e1ccd9d4a1d3

Short description of error
I'm a developer of Zen UV, Zen Sets add-on, and all icons in my add ons are not loaded

Exact steps for others to reproduce the error

  1. Install TestPreview add-on in Blender 3.6.0
    TestPreview.zip

  2. Open Previews Example Panel

Screenshot 2023-05-01 at 21.23.44.png

Result:
Custom icon is not seen and I see in console the message libpng error: cHRM: Read error: hit end of file

P.S. On previous Blender versions this png file is loaded correctly
Screenshot 2023-05-01 at 21.30.06.png

**System Information** Operating system: macOS-12.4-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 1.2 **Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-30 05:23, hash: `358ce4f52b58` Worked: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: `e1ccd9d4a1d3` **Short description of error** I'm a developer of Zen UV, Zen Sets add-on, and all icons in my add ons are not loaded **Exact steps for others to reproduce the error** 1. Install TestPreview add-on in Blender 3.6.0 [TestPreview.zip](/attachments/fdbef26d-be55-4b20-8499-7770f9b6e134) 2. Open Previews Example Panel ![Screenshot 2023-05-01 at 21.23.44.png](/attachments/ac3c693b-c592-46ed-9ede-137c6722ebe0) **Result:** Custom icon is not seen and I see in console the message `libpng error: cHRM: Read error: hit end of file` P.S. On previous Blender versions this png file is loaded correctly ![Screenshot 2023-05-01 at 21.30.06.png](/attachments/e471adc4-59cb-4db7-9c29-69dfa7f0971f)
Alex Zhornyak added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-05-01 20:31:18 +02:00
Iliya Katushenock added the
Interest
Python API
label 2023-05-01 20:43:15 +02:00

This is actually a duplicate of #107212 and I have a fix out for it now, just waiting on code review. I'll mark this as a duplicate but feel free to subscribe to the other one for notifications on when it's fixed.

This is actually a duplicate of #107212 and I have a fix out for it now, just waiting on code review. I'll mark this as a duplicate but feel free to subscribe to the other one for notifications on when it's fixed.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-05-01 22:12:35 +02:00
Jesse Yurkovich added
Status
Duplicate
and removed
Status
Archived
Interest
Python API
labels 2023-05-01 22:12:56 +02:00
Author

System Information
Operating system: macOS-12.4-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 1.2

Blender Version
Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: c7fc78b81ecb
Worked: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: e1ccd9d4a1d3

PROBLEM IS NOT SOLVED with the today's release version

image

**System Information** Operating system: macOS-12.4-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 1.2 **Blender Version** Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: `c7fc78b81ecb` Worked: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: `e1ccd9d4a1d3` **PROBLEM IS NOT SOLVED with the today's release version** ![image](/attachments/deffa89c-c8a8-4011-947e-3026965eddd8)
628 KiB
Blender Bot added
Status
Needs Triage
and removed
Status
Duplicate
labels 2023-06-27 20:34:50 +02:00

It seems fine here - see below. Are you able to try on a Windows/Linux machine at all by chance? You can also try the following:

  • Go to your HOME directory and look for a .thumbnails directory
  • You can delete the entire directory and restart blender (It's just a cache of some images that would be regenerated if they're required again)
  • See if things work after that

image

It seems fine here - see below. Are you able to try on a Windows/Linux machine at all by chance? You can also try the following: - Go to your HOME directory and look for a `.thumbnails` directory - You can delete the entire directory and restart blender (It's just a cache of some images that would be regenerated if they're required again) - See if things work after that ![image](/attachments/989948e5-9e20-472c-aaf1-98d5b5424ff7)
137 KiB
Jesse Yurkovich added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-06-27 21:14:18 +02:00
Author

Thank you for advice to clean thumbnails directory. It helped. Excuse me to disturb

Thank you for advice to clean thumbnails directory. It helped. Excuse me to disturb
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-06-27 21:47:34 +02:00

Glad it worked! No harm at all with following up.

Glad it worked! No harm at all with following up.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#107512
No description provided.