Offscreen rendering failed

Having trouble installing or compiling FreeCAD? Get help here.
vikas12
Posts: 22
Joined: Wed Jul 28, 2010 11:49 am

Offscreen rendering failed

Postby vikas12 » Fri Nov 26, 2010 7:22 am

I am using FreeCAD 0.10 on Ubuntu 10.10

Python-pivy0.5.0~svn765-2+b1 is installed.

On trying print, it give error:

"Offscreen rendering failed"

On doing selftest, two tests failed. Error for those two test is given below signature.

How I can solve this problem.

--
VM

================

Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/usr/lib/freecad/Mod/Mesh/MeshTestsApp.py", line 117, in testPrimitiveCount
if not sys.modules.has_key("pivy.gui.soqt"): from pivy.gui import soqt
File "/usr/lib/pymodules/python2.6/pivy/gui/soqt.py", line 884, in <module>
import pivy.pivy
ImportError: No module named pivy


Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run testMethod()
File "/usr/lib/freecad/Mod/Mesh/MeshTestsApp.py", line 92, in testRayPick
if not sys.modules.has_key("pivy.gui.soqt"): from pivy.gui import soqt
File "/usr/lib/pymodules/python2.6/pivy/gui/soqt.py", line 884, in <module>
import pivy.pivy
ImportError: No module named pivy
guest

Re: Offscreen rendering failed

Postby guest » Fri Nov 26, 2010 10:07 am

The errors from the self-test are not related to the offscreen rendering failure. There were some internal changes in the pivy stuff which caused that problem. In the developer sources this is already fixed.

For the offscreen rendering failure I have no idea what could happen there. Is it possible to save the content of your 3d view into an Inventor file and attach it here? To save the view content just go to File > Export and select the "Inventor V2.1 (*.iv)" filter.
User avatar
yorik
Site Admin
Posts: 11700
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Offscreen rendering failed

Postby yorik » Fri Nov 26, 2010 12:54 pm

There seem to be an error in your pivy package (the line "import pivy.pivy"). But that error was fixed a long time ago if i recall correctly.
Maybe you can just fix it manually, changing line 884 in /usr/lib/pymodules/python2.6/pivy/gui/soqt.py where it says: "import pivy.pivy" it should be only "import pivy"...
User avatar
hardeeprai
Posts: 172
Joined: Sun May 23, 2010 2:41 pm
Location: Ludhiana, Punjab, India
Contact:

Re: Offscreen rendering failed

Postby hardeeprai » Fri Dec 10, 2010 3:35 am

guest wrote:The errors from the self-test are not related to the offscreen rendering failure. There were some internal changes in the pivy stuff which caused that problem. In the developer sources this is already fixed.

For the offscreen rendering failure I have no idea what could happen there. Is it possible to save the content of your 3d view into an Inventor file and attach it here? To save the view content just go to File > Export and select the "Inventor V2.1 (*.iv)" filter.
Same problem with me. However all tests work fine for me, but offscreen rendering failed.

I could not export as Inventor. It does not give any error, but it does not produce any file. If I export as Auocad DXF, then it creates file.

--
H.S.Rai
--
H.S.Rai
User avatar
yorik
Site Admin
Posts: 11700
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Offscreen rendering failed

Postby yorik » Sat Dec 11, 2010 1:15 am

hardeeprai wrote:I could not export as Inventor. It does not give any error, but it does not produce any file.
Indeed, I can confirm that too
wmayer
Site Admin
Posts: 15483
Joined: Thu Feb 19, 2009 10:32 am

Re: Offscreen rendering failed

Postby wmayer » Sat Dec 11, 2010 3:30 pm

Indeed, I can confirm that too
Is there an error message appearing somewhere?
User avatar
yorik
Site Admin
Posts: 11700
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Offscreen rendering failed

Postby yorik » Sat Dec 11, 2010 4:34 pm

Ah, I just tested again, it is not a problem of the exporter. The file gets exported.
The problem is simply this: You must specify "somename.iv" as a filename. If you specify only "somename", without the .iv extension, the file doesn't get exported. That explains why the dxf export worked and iv not, the dxf export script creates the file the same way, with extension or not. I suppose the coin mechanism to save the scenegraph as a file expects a *.iv filename.

Maybe there could be a check on export, that if there is no extension on the filename, an extension gets added?