VectorLinux
October 21, 2014, 08:20:42 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: spcagui dies with BadWindow error  (Read 3129 times)
aixuser01
Member
*
Posts: 86


« on: July 16, 2008, 06:32:44 am »

I have a webcam and wanted to use it on VL

I am running  Vector Linux 5.8 Standard   12-16-2006

found and installed the gspcat1 drivers and from the desktop fired up spcagui and it works with no problem.
then from another machine I ssh to this one, and try to run spcagui and get the following


root:# spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
Camera found: LDLC OV7620+VC302
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=24 palette=4
Bridge found: ZC301-2
Unable to find a StreamId !!
StreamId: 6 Unknow Camera
try palette 15 depth 12
Available  palette 15
try palette 3 depth 16
Available  palette 3
try palette 4 depth 24
Available  palette 4
try palette 5 depth 32
Available  palette 5
probe size in
Available Resolutions width 640  heigth 480
Available Resolutions width 384  heigth 288
Available Resolutions width 352  heigth 288
Available Resolutions width 320  heigth 240
Available Resolutions width 192  heigth 144
Available Resolutions width 176  heigth 144
Available Resolutions width 160  heigth 120
 grabbing method default MMAP asked
VIDIOCGMBUF size 2457616  frames 2  offets[0]=0 offsets[1]=1228808
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  25 (X_SendEvent)
  Resource id in failed request:  0x3a
  Serial number of failed request:  18
  Current serial number in output stream:  21
wintermute:/~
root:# X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  25 (X_SendEvent)
  Resource id in failed request:  0x3a
  Serial number of failed request:  18
  Current serial number in output stream:  21


So I know its not really an X issue because I can ssh to the machine and run xclock with no problem. But since its an X app that’s dieing I thought I’d place my plea for help here.

Any thoughts ? or is there better vid capture software out there I should be using knowing that I want to export the display?

Thanks for your help!
Logged

Evil Overlord rule 58 My doomsday device will not employ a large red digital countdown device unless it is absolutely necessary.  If a countdown device proves to be necessary, the doomsday device will be set to activate when the counter reaches 00:10:00, rather than 00:00:00.
M0E-lnx
Administrator
Vectorian
*****
Posts: 3184



« Reply #1 on: July 16, 2008, 09:14:31 am »

You shouldn't be running that (or anything) as root unless you *absolutely need to*
Try running the program as ordinary user.
Logged

aixuser01
Member
*
Posts: 86


« Reply #2 on: July 16, 2008, 09:30:20 am »

I agree with you. as a reg user I have the same issue. so running as root does not seem to be the probelm here.
Logged

Evil Overlord rule 58 My doomsday device will not employ a large red digital countdown device unless it is absolutely necessary.  If a countdown device proves to be necessary, the doomsday device will be set to activate when the counter reaches 00:10:00, rather than 00:00:00.
bigpaws
Vectorian
****
Posts: 1856


« Reply #3 on: July 16, 2008, 11:13:44 am »

Did you use the -Y or -X switch on ssh?

This does involve X.

Bigpaws
Logged
aixuser01
Member
*
Posts: 86


« Reply #4 on: July 16, 2008, 11:14:12 am »

I'm not sure what the -Y switch is, but yes I did use -X and it works fine with xclock so X though ssh seems to be ok.
Logged

Evil Overlord rule 58 My doomsday device will not employ a large red digital countdown device unless it is absolutely necessary.  If a countdown device proves to be necessary, the doomsday device will be set to activate when the counter reaches 00:10:00, rather than 00:00:00.
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #5 on: July 16, 2008, 11:56:23 am »

When I ssh to my box, the Y switch works and X does not.  I also add C to it so everything is sent compressed. Works even sweeter.

ssh -YC me@192.168.0.120 for example.

Not sure it will help your issue, but I'd bet you'll be a happier ssh'er.
Logged
aixuser01
Member
*
Posts: 86


« Reply #6 on: July 16, 2008, 12:22:01 pm »

well -x would turn off xforwarding so I would not expect it to work. -X turns it on. I looked up the -Y it turns on trusted X forwarding, since -X works for me I don't need this. I did not know about the -C which is very cool

None of this fixes my issue though.

I also fired up VNC and conneced to the machine. everything works fine with it. But its getting a full gui env so now I'm thinking my problem has something to do with the fact that my ssh does not get a windows manager like a reg login and vnc do.
Logged

Evil Overlord rule 58 My doomsday device will not employ a large red digital countdown device unless it is absolutely necessary.  If a countdown device proves to be necessary, the doomsday device will be set to activate when the counter reaches 00:10:00, rather than 00:00:00.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!