cychiang / webcamstudio

Automatically exported from code.google.com/p/webcamstudio
GNU General Public License v3.0
1 stars 0 forks source link

None of the /dev/video* devices work #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
--------------------------------------
1. modprobe webcamstudio
2. Start webcamstudio
3. Click on any of the video device icons in the left panel to insert them

What is the expected output?
----------------------------
It is expected the device to be added to sources and be seen in the middle 
panel(the layout panel) working.

What do you see instead?
------------------------
Instead a null pointer exception is thrown:
OS is Linux
DEBUG: WebcamStudio video device (video2)
DEBUG: WebcamStudio video device (video2)
Not same source/dev/video0
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at webcamstudio.sources.VideoSourceV4L.isPlaying(VideoSourceV4L.java:135)
        at webcamstudio.layout.transitions.Start.doTransition(Start.java:31)
        at webcamstudio.layout.LayoutItem.run(LayoutItem.java:220)
        at webcamstudio.layout.Layout.addSource(Layout.java:347)
        at webcamstudio.components.LayoutManager2.addSource(LayoutManager2.java:218)
        at webcamstudio.Main.addSourceToDesktop(Main.java:677)
        at webcamstudio.Main.addSource(Main.java:1991)
        at webcamstudio.components.MediaPanelList$1.actionPerformed(MediaPanelList.java:52)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
        at java.awt.Component.processMouseEvent(Component.java:6288)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6053)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4651)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4481)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4481)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
        at java.awt.EventQueue.access$000(EventQueue.java:84)
        at java.awt.EventQueue$1.run(EventQueue.java:602)
        at java.awt.EventQueue$1.run(EventQueue.java:600)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
        at java.awt.EventQueue$2.run(EventQueue.java:616)
        at java.awt.EventQueue$2.run(EventQueue.java:614)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

What version of the product are you using?
------------------------------------------
Using the SVN r226 version (0.60_alpha1), i.e. latest available svn.

On what operating system?
-------------------------
Sources compiled on latest Gentoo

Please provide any additional information below.
------------------------------------------------
Some other minor issues are seen also:
- the three vertical panes containing the sources, layout and properties (left, 
middle and right pane) are not resizable.
- if all layouts are deleted but the last one had some sources added, the 
sources remain listed in the pane. The way to reproduce:
   1. start webcamstudio
   2. add an animation source
   3. delete the default layout
   4. the animation source remains in the pane
- if the upper layout in the middle pane plays and you click on a menu, a 
glitch that menu remains painted exists

Original issue reported on code.google.com by peter.u....@gmail.com on 10 Dec 2011 at 9:09

GoogleCodeExporter commented 9 years ago
Same problem on Ubuntu 10.04

Prior to this the last version that builds correctly is 223; 223 has the 
interface working, but the video format numbers seem reversed, I see stuff like 
this in the output:

ffmpeg -y -re -f video4linux2 -i /dev/video2 -f rawvideo -pix_fmt argb -s 
480x640 -r 5 tcp://127.0.0.1:40659 tcp://127.0.0.1:PORT 

I went back in time and the latest working revision is 217.

I got to this during my (otherwise successful) attempt to add the 720p output 
size.

Original comment by iac...@gmail.com on 9 Jan 2012 at 7:01

GoogleCodeExporter commented 9 years ago
I'm seeing similar issues.  

I see a message when attempting to access the WCS console:
Starting pipe
Lost connection
Not same source/dev/video3

Notice there is no space between the video device and the message string.  
Could have nothing to do with the real issue though.

Useing the latest version available under 64bit Ubuntu 11.10

Original comment by mdetwei...@gmail.com on 30 Mar 2012 at 1:01

GoogleCodeExporter commented 9 years ago
Can anyone advise what additional debug information I can supply to help 
resolve this issue?

Thanks,
Michael

Original comment by mdetwei...@gmail.com on 6 Apr 2012 at 1:49

GoogleCodeExporter commented 9 years ago
This issue is obsolete as the code has been modified since that revision

Original comment by patrick.balleux on 30 Apr 2012 at 10:23