<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
Doesn't anyone have an idea about this? Basic question is, how can
one retrieve a valid context without logging in to Windows? Is it
even possible? I guess this problem isn't OSG-specific but I would
have guessed that someone here had come across this before.<br>
<br>
Even if I enable auto-login, it won't allow for remote desktop login
since you're logged out again after such a session - this makes it
hard to log in remotely to check the progress of headless process
servers.<br>
<br>
Regards,<br>
Andreas<font size="2" color="black"><span
style="font-size:0.8em;color:black"><br>
<br>
</span></font><font size="2" color="black"><span
style="font-size:0.8em;color:black"></span></font>
<div class="moz-signature"><font size="2" color="black"><span
style="font-size:0.8em;color:black"><br>
</span></font>
</div>
<div class="moz-cite-prefix">On 2019-06-16 21:17, Andreas Ekstrand
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:7b6fc4fd-d409-1f54-8e1f-d54467449607@remograph.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi,<br>
<br>
I'm having problems with the osgposter example in Windows, or more
precisely something similar I'm developing but the problem is
easier to reproduce with osgposter. In my simple reproduction of
the problem I'm trying to render an image automatically at
computer startup by calling osgposter (inactive mode) from a
Python script (<tt>os.system</tt>) activated as a task from Task
Scheduler in Windows 10. But it seems to fail to fetch a valid
OpenGL context. I have tried all rendering types in osgposter -
fb, fbo, pbuffer and pbuffer-rtt.<br>
<br>
The script works fine when started manually or when the task is
set to start only when the user is logged on. But when activated
as a task at computer startup whether user is logged on or not, it
refuses to render anything. It just gets stuck in an infinite loop
in the <tt>PosterPrinter</tt> class since <tt>FrameStamp::getFrameNumber()</tt>
returns 0.<br>
<br>
Before that, <tt>View::setUpViewInWindow</tt> results in the
following messages if OSG_NOTIFY_LEVEL is set to DEBUG:<br>
<tt>(...)</tt><tt><br>
</tt><tt>SingleWindow::configure - GraphicsWindow has not been
created successfully.</tt><tt><br>
</tt><tt>(...)</tt><tt><br>
</tt><tt>Viewer::realize() - No valid contexts found, setting up
view across all screens.</tt><tt><br>
</tt><tt>(...)</tt><tt><br>
</tt><tt>SingleWindow::configure - GraphicsWindow has not been
created successfully.</tt><tt><br>
</tt><tt> (...)</tt><tt><br>
</tt><tt>Viewer::realize() - failed to set up any windows</tt><tt><br>
</tt><br>
Does anyone know how to get this working without having to log on
to a Windows user? Should it work? I have a GeForce GT 710 with
the latest drivers. Actually, I tried adding opengl32.dll from the
Mesa3D library to the same folder as osgposter.exe to make it work
when manually executed while logged on through Remote Desktop. It
did the trick, but not when activated from Task Scheduler.<br>
<br>
Regards,<br>
Andreas<font size="2" color="black"><span
style="font-size:0.8em;color:black"><br>
<br>
</span></font> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
</body>
</html>