libpng causes GUI apps to crash with EXC_BAD_ACCESS #5420
Replies: 3 comments 12 replies
-
Why are you setting |
Beta Was this translation helpful? Give feedback.
-
Is it not possible to install "libpng.dylib" without app crashes (on macOS Seqouia) ? I need "libpng" for Gtk (gdk-pixbuf, cairo etc). But the app crashes because "libpng.dylib" is installed. If I uninstall "libpng.dylib" it works. But can't load PNG images, so not a solution. (I'm using dotnet and that must invoke something that fails when libpng is installed. |
Beta Was this translation helpful? Give feedback.
-
So the problem is that "dotnet" links to "CoreServices" that uses "ImageIO" framework. The ImageIO framework is using a "libPng.dylib" (I assume is very old). But if another "libpng" is installed from Homebrew or any other. Then normally you would have this:
The crash is because the "libpng.dylib" symbolic link is present, then the ImageIO framework tries to load that "libpng" and it do not match the API it expected. So the simple solution is to delete the "libpng.dylib" symbolic link. I would think the same solution could be used here. But not sure. |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
libpng
causes some GUI applications that call into Objective C to crash, such as tauri-apps/tauri#7351. The problem goes away whenever I uninstalllibpng
or remove/opt/homebrew/lib
fromDYLD_LIBRARY_PATH
.Beta Was this translation helpful? Give feedback.
All reactions