Is "Shared data not initialised" the real problem?

Forum for questions and support relating to the 1.25.x releases only.
Locked
wild.lucifero
Posts: 8
Joined: Wed Jan 22, 2014 8:00 am

Is "Shared data not initialised" the real problem?

Post by wild.lucifero »

Hello,
I'm sorry because I'm wasting your time... but I need your help because I'm trying to use zoneminder without success. I read many documentations I found by google, but I didn't solve.
My question is to understand and identify the real problem to solve it.
I have installed a minimal ubuntu server 13.10 (or squeeze) and zoneminder 1.25.
I applied the instructions I found on zoneminder's wiki and I solved the initials problems.
Now I open zoneminder web pages but I get the black screen and in the logs I read the warning message "Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results"
I tried to solve this last error adding memory; I edited the /etc/sysctl.conf file and I modified the "kernel.shmall" to 167772160 and added the "kernel.shmmax = 335544320".
So at the moment I don't know if the warning message is because a wrong setup on zoneminder for the IP cameras or for other problems.
Are the IP cameras not supported by zoneminder?
The IP cameras are labeled by Digitus DN-16051 and DN-16055 you can see them on Digitus's wiki pa ges (I cannot post any url because I'm new user)
I also found something to setup the rtsp values in zoneminder even if the IP camera don't have.
I think these IP cameras are java controlled, they request quicktime to watch the live-camera.
I hope there are somebody to help me. Really many thanks in advanced.
Michele
wild.lucifero
Posts: 8
Joined: Wed Jan 22, 2014 8:00 am

Re: Is "Shared data not initialised" the real problem?

Post by wild.lucifero »

...to give a complete information, this is the result of ipcs -l command line after my last modify:
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 16777216
max total shared memory (kbytes) = 2684354560
min seg size (bytes) = 1

Thanks
Michele
nixnooi
Posts: 31
Joined: Mon Sep 04, 2006 1:02 am
Location: Pennsylvania, USA

Re: Is "Shared data not initialised" the real problem?

Post by nixnooi »

wild.lucifero
Posts: 8
Joined: Wed Jan 22, 2014 8:00 am

Re: Is "Shared data not initialised" the real problem?

Post by wild.lucifero »

nixnooi wrote:does this help at all?
your link
Really many thanks for you reply.
No, it didn't solve.
Now I just added also 2 rows (at row 60) on /usr/bin/zmdc.pl:
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l2convert.so';
but I get the same problem anyway. Of course I rebooted.
Michele
nixnooi
Posts: 31
Joined: Mon Sep 04, 2006 1:02 am
Location: Pennsylvania, USA

Re: Is "Shared data not initialised" the real problem?

Post by nixnooi »

If I understand correctly you don't know if your cameras are compatible with zoneminder.



I don't see Digitus mentioned on
http://www.zoneminder.com/wiki/index.ph ... rk_Cameras

If I were you I would try the docs suggestion to check with xawtv.

http://www.zoneminder.com/wiki/index.ph ... leshooting
wild.lucifero
Posts: 8
Joined: Wed Jan 22, 2014 8:00 am

Re: Is "Shared data not initialised" the real problem?

Post by wild.lucifero »

nixnooi wrote:If I understand correctly you don't know if your cameras are compatible with zoneminder.
I don't see Digitus mentioned on (your link)
If I were you I would try the docs suggestion to check with xawtv.
(your link)
I think there are many brands for IP camera and less phisical manufacturers.
This means that Digitus IP camera I mentioned could be produced with other brands from the same manufacturer.
Of course, I'm not sure and I'm trying to understand.
I understood that I have to find the right link where the script starts to capture the images from the camera.
I wasn't and I'm not able to find this link... I tried via rtsp and via http. I tried my_ipaddress/script.cgi and many others of course withou any results. But I got the follow html source code and tried to understand it:

<html>
<head>
<title>IP CAMERA</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<META http-equiv=Content-Language content=zh-tw>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1561" name=GENERATOR>
<script language="JavaScript" src="js/lgSource.js"></script>
<script language="JavaScript" src="js/data_init.js"></script>
<script language="javascript" src="js/AVUtility.js"></script>

<script language="JavaScript">
var d = document ;
d.write( "<frameset frameSpacing=0 rows='35,*' frameBorder='no' >" ) ;
d.write( "<frame name='ban' src='./top_201.htm' scrolling='no'>" ) ;
d.write( "<frameset frameSpacing=0 frameBorder='no' cols='228,*'>" ) ;
d.write( "<frame name='left' src='' noResize scrolling='auto'>" ) ;
d.write( "<frame name='main' frameBorder=0 src='' scrolling='auto'>" ) ;
d.write( "</frameset>" ) ;
d.write( "</frameset>" ) ;
d.write( "<noframes><body><p>no frame</p></body></noframes>" ) ;

top.dt.account.NotifySys = false;
top.dt.user.dvrCh = 2;

loadSupportLanguage();

function loadSupportLanguage()
{
httpObj = createHttpRequestObj();
requestData = "i cannot post any url"+getURL()+"/cgi-bin/nobody/Machine.cgi?action=get_capability";
httpObj.onreadystatechange = updSL;
requestCgiParam(httpObj, requestData);
}

function updSL()
{
if (httpObj.readyState == 4 && httpObj.status == 200)
{
var objStr = new Object();
objStr.strSrc = httpObj.responseText;

if (GetCgiParam(objStr,"Language.Support=") == 1)
if (objStr.strGet != "")
top.dt.user.SupportLG = objStr.strGet;

loadStreamFormat();
}
}

function loadWebPage()
{
httpObj = createHttpRequestObj();
requestData = "i cannot post any url"+getURL()+"/cgi-bin/guest/UserInfo.cgi?action=query";
httpObj.onreadystatechange = updateStatus;
requestCgiParam(httpObj, requestData);

httpObj2 = createHttpRequestObj();
requestData2 = "i cannot post any url"+getURL()+"/cgi-bin/guest/Login.cgi?rnd="+Math.random();
httpObj2.onreadystatechange = updateStatus2;
httpObj2.open("get", requestData2, true);
httpObj2.send(null);
}

function loadStreamFormat()
{
httpObj4 = createHttpRequestObj();
var requestData4 = "i cannot post any url"+getURL()+"/cgi-bin/user/Config.cgi?action=get&category=Video.I0.*";
httpObj4.onreadystatechange = updStreamFormat;
requestCgiParam(httpObj4, requestData4);
}

function updStreamFormat()
{
if (httpObj4.readyState == 4 && httpObj4.status == 200)
{
var objStr = new Object();
objStr.strSrc = httpObj4.responseText;

if (GetCgiParam(objStr,"StreamFormat=") == 1){
if(objStr.strGet == "MJPG")
top.dt.user.StreamFormat = "MJPG";
else
top.dt.user.StreamFormat = "MPEG4";
}
if(browser == "IE")
mainSrc = "./home.htm";
else
mainSrc = "./homeQT.htm";
top.main.location.replace(mainSrc);
loadWebPage();
}
}

function updateStatus2()
{
if (httpObj2.readyState == 4 && httpObj2.status == 200)
{
var objStr = new Object();
objStr.strSrc = httpObj2.responseText;

if (GetCgiParam(objStr,"Server-Language=") == 1)
{
for(i=0; i< top.LanguageArr.length; i++){
if(objStr.strGet.toUpperCase() == top.LanguageArr){
top.dt.user.language = (i+1);
break;
}
}
}

if (GetCgiParam(objStr, "User-Level=") == 1)
{
top.dt.user.ulevel = objStr.strGet;
}

if (GetCgiParam(objStr, "Video-System=") == 1)
{
top.dt.user.VideoSystem = objStr.strGet;
}

if (GetCgiParam(objStr, "Product-ID-Minor=") == 1)
{
//top.multi.location.replace("./multi_language.htm");
top.dt.user.ProductID = objStr.strGet;
top.left.location.replace("./left_home.htm");
}
}
}

function updateStatus()
{
if (httpObj.readyState == 4 && httpObj.status == 200)
{
var objStr = new Object();
objStr.strSrc = httpObj.responseText;

if (GetCgiParam(objStr, "Username=") == 1)
{
top.dt.user.username = objStr.strGet;
}

if (GetCgiParam(objStr, "Password=") == 1)
{
top.dt.user.password = objStr.strGet;
}
}
}
</script>

I don't know if this can help anyone, but I would try. I don't have any other IP cameras to make other test and to understand if the problem is made from the IP camera or from zoneminder or from ubuntu.
Really many thanks
Michele
nixnooi
Posts: 31
Joined: Mon Sep 04, 2006 1:02 am
Location: Pennsylvania, USA

Re: Is "Shared data not initialised" the real problem?

Post by nixnooi »

The FAQ suggest using these tools FFMPEG/mplayer/xawtv

First and most importantly TRY accessing the camera stream using FFMPEG/mplayer/xawtv and make sure you can access the video stream that way, as frequently if it won't work there its easier to troubleshoot it with those applications than with ZM.


If you can get the camera to work with one of these, chances are somebody on the forum can help get the right values to use in zoneminder. Else you are on your own.
wild.lucifero
Posts: 8
Joined: Wed Jan 22, 2014 8:00 am

Re: Is "Shared data not initialised" the real problem?

Post by wild.lucifero »

nixnooi wrote:The FAQ suggest using these tools FFMPEG/mplayer/xawtv

First and most importantly TRY accessing the camera stream using FFMPEG/mplayer/xawtv and make sure you can access the video stream that way, as frequently if it won't work there its easier to troubleshoot it with those applications than with ZM.


If you can get the camera to work with one of these, chances are somebody on the forum can help get the right values to use in zoneminder. Else you are on your own.
Sorry for my late.
The problem is that xawtv works on X11. I have installed ubuntu server, so it means it has no X11 capabilities as standard installation. I'm not sure xawtv works with IP camera: is it true?
Because it is a test, I could try to install and verify.
Thanks anyway
Michele
Locked