Giter VIP home page Giter VIP logo

Comments (19)

Pontesegger avatar Pontesegger commented on August 18, 2024 1

Had the same problem with a standard image. It worked when I converted my image to RGB - 8 bits/channel

from gource.

bhaller avatar bhaller commented on August 18, 2024 1

@Pontesegger's fix worked for me as well. It appears that whatever library gource is using to read PNG files on macOS doesn't like 8-bit grayscale PNGs. Converting them to 8bit RGB fixes the problem.

from gource.

acaudwell avatar acaudwell commented on August 18, 2024 1

I just re-saved all the PNG images and re-commited them: 56b7b30

I'm curious if this fixes the issue.

You could copy them into /usr/local/share/gource/ or install it with brew install gource --HEAD

from gource.

acaudwell avatar acaudwell commented on August 18, 2024

Maybe try uninstalling and reinstalling libpng, sdl2, sdl2_image packages, then reinstall gource. Also check the file permissions on /usr/local/share/gource/ and file.png are readable by your user.

You could put some debug in src/core/texture.cpp TextureResource::load(bool reload) to see why it is failing. If IMG_Load() is failing to return a surface then it is maybe a problem with your sdl2_image (or file permissions, or something).

from gource.

vi4m avatar vi4m commented on August 18, 2024

The same issue here, tried recompile from sources, head, and dev, the same error

from gource.

lsseckman avatar lsseckman commented on August 18, 2024

Hey, encountered same error, uninstalled libpng, sdl2, sdl2_image packages and refreshed the install of using homebrew, no luck.

[06:25 PM | grizzly] $ gource
gource: failed to load resource '/opt/boxen/homebrew/Cellar/gource/0.43_3/share/gource/file.png'

from gource.

zurbo avatar zurbo commented on August 18, 2024

Same issue here, tried to uninstall sdl2, sdl2_image and libpng packages, no luck (too).

from gource.

gardner avatar gardner commented on August 18, 2024

I installed via brew install gource and this is happening for me as well.

from gource.

neolectron avatar neolectron commented on August 18, 2024

bug still here

from gource.

jpaulin avatar jpaulin commented on August 18, 2024

Does gource use any structures in libpng which were removed ie. during the shift to latest 1.6.x branch? Just wondering. Gource's file INSTALL suggests having a libpng12 and what I reckoned, from there onwards, PNG library project page says that there's been changes in ie. removing direct access to "internals" like some PNG's structs. Seems a bit similar as: http://stackoverflow.com/questions/21472958/sdl-image-img-load-fails-on-png

from gource.

lesteenman avatar lesteenman commented on August 18, 2024

I'm experiencing this as well. Any updates on this, or anything we can give you to help you resolve this issue? I've had the same result with a version installed from apt-get (Ubuntu), as well as installing every dependency manually and then compiling Gource from source.

from gource.

acaudwell avatar acaudwell commented on August 18, 2024

Gource uses SDL2_image library to load pngs. Presumably the SDL2_image IMG_Load() function in texture.cpp is failing to load the image. It could be a problem with that library or how Gource uses it (e.g. something wrong with configure.ac).

from gource.

lesteenman avatar lesteenman commented on August 18, 2024

For what it's worth: The path is correct, the file is a working PNG, and 777 permissions do not solve it.

Edit: Would an strace log help?

Inspecting with GDB shows that it is the IMG_Load call that's the issue, returning '0'. Haven't found any further clues. Both SDL 1.2 and SDL 2 seem to cause the same issue.

from gource.

lesteenman avatar lesteenman commented on August 18, 2024

I manually compiled and installed SDL2 from their website, and that has seemed to resolve it!

https://www.libsdl.org/projects/SDL_image/

from gource.

letatas avatar letatas commented on August 18, 2024

Yeah !!! At last !

Thank you, it works here also !

Le 10 nov. 2016 à 13:38, Erik [email protected] a écrit :

I manually compiled and installed SDL2 from their website, and that has seemed to resolve it!

https://www.libsdl.org/projects/SDL_image/ https://www.libsdl.org/projects/SDL_image/

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #43 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AAZNGXdWFB7YohJV9CnMQH5uaTxlpJXhks5q8xA8gaJpZM4GcHLl.

from gource.

jehovahsays avatar jehovahsays commented on August 18, 2024

On Windows go into gource folder and open the folder named data and look for a file named file.png. If it is not there replace it with the file.png from the gource repository.

from gource.

snhrdt avatar snhrdt commented on August 18, 2024

This problems still occurs with gource 0.44 installed via homebrew. Is there any chance that this will get solved at any point?

from gource.

acaudwell avatar acaudwell commented on August 18, 2024

lesteenman comment implies to me its a problem with the SDL2_image package in homebrew.

from gource.

Wintermute79 avatar Wintermute79 commented on August 18, 2024

Same problem still here (on Windows 10)

from gource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.