Page 1 of 1

Can't get running zmc -d

Posted: Thu Jun 01, 2006 10:58 am
by bugor
Hello!
I looked at forums but did not found anything about this
using webcam on video0
flyVIDEO2000 on video1
bt848a on video2
runing 1.22.1 version

I'a getting this in logs:
06/01/06 14:53:34.059642 zmdc[17585].INF [Starting pending process, zmc -d /dev/video1]
06/01/06 14:53:34.063215 zmdc[17687].INF ['zmc -d /dev/video1' started at 06/06/01 14:53:34]
06/01/06 14:53:34.068096 zmdc[17585].INF ['zmc -d /dev/video1' starting at 06/06/01 14:53:34, pid = 17687]
*** glibc detected *** double free or corruption (out): 0x0ed37210 ***
06/01/06 14:53:34.153755 zmdc[17585].INF ['zmc -d /dev/video1' crashed, signal 6]
06/01/06 14:53:35.055657 zmdc[17585].INF [Starting pending process, zmc -d /dev/video2]
06/01/06 14:53:35.060187 zmdc[17585].INF ['zmc -d /dev/video2' starting at 06/06/01 14:53:35, pid = 17689]
06/01/06 14:53:35.059250 zmdc[17689].INF ['zmc -d /dev/video2' started at 06/06/01 14:53:35]
*** glibc detected *** double free or corruption (out): 0x0ed11a00 ***
06/01/06 14:53:35.149467 zmdc[17585].INF ['zmc -d /dev/video2' crashed, signal 6]

zmc -d /dev/video1
*** glibc detected *** double free or corruption (out): 0x0ed37210 ***
Aborted

uname -a:
Linux sms 2.6.16-gentoo-r7 #1 SMP PREEMPT Fri May 12 14:17:02 MSD 2006 i686 Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux

xawvt -d /dev/video1 & 2
working ok

1.22.2 version:

zmc -d /dev/video1
Aborted

if I install from liveCD 1.22.3 on the same hadrware the all devices are working fine...

somebody help!!!

Posted: Thu Jun 01, 2006 11:51 am
by jameswilson
why not stick with the live cd?
Gentoo is unknown to me im afraid

Posted: Thu Jun 01, 2006 12:10 pm
by bugor
HI!
why not stick with the live cd?
Gentoo is unknown to me im afraid
What the difference? It must work with gentoo as well!

I was using RH for long time, then got the gentoo and quite pleased with it...
I would like to work with one system and so tired off hopping from one to another!

Posted: Thu Jun 01, 2006 3:45 pm
by zoneminder
There were a few funny memory bugs in 1.22.1. I would recommend trying 1.22.2 as a first resort.

Posted: Fri Jun 02, 2006 6:38 am
by bugor
Yes I installed 1.22.2 but non of my cams sucssided to start!

now I'm using 1.22.2 with zmc from 1.22.1 and ass before
just webcam is working...

Whst else can I try?

Posted: Fri Jun 02, 2006 11:14 am
by jameswilson
*** glibc detected *** double free or corruption (out): 0x0ed37210 ***
This is the bit that worries me. Im unsure what it means but im thinking, unsucseful build (i have read about bugs in gcc in certain versions) or a mem issue, but other than that i dont knoww, but as ive never experienced this then im not much use im afraid

I've the same problem...

Posted: Fri Jun 02, 2006 4:36 pm
by Przemo_Poland
I'm sorry for my English. I haven't wrote in this language for 5 years.

I think that problems with run zmc on Gentoo are caused the build fail while compiling zmc. I've found this problems in the config.log file in ZoneMinder catalog.

I'm using Gentoo Linux:

Code: Select all

# uname -a
Linux Serwer_1 2.6.16-gentoo-r3 #3 SMP PREEMPT Wed May 31 10:53:10 UTC
2006 i686 AMD Sempron(tm)   2300+ GNU/Linux 
zmc returns this message, when I try to run it from command line:

Code: Select all

# /usr/local/bin/zmc -d /dev/video0
*** glibc detected *** malloc(): memory corruption: 0x0ecd7430 ***
Aborted 
Yesterday I have tried to emerge this packet. It is masked (~x86). When I try to accept this word - ebuild don't want to compile on my machine. Those are the bugs:

Code: Select all

then mv -f ".deps/zm.Tpo" ".deps/zm.Po"; else rm -f ".deps/zm.Tpo"; exit 1; fi
In file included from zmc.cpp:24:
zm.h:28:23: zm_config.h: No such file or directory
In file included from /usr/include/math.h:70,
                from zm_image.h:29,
                from zm_monitor.h:28,
                from zmc.cpp:26:
/usr/include/bits/mathcalls.h:310: error: declaration of `double round(double) throw ()' throws different exceptions
zm.h:33: error: than previous declaration `double round(double)'
In file included from zm_zone.h:27,
                from zm_monitor.h:29,
                from zmc.cpp:26:
zm_event.h: In static member function `static void Event::Initialise()':
zm_event.h:86: error: `config' undeclared (first use this function)
zm_event.h:86: error: (Each undeclared identifier is reported only once for each function it appears in.)
In file included from zmc.cpp:26:
zm_monitor.h: In member function `int Monitor::PostCapture()':
zm_monitor.h:287: error: `config' undeclared (first use this function)
zmc.cpp: In function `int main(int, char**)':
zmc.cpp:155: error: `zmLoadConfig' undeclared (first use this function)
zmc.cpp:225: error: `config' undeclared (first use this function)
In file included from zm.cpp:20:
zm.h:28:23: zm_config.h: No such file or directory
make[2]: *** [zmc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [zm.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/zoneminder-1.21.4/work/zm-1.21.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/zoneminder-1.21.4/work/zm-1.21.4'
make: *** [all] Error 2

!!! ERROR: www-misc/zoneminder-1.21.4 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! emake failed
Now I am updateing gcc. Maybe this is a problem.
Please, help as. This project is very, very important for me.

Posted: Sun Jun 04, 2006 1:09 pm
by bugor
I did't have those problems in compiling masked package
but nothing was working after installing
all sql and permissions had to do by hands...
but after this zm working as i sad, just onw cam...
it is worth to install zm-1.22.2 over from sorces and it's
working the same way...
I dont know shel I updete gcc or not!
somebody help as!

closer to resolving a problem - I hope...

Posted: Sun Jun 04, 2006 5:25 pm
by Przemo_Poland
I am still upgrading my GCC, then system and world packages. I don't have leisure enough, I'm very busy in my own firm, so I do everything with Gentoo and ZoneMinder in parts...For few weeks.

I hope, that I'll solve this problem. I am closer and closer to find a reason of our problem.

I'll be so happy, that I'll drunk :D

Posted: Wed Jun 07, 2006 5:14 pm
by Przemo_Poland
Probably our problems are caused by wrong options in kernel configuration before compiling...
I don't know, which are wrong... I don't know even, how to check them.

I've used configuration by make menuconfig, not by genkernel. I'll try to use genkernel...

Posted: Tue Jun 13, 2006 10:59 am
by Przemo_Poland

Code: Select all

# uname -a
Linux Serwer_1 2.6.16-gentoo-r3 #3 SMP PREEMPT Wed May 31 10:53:10 UTC 2006 i686 AMD Sempron(tm)   2300+ GNU/Linux
I've installed masked ZM 1.22.2 from ebuild by emerge, but now I've another problem:

Code: Select all

Jun  9 10:36:01 Serwer_1 zmpkg[8591]: INF [Command: start]
Jun  9 10:36:01 Serwer_1 zmpkg[8591]: ERR [Unable to find valid 'su' syntax]
I am very sad :(( Help me please...

Posted: Tue Jun 13, 2006 12:04 pm
by bugor
to Przemo_Poland

you have to be able start it from the web!
or you have to search on forums it was somwhere
the starting script for gentoo!

Posted: Wed Jun 14, 2006 8:57 pm
by darkunderlord
I've got the same 'su' issue. Any luck?

I've got the same 'su' issue. Any luck

Posted: Thu Jun 15, 2006 2:03 pm
by bugor
I did this!
./configure --with-libarch=lib \
--with-mysql=/usr \
--with-ffmpeg=/usr \
--with-webdir=/var/www/localhost/htdocs \
--with-cgidir=/var/www/localhost/cgi-bin \
--with-webuser=apache \
--with-webgroup=apache \
--enable-debug=yes \
--enable-crashtrace=yes
and all things start to work