1.21.0 > 1.21.4 my problems

Support and queries relating to all previous versions of ZoneMinder
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

Well, here I go answering my own questions again...

Code: Select all

zmc --device /video0
zmc: error while loading shared libraries: libavutil.so: cannot open shared object file: No such file or directory
When I go back and to the 'make installlib' is runs as follows:

Code: Select all

[root@zoneminder ffmpeg]# make installlib
make -C libavutil installlib
make[1]: Entering directory `/cvs/CVSROOT/ffmpeg/libavutil'
mkdir -p "/usr/local/include/ffmpeg"
install -m 644 '/cvs/CVSROOT/ffmpeg'/libavutil/avutil.h \
               '/cvs/CVSROOT/ffmpeg'/libavutil/common.h \
               '/cvs/CVSROOT/ffmpeg'/libavutil/mathematics.h \
               '/cvs/CVSROOT/ffmpeg'/libavutil/integer.h \
               '/cvs/CVSROOT/ffmpeg'/libavutil/rational.h \
               '/cvs/CVSROOT/ffmpeg'/libavutil/intfloat_readwrite.h \
                "/usr/local/include/ffmpeg"
install -d "/usr/local/lib/pkgconfig"
install -m 644 ../libavutil.pc "/usr/local/lib/pkgconfig"
install -m 644 libavutil.a "/usr/local/lib"
make[1]: Leaving directory `/cvs/CVSROOT/ffmpeg/libavutil'
make -C libavcodec installlib
make[1]: Entering directory `/cvs/CVSROOT/ffmpeg/libavcodec'
mkdir -p "/usr/local/include/ffmpeg"
install -m 644 '/cvs/CVSROOT/ffmpeg'/libavcodec/avcodec.h \
                "/usr/local/include/ffmpeg"
install -d "/usr/local/lib/pkgconfig"
install -m 644 ../libavcodec.pc "/usr/local/lib/pkgconfig"
install -m 644 libavcodec.a "/usr/local/lib"
make[1]: Leaving directory `/cvs/CVSROOT/ffmpeg/libavcodec'
make -C libavformat installlib
make[1]: Entering directory `/cvs/CVSROOT/ffmpeg/libavformat'
mkdir -p "/usr/local/include/ffmpeg"
install -m 644 '/cvs/CVSROOT/ffmpeg'/libavformat/avformat.h '/cvs/CVSROOT/ffmpeg'/libavformat/avio.h \
                '/cvs/CVSROOT/ffmpeg'/libavformat/rtp.h '/cvs/CVSROOT/ffmpeg'/libavformat/rtsp.h \
                '/cvs/CVSROOT/ffmpeg'/libavformat/rtspcodes.h \
                "/usr/local/include/ffmpeg"
install -d "/usr/local/lib/pkgconfig"
install -m 644 ../libavformat.pc "/usr/local/lib/pkgconfig"
install -m 644 libavformat.a "/usr/local/lib"
make[1]: Leaving directory `/cvs/CVSROOT/ffmpeg/libavformat'
however attempting to restart ZM does not yet work. Same problems.

[later]
I rebuilt and reinstalled ZM after doing the above library install. However, nothing has changed. I still get the same error when trying to call ZMC from the command line also.

Could it be a permissions issue? If the correct library exists, coudl it be in the wrong place and I need to copy it somwhere?


-Casey
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

Hmmm. OK.. Here's my /usr/local/lib folder

Code: Select all

libavcodec.a       libavformat.a       libavutil.a       libnvalut.a     libpostproc.so.0      vhook
libavcodec-CVS.so  libavformat-CVS.so  libavutil-CVS.so  libnvopenal.a   libpostproc.so.0.0.1
libavcodec.so      libavformat.so      libavutil.so      libpostproc.so  pkgconfig
I symlinked the three newly installed (-CVS) files also into /usr/lib. The libavutil.so even in this directory is a symlink from libavutil-CVS.so, so it seems ZMC (and others) should be able to find the right new version.

Code: Select all

[root@zoneminder ~]# zmc
zmc: error while loading shared libraries: libavutil.so: cannot open shared object file: No such file or directory

Code: Select all

[root@zoneminder ~]# find / -name libav*
/cvs/CVSROOT/ffmpeg/libavutil.pc
/cvs/CVSROOT/ffmpeg/libavcodec
/cvs/CVSROOT/ffmpeg/libavcodec/libavcodec.a
/cvs/CVSROOT/ffmpeg/libavcodec.pc
/cvs/CVSROOT/ffmpeg/libavformat
/cvs/CVSROOT/ffmpeg/libavformat/libavformat.a
/cvs/CVSROOT/ffmpeg/libavformat-uninstalled.pc
/cvs/CVSROOT/ffmpeg/tests/libav.regression.ref
/cvs/CVSROOT/ffmpeg/libavformat.pc
/cvs/CVSROOT/ffmpeg/libavutil-uninstalled.pc
/cvs/CVSROOT/ffmpeg/libavutil
/cvs/CVSROOT/ffmpeg/libavutil/libavutil.a
/cvs/CVSROOT/ffmpeg/libavcodec-uninstalled.pc
/usr/include/libavc1394
/usr/share/doc/libavc1394-0.4.1
/usr/lib64/libavformat.a
/usr/lib64/libavcodec.so
/usr/lib64/libavc1394.la
/usr/lib64/libavcodec-0.4.9-pre1.so
/usr/lib64/libavc1394.so.0
/usr/lib64/libavc1394.so
/usr/lib64/libavc1394.so.0.1.1
/usr/lib64/libavcodec.a
/usr/lib64/libavformat.so
/usr/lib64/libavc1394.a
/usr/lib64/libavformat-0.4.9-pre1.so
/usr/lib/libavcodec.so
/usr/lib/libavc1394.so.0
/usr/lib/libavc1394.so.0.1.1
/usr/lib/libavutil.so
/usr/lib/libavformat.so
/usr/local/lib/libavutil-CVS.so
/usr/local/lib/libavformat-CVS.so
/usr/local/lib/libavformat.a
/usr/local/lib/libavcodec.so
/usr/local/lib/libavcodec-CVS.so
/usr/local/lib/libavcodec.a
/usr/local/lib/pkgconfig/libavutil.pc
/usr/local/lib/pkgconfig/libavcodec.pc
/usr/local/lib/pkgconfig/libavformat.pc
/usr/local/lib/libavutil.so
/usr/local/lib/libavformat.so
/usr/local/lib/libavutil.a
I can successfully run ffmpeg which I think relies on the same shared libraries.

-----
later....

OK! Figured it out, as a work-around anyway. Since I'm running the ZM patch for 64bit arch (by Karlg), ZM was looking for the support libraries in the /lib64 directory. SO, I symlinked the three files I mentioned at the top of this post into the directory and it SEEMS to be working. Further testing to follow.

But, why if I complie ffmpeg from cvs source in a 64bit envirnment does it not create a 64bit version of the library and put it in /lib64?

Should I have specified some option for that in the ffmpeg build?

-Casey
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

Well, my celebration was a little premature.

When ZM starts, ZMC and ZMA will run for a cam in modect mode. However, they crash almost immediately and stop capturing. They do get relaunched but crash again.

That is true for my 4 cams on PCI cards. However, my IP camera will continue to run just fine. I'm sure that's a good clue as to what's wrong. And if you read all of my tortuous posts before with all of my mistakes and problems and work-arounds, probably one of my solutions was incomplete.

I would appreciate any help. Also, if I just decide to throw in the towel and install the FC3 install image should that work fine on 64-bit hardware?

Thanks.

-Casey
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i dont know regarding the fc3 question. There has been other used this distro on 64 bit but i havnt heard any positive or negative commenst about it. I plab do do my first 64 bit build shortly as a test (using 32 bit os) and will report back
Agsin sorry its no help but i thought at least a post meant i was feeling your pain!
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

Here are the last few lines from my zmdc.log:

Code: Select all

'zmwatch.pl' running at 05/11/15 20:36:48, pid = 4435, valid
'zmc -d /dev/video2' running at 05/11/15 20:37:51, pid = 4513, valid
'zmaudit.pl -d 900 -y' running at 05/11/15 20:36:48, pid = 4429, valid
'zma -m 5' running at 05/11/15 20:37:07, pid = 4468, valid
'zmupdate.pl -c' running at 05/11/15 20:36:48, pid = 4440, valid
'zmfilter.pl' running at 05/11/15 20:36:48, pid = 4424, valid
'zmc -d /dev/video2' died at 05/11/15 20:37:55, signal 10
'zmc -d /dev/video2' started at 05/11/15 20:37:55
'zmc -d /dev/video2' starting at 05/11/15 20:37:55, pid = 4529
'zmc -d /dev/video2' died at 05/11/15 20:37:59, signal 10
Starting pending process, zmc -d /dev/video2
'zmc -d /dev/video2' started at 05/11/15 20:38:04
'zmc -d /dev/video2' starting at 05/11/15 20:38:04, pid = 4531
'zmc -d /dev/video2' died at 05/11/15 20:38:08, signal 10
Starting pending process, zmc -d /dev/video2
'zmc -d /dev/video2' started at 05/11/15 20:38:18
'zmc -d /dev/video2' starting at 05/11/15 20:38:18, pid = 4533
'zmc -d /dev/video2' died at 05/11/15 20:38:22, signal 10
Command 'zmc -d /dev/video2' removed from pending list at 05/11/15 20:38:32
'zma -m 3' stopping at 05/11/15 20:38:32
'zma -m 3' died at 05/11/15 20:38:32
'zmc -m 5' running at 05/11/15 20:37:07, pid = 4460, valid
'zmwatch.pl' running at 05/11/15 20:36:48, pid = 4435, valid
'zmaudit.pl -d 900 -y' running at 05/11/15 20:36:48, pid = 4429, valid
'zmfilter.pl' running at 05/11/15 20:36:48, pid = 4424, valid
'zmupdate.pl -c' running at 05/11/15 20:36:48, pid = 4440, valid
'zma -m 5' running at 05/11/15 20:37:07, pid = 4468, valid
'zmc -m 5' running at 05/11/15 20:37:07, pid = 4460, valid
'zmwatch.pl' running at 05/11/15 20:36:48, pid = 4435, valid
'zmaudit.pl -d 900 -y' running at 05/11/15 20:36:48, pid = 4429, valid
'zmfilter.pl' running at 05/11/15 20:36:48, pid = 4424, valid
'zmupdate.pl -c' running at 05/11/15 20:36:48, pid = 4440, valid
'zma -m 5' running at 05/11/15 20:37:07, pid = 4468, valid
'zmc -m 5' stopping at 05/11/15 20:42:21
'zmc -m 5' died at 05/11/15 20:42:21
'zmwatch.pl ' stopping at 05/11/15 20:42:21
'zmwatch.pl ' died at 05/11/15 20:42:21, signal 14
'zmaudit.pl -d 900 -y' stopping at 05/11/15 20:42:21
'zmaudit.pl -d 900 -y' died at 05/11/15 20:42:21, signal 14
'zmfilter.pl ' stopping at 05/11/15 20:42:21
'zmfilter.pl ' died at 05/11/15 20:42:21, signal 14
'zmupdate.pl -c' stopping at 05/11/15 20:42:21
'zmupdate.pl -c' died at 05/11/15 20:42:21, signal 14
'zma -m 5' stopping at 05/11/15 20:42:21
'zma -m 5' died at 05/11/15 20:42:21
Server shutdown at 05/11/15 20:42:31
and here is /var/log/messages:

Code: Select all

Nov 15 21:19:32 zoneminder zma_m5[4856]: INF [Warming up]
Nov 15 21:19:57 zoneminder zmc_dvideo0[4893]: INF [Debug Level = 0, Debug Log = <none>]    
Nov 15 21:19:57 zoneminder zmc_dvideo0[4893]: INF [Starting Capture]
Nov 15 21:19:57 zoneminder zma_m1[4901]: INF [Debug Level = 0, Debug Log = <none>]
Nov 15 21:19:57 zoneminder zma_m1[4901]: INF [Warming up]
Nov 15 21:20:00 zoneminder kernel: nvenet_xmit - skb->len  > priv->max_frame_size
Nov 15 21:20:01 zoneminder kernel: zmc[4893]: segfault at 00002aaaacd3f000 rip 000000338d3714ca rsp 00007ffffffff6a8 error 6
Nov 15 21:20:01 zoneminder zmc_dvideo0[4918]: INF [Debug Level = 0, Debug Log = <none>]
Nov 15 21:20:01 zoneminder zmc_dvideo0[4918]: INF [Starting Capture]
Nov 15 21:20:01 zoneminder crond(pam_unix)[4921]: session opened for user root by (uid=0)
Nov 15 21:20:01 zoneminder crond(pam_unix)[4924]: session opened for user root by (uid=0) 
Nov 15 21:20:02 zoneminder crond(pam_unix)[4921]: session closed for user root
Nov 15 21:20:02 zoneminder crond(pam_unix)[4924]: session closed for user root
Nov 15 21:20:02 zoneminder kernel: nvenet_xmit - skb->len  > priv->max_frame_size
Nov 15 21:20:04 zoneminder kernel: nvenet_xmit - skb->len  > priv->max_frame_size
Nov 15 21:20:05 zoneminder kernel: zmc[4918]: segfault at 00002aaaacd3f000 rip 000000338d3714ca rsp 00007ffffffff6a8 error 6
Nov 15 21:20:10 zoneminder zmc_dvideo0[4932]: INF [Debug Level = 0, Debug Log = <none>]   
Nov 15 21:20:10 zoneminder zmc_dvideo0[4932]: INF [Starting Capture]
Nov 15 21:20:14 zoneminder kernel: zmc[4932]: segfault at 00002aaaacd3f000 rip 000000338d3714ca rsp 00007ffffffff6a8 error 6
Nov 15 21:20:24 zoneminder zmc_dvideo0[4952]: INF [Debug Level = 0, Debug Log = <none>]    
Nov 15 21:20:24 zoneminder zmc_dvideo0[4952]: INF [Starting Capture]
Nov 15 21:20:27 zoneminder kernel: nvenet_xmit - skb->len  > priv->max_frame_size
Nov 15 21:20:28 zoneminder kernel: zmc[4952]: segfault at 00002aaaacd3f000 rip 000000338d3714ca rsp 00007ffffffff6a8 error 6
Nov 15 21:20:38 zoneminder su(pam_unix)[4963]: session opened for user apache by root(uid=0)  
Nov 15 21:20:38 zoneminder su(pam_unix)[4963]: session closed for user apache 
Nov 15 21:20:38 zoneminder su(pam_unix)[4966]: session opened for user apache by root(uid=0)
Nov 15 21:20:38 zoneminder zma_m5[4856]: INF [Got signal (Terminated), exiting]
Nov 15 21:20:38 zoneminder zmc_m5[4851]: INF [Got TERM signal, exiting]
Nov 15 21:20:38 zoneminder zmc_m5[4851]: ERR [Select error: Interrupted system call]
Nov 15 21:20:38 zoneminder zma_m1[4901]: INF [Got signal (Terminated), exiting]
Nov 15 21:20:48 zoneminder su(pam_unix)[4966]: session closed for user apache
Video 2 is one of my PCI capture cards. The 5th monitor is the IP camera which is working and even recording events in modect mode.

Thanks.

-Casey
Last edited by caseystone on Wed Nov 16, 2005 5:28 am, edited 1 time in total.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

the only time i have persoann;y seen logs like this is when im trying to get a new card working. I assume you havnt changed your card number etc and tested images in xawtv or soemthing?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

yeah.. something is pretty messed up. No, I haven't made any hardware changes since the update.

Before my system worked OK but I could not create mpeg video (ffmpeg was not working). Also, ZMC (or one of those) would crash every 1 to 5 days or so and suddenly be using about 80% of the cpu. The only fix was that I had to reboot. I was hoping that by doing this update and "fixing" ffmpeg I would have a more stable system.

-Casey
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

lol looks like thats a no then, You definetly have something seriously wrong especially if you were having issues before, for an easy ride and a learning excercise use Coreys ctu zm from torrent and follow his instructions on how to update via yum (he hosts an update server so ur setup could say once a week autoupdate itself)

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Hi Casey,
Just so you know I'm watching your thread. Just haven't replied as I'm working on a FC3_x86_64 Distro right now. I'm almost finnished with the base and will be working on all the extra packages here soon. I should be where your at by tomarrow. I just have to finnish the customized FC3 packages. I'll be able to be of more assistance then or may well be feeling your pain more than anyone else (We cirtainly hope not).
Regards,
Cordel
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

Well, that's good news for me either way! I'd rather not trash my whole installation if it can be salvaged. But now I'm encouraged and perhaps can get some sleep.

Is there any harm in going through cycles of ./configure, then make, then make install, then make clean and repeating until you get the ./configure right? I've done that a few times both with ffmpeg and zm itself. Each time you do the make install is overwrites the old ones I suppose???

-Casey
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

As long as you don't change the PREFIX (aka the install location) you should be okay. Most have make uninstall available so you can go into the source directory and run that to remove the correct files but, not all do and I have not tried this with either zm or ffmpeg.
I usualy set the configure syntax so that everything gets installed in it's own directory while testing and once I find a working solution, I set the prefix properly. I can then just remove the test directory and move on.

Regards,
Cordel
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

How's it going today, Cordel? I'll look for you on MSN in a bit.

Phil (and others esp. with 64-bit experience) in reviewing some of my problems here do any ideas or questions come up? Anything else I should try to salvage the operation? I'd be happy to phone up anyone who would care to step through some things with me.

Thanks!

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

Post by zoneminder »

Unfortunately I don't actually have any 64 bit experience.

From googling for the error
Nov 15 21:20:04 zoneminder kernel: nvenet_xmit - skb->len > priv->max_frame_size
it appears that it is something to do with a Nvidia network interface. This page http://www.nvnews.net/vbulletin/printthread.php?t=40397 gives one possible suggestion. The segfault after that coule possibly be your network camera zmc. unfortunately the two log files you posted don't overlap so I can't tell.

Assuming that is the case then there is nothing in the logs that would indicate why the other zmc processes are crashing.

Can you post zmdc.log and messages that are from the same period of time? The other thing to try and do is shutdown ZM and then run a zmc process inside gdb which will hopefully help pinpoint the error.

Phil
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

Good evening Phil!

Thanks for the nvnet link. Yes, I've seen that error and it has been happening ever since I built this system (while 1.21.0 was running successfully). I believe it only happens when the box is streaming video out of the nic. It's not a good thing, of course, but my feeling is it is not related to this problem.

gdb does seem to be installed, however I've never used it. If it's not too involved could you tell me what commands to run to give the output you want to see? I'll also start researching that myself.

I'll also give you some syncronized logs in a second, and I won't be streaming during it which should eliminate the nvnet errors.

Thanks for your help.

-Casey

ps- the 1.21.4 version is looking great!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

To get something useful out of gdb do

Code: Select all

1) Shutdown ZM
2) gdb <pathto>/zmc
3) (gdb) run -d <whatever>
4) <wait for zmc to crash>
5) (gdb) bt
6) (gdb) quit
7) post the results here
Phil
Locked