new install report: zmu always segfaulting, jpeg-mmx works!

Support and queries relating to all previous versions of ZoneMinder
Locked
talllmc
Posts: 10
Joined: Sat Jan 29, 2005 10:35 am
Location: South Korea
Contact:

new install report: zmu always segfaulting, jpeg-mmx works!

Post by talllmc »

Hello,

I've tried reinstalling zoneminder binaries quiet a few times, and zmu keeps segfaulting.

All the other daemons run fine, and capture / motion sensing is working fine.
As zmu segfaults, I can't view monitors or create thumbnails.

The image directory is set to "images" in the zm database and has the same permissions and symbolic link to a reiserfs filesystem as the events directory. Is this correct?

I've recompiled without ffmpeg (that was linked to more than just lame). I'll RTFM again. Could it be something to do with a shared memory conflict? Could someone suggest a course of action / request information.
I've done a system call trace on zmu, and right after it's verfied the user (through auth or plain) it will always segfault, doing anything apart from printing the help causes this segfault. Is it something with my underlying linux distribution? Gentoo-2004.3 ~x86. Close enough to Linux from scratch isn't it?

Also earlier in the installation I successfully got zoneminder running (minus ZMU of course) with libjpeg-mmx from the mjpeg suite. This version of libjpeg uses MMX, and the CPU dropped about 3 fold!!. Pity I couldn't get the pnmtools to compile against it as well. With this you don't have to cough up lots of money for LML cards that do the jpeg compression on board of very little CPU is utilized in the jpeg creation process.

Cheers,

Luke
talllmc
Posts: 10
Joined: Sat Jan 29, 2005 10:35 am
Location: South Korea
Contact:

fixed

Post by talllmc »

I installed zm-1.20.1, and that solved the problem. I am getting streaming video in netscape now, and zmu binary isn't segfaulting. I was sure I did it before, but I recompiled libjpeg with less optomization... knowing now that my problems weren't necessarly caused by libjpeg-mmx i'll probably give it ago again!

The only problem I have now is with thumbnails

jpegtopnm: WRITING PPM FILE
jpegtopnm: Error writing single byte sample to file
ppmtojpeg: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.

I don't know what's wrong here. I'm looking into it. Any comments again would be appreciated.

Cheers,

Luke
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Did you figure out the netpbm problems?

Phil
talllmc
Posts: 10
Joined: Sat Jan 29, 2005 10:35 am
Location: South Korea
Contact:

netpbm problems

Post by talllmc »

Phil,

Netpbm is OK now.

My issue caused by it not playing nice with the libjpeg-mmx I had installed, even after it was recompiled against the new jpeg headers.

The people at freebsd say in their package description that libjpeg-mmx is NOT a drop in replacement for jpeg-62b. I guess your lucky it works without any code changes.

Right now, I can get both zoneminder+jpeg-mmx and netpbm working if I:

1) statically link and recompile netpbm
2) remove jpeg
3) merge jpeg-mmx
4) compile zoneminder. Edit configure.in to search for libjpeg-mmx. Hack the src/Makefile INCLUDES=-I/usr/include/jpeg-mmx/ .....
5) make install.

The dynamic linker always links to libjpeg.so even if when the binary was created with -ljpeg-mmx), and I re-compile netpbm statically. Problem is I would have to recompile every other application that used or needs the old jpeg (LOTS!) statically as well. The obvious fix is what I am going to attempt now is to get zoneminder to link against libjpeg-mmx.so.

Removing a non-mmx libjpeg may be fine on an embedded system, that doesn't have an X display - but not acceptable for any other production systems.

When I have solved that problem I can contribute a patch. It's probably has a very simple solution.

Anyone want to try? Just check with ldd that the zoneminder binares link to libjpeg-mmx.so not just libjpeg.so. Just emerge, dpkg or whatever jpeg-mmx and give it a shot!

Luke
oskin
Posts: 84
Joined: Tue May 25, 2004 7:03 pm
Location: Moscow, Russia

Re: new install report: zmu always segfaulting, jpeg-mmx wor

Post by oskin »

talllmc wrote:Also earlier in the installation I successfully got zoneminder running (minus ZMU of course) with libjpeg-mmx from the mjpeg suite. This version of libjpeg uses MMX, and the CPU dropped about 3 fold!!.
I have compiled zm-1.20.1 with jpeg-mmx-current_cvs (statically linked) and have compared work with zm-1.20.1 + libjpeg-6b. Checked at three stands:
1. AthlonXP-3000 +, 512M, AverTV-203, b/w camera 520x400 25fps. Fedora Core 3.
2. Celeron 1.8GHz, 512M, AverTV-203, b/w camera 520x400 25fps. Fedora Core 3.
3. Pentium4 3000GHz with HT, 512M, AXIS 2400 Video Server, 2x b/w camera 352x288 8-10fps. Fedora Core 3.

In all cases any advantage of the version with jpeg-mmx has not found out.
I have made something incorrectly?
Locked