|
Author |
Topic: Video causes hangs? (Read 584 times) |
|
megamu
|
Video causes hangs?
« on: Sep 28th, 2003, 11:06pm » |
|
Every time I try to load a BVideo I get javaw hanging. I know people have gotten video to work with their projects before as I've seen the results so I KNOW there must be a clientside fix. Does anyone have suggestions as to how I would remedy such a problem? I'm running XP-PRO and P5rev63 -Lee
|
|
|
|
fry
|
Re: Video causes hangs?
« Reply #1 on: Sep 29th, 2003, 6:59pm » |
|
safest bet would be to reinstall quicktime and use the standard (not expert) version of p5, rev 63. i'm not sure what would cause a full hang. no errors are being generated? your machine just freezes? and then you force quit the app, or?
|
|
|
|
megamu
|
Re: Video causes hangs?
« Reply #2 on: Sep 30th, 2003, 10:36pm » |
|
Yes, I was having to force quit javaw.exe I'm going to uninstall and reinstall latest copies of quicktime and processing
|
|
|
|
megamu
|
Re: Video causes hangs?
« Reply #3 on: Sep 30th, 2003, 10:42pm » |
|
Interesting... I uninstalled both and reinstalled quicktime6 and P5rev65 and when I tried one of the video examples the whole environment just closed itself down and this was dumped in the p5 directory... Code: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x0 Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at quicktime.WinNativeHelper.getDrawingSurface(Native Method) at quicktime.WinJNIDrawingSurface.<init>(WinJNIDrawingSurface.java:37) at quicktime.QTSession$QTFrame.addNotify(QTSession.java:363) at java.awt.Window.pack(Window.java:429) at quicktime.QTSession.initialize(QTSession.java:332) - locked <029FAD20> (a java.lang.Object) at quicktime.QTSession.initialize(QTSession.java:301) at quicktime.QTSession.open(QTSession.java:522) at quicktime.QTSession.open(QTSession.java:490) at BVideo.<init>(BVideo.java:161) at BApplet.loadVideo(BApplet.java:1074) at Temporary_8397_1424.setup(Temporary_8397_1424.java:19) at BApplet.init(BApplet.java:185) at PdeRuntime.start(PdeRuntime.java:107) at PdeEditor.doRun(PdeEditor.java:791) at PdeEditorButtons.mouseReleased(PdeEditorButtons.java:418) at java.awt.Component.processMouseEvent(Component.java:5134) at java.awt.Component.processEvent(Component.java:4931) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea d.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) Dynamic libraries: 0x00400000 - 0x00407000 C:\Program Files\Processing\java\bin\javaw.exe ... 0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL Local Time = Wed Oct 01 00:41:49 2003 Elapsed Time = 18 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode) # |
|
|
|
|
|
elout
|
Re: Video causes hangs?
« Reply #4 on: Oct 1st, 2003, 8:20am » |
|
I had problems with video as well, on win98 and XP machine. Although the webcam worked on both, the video-playing example did not work. After installing all the extra`s in Quicktime installer (custom) my XP machine could play video files, after that I tried this on my win98 machine, it still didn`t work. (version 58/59) Now with version 63 video works on my win98 machine as well
|
|
|
|
fry
|
Re: Video causes hangs?
« Reply #5 on: Oct 1st, 2003, 8:37am » |
|
on Sep 30th, 2003, 10:42pm, megamu wrote:Interesting... I uninstalled both and reinstalled quicktime6 and P5rev65 and when I tried one of the video examples the whole environment just closed itself down and this was dumped in the p5 directory... |
| ugh, yuck. that's a quicktime for java bug, something we can't fix.
|
|
|
|
trip
|
Re: Video causes hangs?
« Reply #6 on: Oct 9th, 2003, 9:23pm » |
|
so what's the status with this bug? I have never been able to use BVideo in P5. I have two machines, both XP and both QT6; in either expert or standard P5 (on any release version) freezes when I try to load a movie. I can use video input just fine though. Is this going to be unsolveable? How come video files work for some peeps, but not for others? Can it be fixed by going back to QT5? c
|
|
|
|
megamu
|
Re: Video causes hangs?
« Reply #7 on: Oct 9th, 2003, 11:51pm » |
|
Well I guess I'm getting a better feeling since I want to do some sketches with live input, but I would really like to run this on file footage too. how have others gotten things running?
|
|
|
|
skloopy
|
Re: Video causes hangs?
« Reply #8 on: Oct 10th, 2003, 8:17pm » |
|
I ran into a problem with QT quitting P5 on OSX too, it seems like it went away now, but the workaround i came up with was to just render my movie out as a JPEG sequence, and then load the frames myself. Here's some code: Code:String filename = "remS065d."; String filetype = ".jpg"; int framenum = 0; video = loadImage("sequence/" + filename + nf(framenum, 5) + filetype); |
| ..and then framenum increments +1 every frame. This is better than QT because it draws every frame, too. The only weird thing is that now my sketch takes a full minute to start playing for some reason.. maybe Fry can explain the delay?
|
|
|
|
skloopy
|
Re: Video causes hangs?
« Reply #9 on: Oct 11th, 2003, 1:50am » |
|
Mmm i realized that the 1 minute delay is P5 copying all of my 25MB JPEG sequence into the build folder. Oops. Still, why is P5 so slow with file-things?
|
|
|
|
fry
|
Re: Video causes hangs?
« Reply #10 on: Oct 14th, 2003, 10:54pm » |
|
on Oct 11th, 2003, 1:50am, scloopy wrote:Still, why is P5 so slow with file-things |
| hm, depends on which things you're talking about. though if you wanna discuss that, could you bring it up in the 'general' or 'programs' board
|
|
|
|
fry
|
Re: Video causes hangs?
« Reply #11 on: Oct 14th, 2003, 11:10pm » |
|
on Oct 9th, 2003, 9:23pm, trip wrote:Is this going to be unsolveable How come video files work for some peeps, but not for others Can it be fixed by going back to QT5 |
| i don't have much insight on this unfortunately.. the video code was mostly written by hernando, and i haven't given it a super close look and heavy testing on other platforms. from here it looks like qt java 6 problems, though there might be some things that the video classes are doing that trigger them that we might be able to work around. unfortunately i'll have to sit down with the video stuff and really do some heavy testing on it to see what's going on. i plan to do this within the next few releases (before beta) but it won't be 66 or 67.
|
|
|
|
Case
|
Re: Video causes hangs?
« Reply #12 on: Feb 9th, 2004, 7:52pm » |
|
Hey all, this is my first post. I've been trying to just load a .mov with rev 68 on XP and I'll i'm able to get is this: Code: java.lang.NullPointerException at BVideo.<init>(BVideo.java:174) at BApplet.loadVideo(BApplet.java:1074) at Temporary_4530_3664.setup(Temporary_4530_3664.java:12) at BApplet.init(BApplet.java:185) at PdeRuntime.start(PdeRuntime.java:107) at PdeEditor.doRun(PdeEditor.java:752) at PdeEditorButtons.mouseReleased(PdeEditorButtons.java:415) at java.awt.Component.processMouseEvent(Component.java:5134) at java.awt.Component.processEvent(Component.java:4931) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea d.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) |
| It's all gibberish to me as I'm new to procesing and java. I did try using rev 63 and re-installing quicktime as fry suggested earlier, but I get the same error. Has anyone overcome this problem? Also: WINVdig is just for live video input right? Any suggestions would be most appreciated. Thanks!
|
« Last Edit: Feb 9th, 2004, 7:53pm by Case » |
|
|
|
|
fry
|
Re: Video causes hangs?
« Reply #13 on: Feb 11th, 2004, 3:58pm » |
|
is your .mov file in the 'data' folder of your sketch? if not, could you start a new thread for this item, since it's not related to the 'hanging' issue? that way we can track it properly.
|
|
|
|
|