Page 1 of 1

ERR [Failed to set window attributes: Invalid argument]

Posted: Thu Apr 15, 2004 5:06 am
by zardo
when i click on my cam in the console, i see the picture. If i try a different scale, i get a new resized picture, and when i go back to a previous seen size, i get a broken gif.
I need to stop zm, close my browser and restart everything to be able to view a picture again... same with cambozola, does not work in a consistent manner.

Apr 14 21:18:53 owl zmc-d0[11189]: INF [Inyo: 70000 - Capturing at 4.76 fps]
Apr 14 21:22:23 owl zmc-d0[11189]: INF [Inyo: 71000 - Capturing at 4.76 fps]
Apr 14 21:25:53 owl zmc-d0[11189]: INF [Inyo: 72000 - Capturing at 4.76 fps]
Apr 14 21:26:29 owl zms[11432]: INF [Debug Level = 0, Debug Log = ]
Apr 14 21:29:29 owl zmc-d0[11189]: INF [Inyo: 73000 - Capturing at 4.63 fps]
Apr 14 21:32:59 owl zmc-d0[11189]: INF [Inyo: 74000 - Capturing at 4.76 fps]
Apr 14 21:33:18 owl zmc-d0[11189]: INF [Got TERM signal, exiting]
Apr 14 21:33:29 owl zmfix[11550]: INF [Debug Level = 0, Debug Log = ]
Apr 14 21:33:33 owl zmc-d0[11573]: INF [Debug Level = 0, Debug Log = ]
Apr 14 21:33:33 owl zmc-d0[11573]: ERR [Failed to set window attributes: Invalid argument]
Apr 14 21:33:33 owl zmc-d0[11573]: INF [Starting Capture]
Apr 14 21:36:34 owl zmc-d0[11573]: INF [Got TERM signal, exiting]
Apr 14 21:36:45 owl zmfix[11697]: INF [Debug Level = 0, Debug Log = ]
Apr 14 21:36:49 owl zmc-d0[11720]: INF [Debug Level = 0, Debug Log = ]
Apr 14 21:36:49 owl zmc-d0[11720]: ERR [Failed to set window attributes: Invalid argument]
Apr 14 21:36:49 owl zmc-d0[11720]: INF [Starting Capture]
Apr 14 21:37:14 owl zms[11753]: INF [Debug Level = 0, Debug Log = ]
Apr 14 21:40:19 owl zmc-d0[11720]: INF [Inyo: 1000 - Capturing at 4.76 fps]

I'm running Fedora core 1, client running mozilla / IE .

Any ideas ?


Thx
zardo

Posted: Thu Apr 15, 2004 8:07 am
by zoneminder
Hi,

This error is discussed in the FAQ.

Cheers,

Phil,

Posted: Thu Apr 15, 2004 9:43 am
by lazyleopard
I've not seen this message since I patched zm_local_camera.cpp to add one line after line 87:

Code: Select all

        vid_win.x = 0;
        vid_win.y = 0;
        vid_win.width = width;
        vid_win.height = height;
+       vid_win.flags = 0;

        if ( ioctl( m_videohandle, VIDIOCSWIN, &vid_win ) < 0 )
I suspect the critical bit might be that the VIDEO_WINDOW_INTERLACE flag bit is reset.

Posted: Fri Apr 16, 2004 4:47 am
by zardo
Great! No more errors.

Thx,
zardo

Posted: Fri Apr 16, 2004 11:20 pm
by zardo
No more log errors but my original problem still remains.

zardo

Problem is with scale change in watch window...

Posted: Sat Apr 17, 2004 12:52 pm
by lazyleopard
Yep, the "Failed to set window attributes" message is not related to the scale change problem.

There's definitely something going wrong when using the pop-up in the Watch window to change the scale of the viewed image with jpeg streaming. The first scale change works. After the second scale change I start getting a "cannot be displayed because it contains errors" message in the browser. It seems to need both a ZoneMinder restart and a browser re-start to cure the problem... ...I think...