instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 16, 2018, 10:38:44 am


Login with username, password and session length


Pages: [1] 2
  Print  
Author Topic: InstanPlayer crashes while loading a tutorial  (Read 8832 times)
yant0r
Newbie
*
Posts: 17


View Profile
« on: May 28, 2010, 03:21:03 pm »

Hello,

I tried to run the following tutorial

 http://www.instantreality.org/tutorial/volume-rendering/

I tested  this with Instanplayer 2.0.0 beta7 under Ubuntu 9.10 and also
Ununtu 8.04. The Player crashes and it occurs a segmentation fault.
The model can't even be loaded.

Should I install an older Version of the Player?

BTW. the Daily builds Link in the download page is dead.


Best,
yant0r
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #1 on: May 28, 2010, 03:41:29 pm »

Hi,

no, this example should work with all recent versions. Perhaps you can try setting the "appThreadCount" context parameter to 0, though usually its value shouldn't bother you. You can also do it on the shell like this:
export ACP_appThreadCount=0

Another reason could be missing OpenGL/ GLSL support on your machine. Have you installed a graphics driver with hardware acceleration for your Linux? By default it is not enabled on Ubuntu.
Furthermore, you need a quite recent GPU that at least supports Shader Model 3.0 (e.g. GeForce 6800) or better Shader Model 4.0 (e.g. GeForce 8800), as the algorithms exploit corresponding GPU features and therefore won't work with Intel onBoard chips or in VMWare.
In addition, this rendering component is only tested on NVidia hardware, since driver support for ATI cards (especially on Linux) is poor.

Bye
Yvonne
Logged
yant0r
Newbie
*
Posts: 17


View Profile
« Reply #2 on: May 28, 2010, 04:10:23 pm »

Hi Yvonne,

thank you for the fast answer.

I tried to set  ACP_appThreadCount to 0 via export command, but it didn't help.

Is there an other way to set it to 0? maybe a config file?

I have a NVIDIA Quadro FX 4600 and the current driver is installed and activated.
There are also no problems with running other samples. Only this specific example will not work.


Best,
Yant0r
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #3 on: May 28, 2010, 04:44:28 pm »

Hi Yant0r,

alternatively you can use the flag as additional comand line options like this (assumed you use sav as viewer which is also in the installation path):
sav --appThreadCount=0 main.wrl
But that hopefully shouldn't be the reason for the crash.

Perhaps you can also try to locally download all relevant files (e.g. wget), namely main.wrl, Engine.nrrd, engineTransferSchnitt.png, and try again.
If that doesn't help either, you can post the log output/ backtrace, that I can get an idea what went wrong and where exactly (therefore you can try out another env variable, OSG_LOG_LEVEL, which you can set e.g. to the value notice).

Bye
Yvonne
Logged
yant0r
Newbie
*
Posts: 17


View Profile
« Reply #4 on: June 02, 2010, 03:32:52 pm »

Hi Yvonne,

unfortunately I wasn't able to run the Model, after I redownloaded the files and tried your other suggestions.  Here is the Log outputs


bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
WebNode listening on 0.0.0.0:47276

(InstantPlayer:8651): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
ENGINE:
ERROR: Cannot open server
8Bit
Volume Slice Thickness 1.000000 1.000000 1.000000; Resolution of Volume 256.000000 256.000000 110.000000
Size of Volume 4.000000 4.000000 1.718750
Segmentation fault

But I get the same messages while loading other samples, except "Segmentation fault". Hence, I think this log couldn't be so helpful. 
I also used the OSD_LOG_LEVEL variable to achieve maximum log report.

The daily Build page is still not reachable! would it be possible to make the
daily Build versions accessible?

Best,
Yant0r
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #5 on: June 02, 2010, 03:58:24 pm »

Hi,

this strange audio problem has nothing to do with volume rendering, but I don't know what's the reason.
For testing: could you please use sav instead of InstantPlayer. Start it from the shell. Further, use OSG_LOG_LEVEL (with a G, not a D).

Concerning the daily builds page: I told the responsible person, but you can try accessing it using Windows, seems to be a rights problem?

Bye
Yvonne
Logged
yant0r
Newbie
*
Posts: 17


View Profile
« Reply #6 on: June 02, 2010, 05:37:04 pm »

Hi,

now I tried it with sav. I didn't know that such a player exists Smiley
But sav crashes also. Maybe this time the log report would help.
It seems to be a problem with OpenSG.


bt_audio_service_open: connect() failed: Connection refused (111)
LOG     Avalon   Init: 12/228, V2.0.0beta7 build: R-12806 Dec 16 2009
LOG     Avalon   CDF parsing (0.0104449s): 613 Node-Types defined
LOG     Avalon   Component Bound: VolumeRendering for VolumeData
LOG     Avalon   CDF parsing (0.00820702s): 613 Node-Types defined
LOG     Avalon   Skip Static Optimizer on Scene/scene: skipType, static
LOG     Avalon   Unregister BIH intersects
LOG     Avalon   unregistered!
WARNING OpenSG   Error setting volume, image too small! Retrying...
WARNING OpenSG   Error setting volume, image too small! Retrying...
8Bit
Volume Slice Thickness 1.000000 1.000000 1.000000; Resolution of Volume 256.000000 256.000000 110.000000
Size of Volume 4.000000 4.000000 1.718750
LOG     OpenSG   ImageDump: LUMINANCE; 256/256/110; #mm: 1, #side: 1, #frame: 1, frameDelay 0, dataType IMAGEDATA_TYPE UCHAR8, size: 7208960
Segmentation fault


Any Idea now?

Regarding the OSG_LOG_LEVEL, I just misstpye by posting.

Thx for your Help til now Wink

Regards,
Yaser
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #7 on: June 02, 2010, 08:07:56 pm »

Hi,

yes, looks like a problem with the OpenSG image loader on Linux (although this code should be identical to the Windows version which works fine).
One last try to dig a bit deeper into it. Could you please set the mentioned env variables again, like follows, and restart 'sav main.wrl' from that shell:
export ACP_appThreadCount=0
export OSG_LOG_LEVEL=info
Perhaps this gives a hint or so. Otherwise I'll check it next week when I'm back in office.

Bye
Yvonne
Logged
yant0r
Newbie
*
Posts: 17


View Profile
« Reply #8 on: June 09, 2010, 03:18:53 pm »

Hi,

after I installed the daily build version 2.0 for Ubuntu 10.4, the player crashed
again. Here is a part of the logs.  It seems to be a Problem with "Avalon". Any idea?!

If You need the whole log, I can send it via email.

Best,
Yaser

LOG     Avalon   Init: 19/351, V2.0.0 build: R-0 May 26 2010
WARNING Avalon   Incomplete DocStatus: NodeTypes: 340/342 Fields: 4013/4014
NOTICE  Avalon   Do not reg. type with lower priority for mimetype model/wrl
NOTICE  Avalon   Keep 3/wrl suffix mapping to model/vrml/0; skip model/wrl/-100
NOTICE  Avalon   Skip remapped format: VRML Geometry
NOTICE  Avalon   Keep 6/wrl.gz suffix mapping to model/vrml/0; skip model/wrl/-100
NOTICE  Avalon   Skip remapped format: VRML Geometry
NOTICE  Avalon   Do not reg. type with lower priority for mimetype image/gif
NOTICE  Avalon   Keep 3/gif suffix mapping to image/gif/-1; skip image/gif/-1
NOTICE  Avalon   Skip remapped format: Movie
INFO    Avalon   Talic Host ID: ANY
INFO    Avalon   Update ContextSetup param field maps: 0/36
INFO    Avalon   Restore Context Setup: cdfPath
INFO    Avalon   Restore Context Setup: multiContext
INFO    Avalon   Restore Context Setup: appThreadCount
INFO    Avalon   Restore Context Setup: parallelContextDownload
INFO    Avalon   Restore Context Setup: forbidFieldFree
INFO    Avalon   Restore Context Setup: forbidNodeFree
INFO    Avalon   Restore Context Setup: cacheClearOnReload
INFO    Avalon   Restore Context Setup: rayIntersectMode
INFO    Avalon   Restore Context Setup: sysLogLevel
INFO    Avalon   Restore Context Setup: sysLogOutput
INFO    Avalon   Restore Context Setup: sysLogHeader
INFO    Avalon   Restore Context Setup: forceSingleDataTypeRoute
INFO    Avalon   Restore Context Setup: binSearchKeyIndex
INFO    Avalon   Restore Context Setup: zWriteTrans
INFO    Avalon   Restore Context Setup: forbidReindex
INFO    Avalon   Restore Context Setup: forbidStripFan
INFO    Avalon   Restore Context Setup: forbidVertexResort
INFO    Avalon   Restore Context Setup: forbidSingleIndex
INFO    Avalon   Restore Context Setup: forbidIndexResize
INFO    Avalon   Restore Context Setup: forbidDList
INFO    Avalon   Restore Context Setup: forbidVBO
INFO    Avalon   Restore Context Setup: forbidNormalUpdate
INFO    Avalon   Restore Context Setup: maxTexSize
INFO    Avalon   Restore Context Setup: forceTexCompress
INFO    Avalon   Restore Context Setup: dumpPath
INFO    Avalon   Restore Context Setup: zRatio
INFO    Avalon   Restore Context Setup: frontCollision
INFO    Avalon   Restore Context Setup: forceSingleThread
INFO    Avalon   Restore Context Setup: keyAssignMode
INFO    Avalon   Restore Context Setup: defaultViewarea
INFO    Avalon   Restore Context Setup: interactionEvalMode
INFO    Avalon   Restore Context Setup: defaultJobList
INFO    Avalon   Restore Context Setup: reUSETypeList
INFO    Avalon   Restore Context Setup: showStatusMessage
INFO    Avalon   Restore Context Setup: infoScreenAnimationTime
INFO    Avalon   Restore Context Setup: logoMode
INFO    Avalon   Autocreate ContextSetup on access
NOTICE  Avalon   Try to load Context by Observer: >main.wrl<
INFO    Avalon   Could not load Context: >main.wrl<
NOTICE  Avalon   Try to load Context by Observer: >default.edv<
INFO    Avalon   Could not load Context: >default.edv<
INFO    Avalon   Create Engine scene/scene-nameSpace
FATAL   Avalon   Incomplete Context setup
INFO    Avalon   Run System::atExitHandler
INFO    Avalon   Delete Engine scene/scene-nameSpace
WARNING Avalon   Avalon::exitSystem() call and node/obj left: 0/1742
INFO    OpenSG   terminate SharedObjectHandler
INFO    OpenSG   SO : Application | 0x196c7d0
INFO    OpenSG          Object Application | 0x7f0129c36128
INFO    OpenSG   destroy SharedObject Application
INFO    OpenSG   destroy SharedObjectHandler
INFO    OpenSG   Terminate VRMLWriter
INFO    OpenSG   terminate singleton FieldContainerFactory
INFO    OpenSG   ~DVRVolume this: 0x19aa478


Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #9 on: June 09, 2010, 03:44:22 pm »

Hi,

according to this log output, the player couldn't load any file at all.
NOTICE  Avalon   Try to load Context by Observer: >main.wrl<
INFO    Avalon   Could not load Context: >main.wrl<
NOTICE  Avalon   Try to load Context by Observer: >default.edv<
INFO    Avalon   Could not load Context: >default.edv<
INFO    Avalon   Create Engine scene/scene-nameSpace
FATAL   Avalon   Incomplete Context setup
Could you please check, if 'main.wrl' is a valid VRML file (or to be sure, if all relevant files, namely main.wrl, Engine.nrrd, engineTransferSchnitt.png are on your local disk, in the same directory, and valid files).

Bye
Yvonne
Logged
yant0r
Newbie
*
Posts: 17


View Profile
« Reply #10 on: June 09, 2010, 04:28:53 pm »

Hi,

I don't know, where these files come from. I just tried to start the sav player.
the sav player doesn't starts at all. The InstantPlayer starts, but crashes while loading the known sample. Is it possible to give a file as a input parameter to the sav player?

This error occurs on two machines, one with ubuntu 8.4 and the another with ubuntu 10.4. The appropriate Player are installed as well. 

Thx again for your help.

bye.
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #11 on: June 09, 2010, 04:51:09 pm »

Hi,

as I wrote in the previous posts, you need to download the mentioned files into one directory, then - on the shell - go into this directory (via the cd command), and just type (cp. post from June 02, 2010, 08:07:56 pm)
sav main.wrl
in order to start that file (after having downloaded the mentioned files).
This player doesn't start without file arguments (which is no error but intended behavior - if none are given, it tries to load main.wrl from its local directory, but obviously there wasn't such a file).
Logged
yant0r
Newbie
*
Posts: 17


View Profile
« Reply #12 on: June 09, 2010, 05:48:31 pm »

Hi again,

ok. now the following log is listed (only the last lines):


NOTICE  Avalon   VolumeData/ volume: RenderBufferHandler attached!
INFO    OpenSG   NRRDImageFileType::read: got 4 D little endian cooked data.
INFO    Avalon   "Timer" trigger slot request, create trigger
INFO    Avalon   Reconnect scene trigger Timer/0x7fc1d85eb100
INFO    Avalon   "Interaction" trigger slot request, create trigger
INFO    Avalon   Reconnect scene trigger Interaction/0x7fc1d85eb780
INFO    Avalon   "ExternalInterface" trigger slot request, create trigger
INFO    Avalon   Reconnect scene trigger ExternalInterface/0x7fc1d85eba20
INFO    Avalon   "WebInterface" trigger slot request, create trigger
INFO    Avalon   Reconnect scene trigger WebInterface/0x7fc1d85ebcf0
INFO    Avalon   "Collision" trigger slot request, create trigger
INFO    Avalon   Reconnect scene trigger Collision/0x7fc1d85ebf80
INFO    Avalon   "Sound" trigger slot request, create trigger
INFO    Avalon   Reconnect scene trigger Sound/0x7fc1d85ebb20
INFO    Avalon   "Combine" trigger slot request, create trigger
INFO    Avalon   Reconnect scene trigger Combine/0x7fc1d85ec450
INFO    Avalon   "Synchronize" trigger slot request, trigger found
INFO    Avalon   Reconnect scene trigger Synchronize/0x7fc1d85e9200
INFO    Avalon   PerspectiveViewpoint/36680976: set isInteractive to TRUE/0x7fc1d85e98a0
INFO    Avalon   NavigationEvaluator/140470535492576 run reset
INFO    Avalon   ImageTexture2D/37060144/Live: Alpha setup changes in updateImage(): 0/1
NOTICE  Avalon   Context rayIntersectMode: auto
NOTICE  Avalon   Unregister BIH intersects
NOTICE  Avalon   unregistered!
OSGLog::setLogLevel: overriden by envvar OSG_LOG_LEVEL 'info'.
8Bit
NOTICE  OpenSG   size: 4, 4, 1.71875
Volume Slice Thickness 1.000000 1.000000 1.000000; Resolution of Volume 256.000000 256.000000 110.000000
Size of Volume 4.000000 4.000000 1.718750
LOG     OpenSG   ImageDump: LUMINANCE; 256/256/110; #mm: 1, #side: 1, #frame: 1, frameDelay 0, dataType IMAGEDATA_TYPE UCHAR8, size: 7208960
NOTICE  OpenSG   New volume texture was set...
NOTICE  OpenSG   Resize Volume Res: 256, 256, 112
Segmentation fault

thx.
bye
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #13 on: June 09, 2010, 06:30:12 pm »

Hmm, just booted my old Ubuntu 8.10 and there it works without problems as expected (with a two month old version) - no crash in the initialize method (which would have been the next log message). Very strange, I suspect it's a problem with the installer, wrong so's or something like this?! Perhaps you could try the old beta 6, if that works, it could give a hint. Also, you can have a look at the output of ldd (maybe really some wrong so's)...
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #14 on: June 10, 2010, 05:45:37 pm »

Hi,

a colleague finally managed to let it crash...
So, (I think) with tomorrow's daily build (Rev. >= 13429) it should be fixed.

Bye
Yvonne
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines