Error: main vout display error: Failed to set on top

This forum is about all development around libVLC.
sibeMamnue
Blank Cone
Blank Cone
Posts: 28
Joined: 30 Aug 2011 08:47

Error: main vout display error: Failed to set on top

Postby sibeMamnue » 30 Aug 2011 11:31

* Edit post
* Delete post
* Report this post
* Reply with quote

Error: main vout display error: Failed to set on top This e

Postby sibeMamnue » Tue Aug 30, 2011 9:19 am
Hi all

I have downloaded and installed vlc-1.2.0-git-2011.07.18-1810 on my PC and also I am using VLCJ 1.2. I am trying to recompile and run vlcj-1.2.0-sources package. After setting path and running this program; when I want to play a video; I see error messages as bellow and my system stops working for some seconds. When I asked my question In VLCJ google group; I was answered that
Error: main vout display error: Failed to set on top
This error is caused by VLC not VLCJ. If you can please help me!



vlcj: (WindowsCanvas.java:78) | WARN | You are using the WindowsCanvas implementation, this may cause spurious random VM crashes when you shut down your application
vlcj: (LibVlcFactory.java:106) | INFO | vlc: 1.2.0-
git-20110718-1810 Twoflower, changeset 1.1.0-pre1-5360-gab6aece
vlcj: (LibVlcFactory.java:107) | INFO | libvlc: C:
\Program Files\VideoLAN\VLC\libvlc.dll
vlcj: (TestPlayer.java:463) | INFO |
meta=MediaDetails[titleCount=0,videoTrackCount=2,audioTrackCount=2,spuCount=0,titleDescriptions=[],videoDescriptions=[TrackDescription[id=-1,description=Disable],
TrackDescription[id=0,description=Track
1]],audioDescriptions=[TrackDescription[id=-1,description=Disable],
TrackDescription[id=1,description=Track
1]],spuDescriptions=[],chapterDescriptions=[]]
[flv @ 06c02c20] Estimating duration from bitrate, this may be inaccurate
[06c76f90] main vout display error: Failed to set on top
vlcj: (DefaultMediaPlayer.java:607) | WARN | Video size is not available
[06c1c468] main video output error: vlc_object_find_name("marq") is not safe!
[06c1c468] main video output error: vlc_object_find_name("marq") is not safe!
[06c1c468] main video output error: vlc_object_find_name("marq") is not safe!
[06c1c468] main video output error: vlc_object_find_name("marq") is not safe!

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Error: main vout display error: Failed to set on top

Postby Rémi Denis-Courmont » 30 Aug 2011 12:08

This error is caused by using your own window canvas, which makes it impossible for VLC to set the always-on-top parameter. This is not an issue.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sibeMamnue
Blank Cone
Blank Cone
Posts: 28
Joined: 30 Aug 2011 08:47

Re: Error: main vout display error: Failed to set on top

Postby sibeMamnue » 30 Aug 2011 13:13

This error is caused by using your own window canvas, which makes it impossible for VLC to set the always-on-top parameter. This is not an issue.
Yes this program uses WindowsCanvas as bellow. I changed it to be Canvas; but still I see this problem as before.

if(RuntimeUtil.isWindows()) {
// If running on Windows and you want the mouse/keyboard event hack...
videoSurface = new Canvas(); //WindowsCanvas();
}
else {
videoSurface = new Canvas();
}

output is:

[flv @ 04e40e40] Estimating duration from bitrate, this may be inaccurate
[04ecbea8] main vout display error: Failed to set on top
vlcj: (DefaultMediaPlayer.java:607) | WARN | Video size is not available
[06f59a88] main video output error: vlc_object_find_name("marq") is not safe!
[06f59a88] main video output error: vlc_object_find_name("marq") is not safe!

sibeMamnue
Blank Cone
Blank Cone
Posts: 28
Joined: 30 Aug 2011 08:47

Re: Error: main vout display error: Failed to set on top

Postby sibeMamnue » 03 Sep 2011 10:36

this solution was not helpful :(

davidstevens
New Cone
New Cone
Posts: 1
Joined: 08 Sep 2011 01:57

Re: Error: main vout display error: Failed to set on top

Postby davidstevens » 08 Sep 2011 02:10

... bump

I'm having exactly the same problem. I would really appreciate any help you can give.

Thanks

David

Boardwish
New Cone
New Cone
Posts: 1
Joined: 10 Sep 2011 09:05

Possible solution?

Postby Boardwish » 10 Sep 2011 09:11

I'm not sure if that can help you, but I had also the same problem...
The test application crashed after I started to play a video file.

I debugged the code and found out that the marquee demo caused the crash,
so I commented out
"mediaPlayer.enableMarquee(true);" in TestPlayer.java and now I can play the file :)


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests