Unable to load png images using bge.texture.ImageFFmpeg #37708

Closed
opened 2013-12-05 13:35:44 +01:00 by Ariel · 17 comments

System Information
Windows 7 64bits

Blender Version
Broken: Blender 2.69-r60958-win32-vc11 and 2.69-r60958-win64-vc11
Worked: Blender 2.69-8003f06-win32 and 2.69 stable

Short description of error
The experimental release of blender using VS 2012 doesn't load png images.

Exact steps for others to reproduce the error

Requirements:
1. Windows
2. Download the blender release http://builder.blender.org/download/blender-2.69-r60958-win64-vc11.zip
3. The demo.blend and the image 'blender.png' on the same directory. Yo can download the from: blender_bug_png.zip

Steps:
1. Move cursor to the 3D View and press the key 'P' or click on Game -> Start Game Engine.
2. If the image is loaded correctly the cube will turn green, if not it will turn red.

 

Extra steps:
1. Show the system console (Window -> Toogle system console).
2. If you look at the execution prints you will notice that when the texture doesn't load the LAST ERROR (print of bge.texture.getLastError()) is empty, why?

**System Information** Windows 7 64bits **Blender Version** Broken: Blender 2.69-r60958-win32-vc11 and 2.69-r60958-win64-vc11 Worked: Blender 2.69-8003f06-win32 and 2.69 stable **Short description of error** The experimental release of blender using VS 2012 doesn't load png images. **Exact steps for others to reproduce the error** Requirements: 1. Windows 2. Download the blender release http://builder.blender.org/download/blender-2.69-r60958-win64-vc11.zip 3. The demo.blend and the image 'blender.png' on the same directory. Yo can download the from: [blender_bug_png.zip](https://archive.blender.org/developer/F36557/blender_bug_png.zip) Steps: 1. Move cursor to the 3D View and press the key 'P' or click on Game -> Start Game Engine. 2. If the image is loaded correctly the cube will turn green, if not it will turn red. ``` ``` Extra steps: 1. Show the system console (Window -> Toogle system console). 2. If you look at the execution prints you will notice that when the texture doesn't load the LAST ERROR (print of `bge.texture.getLastError()`) is empty, why?
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @arielvb

Added subscriber: @arielvb
Juergen Herrmann was assigned by Dalai Felinto 2013-12-05 14:14:06 +01:00

Added subscribers: @JurgenHerrmann, @kupoman, @Moguri, @dfelinto

Added subscribers: @JurgenHerrmann, @kupoman, @Moguri, @dfelinto

I will see if @JurgenHerrmann can take a look at this. We don't officially fully support vc11 yet (thus it's called experimental).

@Moguri / @kupoman are you building with vc11? can you confirm if this bug happens in master? (builtbot is way outdated for vc11)

I will see if @JurgenHerrmann can take a look at this. We don't officially fully support vc11 yet (thus it's called experimental). @Moguri / @kupoman are you building with vc11? can you confirm if this bug happens in master? (builtbot is way outdated for vc11)

I'm on Linux these days, so I'm using GCC. However, I'm guessing the ffmpeg library being used for the vc11 builds doesn't have PNG support.

I'm on Linux these days, so I'm using GCC. However, I'm guessing the ffmpeg library being used for the vc11 builds doesn't have PNG support.
Member

This sounds familiar. I build with MSVC 2012, but I will need to wait until I get home to double check this.

This sounds familiar. I build with MSVC 2012, but I will need to wait until I get home to double check this.
Author

I've compiled blender/blenderplayer from source (the 2.69 tag) with MSVC 2012 using lib/windows_vc11 and it's broken as the buildbot versions... Did anyone of you have different results?

I've compiled blender/blenderplayer from source (the 2.69 tag) with MSVC 2012 using lib/windows_vc11 and it's broken as the buildbot versions... Did anyone of you have different results?

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

vc 2012 is not supported officially yet, therefore marking as low priority.

vc 2012 is not supported officially yet, therefore marking as low priority.

Hi,

I'll look into this as soon as possible.
I took a brief look at this and found a problem with the FFmpeg libs. They seem to lack png support.
I'll rebuild the libs as soon as possible and upload them to SVN.

/Shadowrom

Hi, I'll look into this as soon as possible. I took a brief look at this and found a problem with the FFmpeg libs. They seem to lack png support. I'll rebuild the libs as soon as possible and upload them to SVN. /Shadowrom

Hi there,

i recompiled the FFmpeg libs and assured that png, zlib and jpeg support was compiled in.
Unfortunately that doesn't seem to be the problem.

This needs some thorough debugging, unfortunately CMake is broken for VS2012 debug builds atm.
So i'll have to fix that first.

And then I'll need some help with python binding debugging and internal stuff I guess :D

Hi there, i recompiled the FFmpeg libs and assured that png, zlib and jpeg support was compiled in. Unfortunately that doesn't seem to be the problem. This needs some thorough debugging, unfortunately CMake is broken for VS2012 debug builds atm. So i'll have to fix that first. And then I'll need some help with python binding debugging and internal stuff I guess :D

Added subscriber: @AngusHollands-4

Added subscriber: @AngusHollands-4

It seems that this is something to do with the call to "avformat_find_stream_info". There is a helper method defined in a header file for API versions less than 54 (which thusly isn't defined for our usage in VS2013), but I'm not sure if we need that or not. Either way, it's at this function that the opening fails.

It seems that this is something to do with the call to "avformat_find_stream_info". There is a helper method defined in a header file for API versions less than 54 (which thusly isn't defined for our usage in VS2013), but I'm not sure if we need that or not. Either way, it's at this function that the opening fails.

Does this work in VS2013 builds?

Does this work in VS2013 builds?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

I just had the opportunity to test this with a clean debug build of blender made with VS2013.

As I will not continue the VS2012 port but, rather concentrate on supporting VS2013 i'll close this task.
Please use VS2013 in the future.

Another possibility to work around this is to replace the FFMpeg libs with the old FFMpeg libs of VS2008. That should work too.

I just had the opportunity to test this with a clean debug build of blender made with VS2013. As I will not continue the VS2012 port but, rather concentrate on supporting VS2013 i'll close this task. Please use VS2013 in the future. Another possibility to work around this is to replace the FFMpeg libs with the old FFMpeg libs of VS2008. That should work too.

I haven't been able to test it today, but the last time I did so, I was using the latest visual studio and it wasn't working. Tga files load fine. I'll report back when I've validated my claim.

I haven't been able to test it today, but the last time I did so, I was using the latest visual studio and it wasn't working. Tga files load fine. I'll report back when I've validated my claim.
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
7 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#37708
No description provided.