This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Crashes because of libpng12

1
1

Wireshark crashes when I try to start it. Console tells me it's a problem with libpng12.0.dylib. My searches for fixes for this are turning up fruitless. Can anyone point me in the right direction? Any help is appreciated. Running OSX 10.6.4 . Thanks.

1/28/11 12:50:30 AM defaults[3650]  
The domain/default pair of (.GlobalPreferences, AppleCollationOrder) does not exist
1/28/11 12:50:30 AM [0x0-0x8d08d].org.wireshark.Wireshark[3616] dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib
1/28/11 12:50:30 AM [0x0-0x8d08d].org.wireshark.Wireshark[3616]   Referenced from: /Applications/Wireshark.app/Contents/Resources/bin/wireshark-bin
1/28/11 12:50:30 AM [0x0-0x8d08d].org.wireshark.Wireshark[3616]   Reason: Incompatible library version: wireshark-bin requires version 45.0.0 or later, but libpng12.0.dylib provides version 42.0.0
1/28/11 12:50:31 AM ReportCrash[3661]   Saved crash report for wireshark-bin[3619] version ??? (???) to /Users/jac/Library/Logs/DiagnosticReports/wireshark-bin_2011-01-28-005031_jac.crash

asked 27 Jan '11, 22:12

rober's gravatar image

rober
16123
accept rate: 0%

edited 28 Jan '11, 00:51

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245

I just downloaded wireshark on my new MacBook and I have the same problem.

(28 Jan '11, 10:47) coolaj86

5 Answers:

1

Here's what solved the problem for me:

Now it works.

answered 28 Jan '11, 11:10

coolaj86's gravatar image

coolaj86
162
accept rate: 0%

It worked. Thanks everyone.

(29 Jan '11, 00:29) rober

1

Unfortunately, the Wireshark builds are not done with the 10.5 or 10.6 SDK, they're done with the libraries that are on the build system, and, equally unfortunately, software updates can introduce libraries with higher "compatibility versions", so that if you build on 10.x.y, the result of the build might expect libraries with the "compatibility versions" from 10.x.y, and 10.x.z, where z < y, might have libraries with earlier "compatibility versions".

The 10.6 buildbot is currently running 10.6.6, so if you're running an earlier version of 10.6, you might have to do a software update to 10.6.6 in order to run one of the Wireshark builds.

Changing the permissions on the BPF devices with, for example, ChmodBPF won't affect this; it will just affect whether you can capture with Wireshark once you've gotten Wireshark to start at all.

answered 28 Jan '11, 12:47

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

edited 13 Feb '11, 16:17

I've got 10.6.6. When I run wireshark it complaims about an inaddequate libpng library. Specifically:

2011-02-13 09:22:53.581 defaults[77743:903]

The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist 2011-02-13 09:22:53.610 defaults[77744:903]

The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib

Referenced from: /Applications/Wireshark.app/Contents/Resources/bin/wireshark-bin Reason: Incompatible library version: wireshark-bin requires version 45.0.0 or later, but libpng12.0.dylib provides version 42.0.0

(13 Feb '11, 08:24) SGBotsford

Hi,

I have the same problem, I've fixed the ChmodBPF permissions, I have an up to date Mac OS X 10.6.6 (the system tells me no more updates) but I still have this message while launching wireshark :

MacBook-Pro-de-Yann-Sionneau:~ fallen$ wireshark 2011-02-14 00:08:09.162 defaults[522:903] The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist 2011-02-14 00:08:09.173 defaults[523:903] The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib Referenced from: /Applications/Wireshark.app/Contents/Resources/bin/wireshark-bin Reason: Incompatible library version: wireshark-bin requires version 45.0.0 or later, but libpng12.0.dylib provides version 42.0.0 Trace/BPT trap

doing locate libpng gives me : /opt/local/bin/libpng-config /opt/local/bin/libpng14-config /opt/local/include/libpng14 /opt/local/include/libpng14/png.h /opt/local/include/libpng14/pngconf.h /opt/local/lib/libpng.a /opt/local/lib/libpng.dylib /opt/local/lib/libpng.la /opt/local/lib/libpng14.14.dylib /opt/local/lib/libpng14.a /opt/local/lib/libpng14.dylib /opt/local/lib/libpng14.la /usr/X11/bin/libpng-config /usr/X11/bin/libpng12-config /usr/X11/include/libpng12 /usr/X11/include/libpng12/png.h /usr/X11/include/libpng12/pngconf.h /usr/X11/lib/libpng.3.41.0.dylib /usr/X11/lib/libpng.3.44.0.dylib /usr/X11/lib/libpng.3.dylib /usr/X11/lib/libpng.dylib /usr/X11/lib/libpng12.0.41.0.dylib /usr/X11/lib/libpng12.0.44.0.dylib /usr/X11/lib/libpng12.0.dylib /usr/X11/lib/libpng12.dylib

(13 Feb '11, 16:12) yannsionneau

For people who've updated to 10.6.6 but still have this problem:

  1. what does the command "sw_vers" print?

  2. did you install X11 when you first got the machine, or later, possibly after doing an update?

(14 Feb '11, 10:23) Guy Harris ♦♦
1

sw_vers ProductName: Mac OS X ProductVersion: 10.6.6 BuildVersion: 10J567

I re-installed X11 today.

After fighting this identical problem for awhile, I ran 'sudo port install wireshark-devel', started from the command line, and it is now working for me.

(15 Feb '11, 21:09) mbaugher

0

I had the same problem exactly as described. I downloaded the latest version of x11 from Apple. Turns out I already had it. So following various hints I found and downloaded the current version of xQuartz. I logged off and back on... no joy. So I downloaded and installed IncScape as recommended somewhere. IncScape ran fine but not WireShark.

Doing printenv to check the DISPLAY variable I glanced at the PATH variable. So there is a /opt/X11/lib in the path followed by the /usr/X11/lib. I had looked at the /usr/X11/lib after each of the above installs and there were no changes so I decided to look to see if the xQuartz libraries were in /opt/ and they were.

It appears that the version of WireShark I have 1.6.1 has /usr/X11/lib hardcoded. I deleted this library and copied the library from /opt/X11 into /usr/ and it works now.

I have ignored this problem for about a year and perhaps I should have got the most recent version of Wireshark which may have fixed this but I'm posting this anyway in case there are any other stubborn folks out there.

answered 14 Sep '11, 08:59

tolinski's gravatar image

tolinski
1
accept rate: 0%

0

I had the same problem with 10.7.5. Running 'sudo port install wireshark-devel'fixed the problem. Well, I say 'fixed' - Wireshark won't launch from the desktop, but if I start it in a terminal window, it runs fine. Seems I was missing most of the glib packages, which I've never been able to successfully install before now, using either port or fink. Hope this is helpful to others with the same problem.

answered 16 Feb '13, 18:47

Cephas's gravatar image

Cephas
11
accept rate: 0%

0

As everyone in here I experiment Wireshark crashes at start. I must say taht I'm running OSX 10.5.8 first. To solve the problem, I install Quartz 2.6.3 and WireShark 1.8.6. WS take a little while to start, but it works fine.

answered 25 Mar '13, 03:26

Simon's gravatar image

Simon
1
accept rate: 0%