CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

PV3FoamReader assumes the presence of a Qtapplication

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2009, 15:07
Default Hi! I was trying to load-da
  #1
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi!

I was trying to load-data using the PV3FoamReader from a script using pvpython (which comes with Paraview and is basically the Paraview Python-interface without the GUI). During loading the data the filter consistently crashed. I tracked this back to two locations where a pqApplicationCore-object was referenced (as I understand it the actual Qt-application) to get to the ServerManager. As in pvpython no GUI is present this was a NULL-pointer and subsequent calls to methods of that "object" crashed (fair enough)

This patch checks for the NULLness of the pointer and exits the method in that case (the only side effect is that the patch-names won't appear in the picture IF that was selected. To fix that one would have to find an alternate way to get to the PV-Servermanager)

PV3FoamReader.patch

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 6, 2009, 10:03
Default Thanks Bernhard - we've applie
  #2
New Member
 
Andrew Heather
Join Date: Mar 2009
Posts: 16
Rep Power: 17
heather is on a distinguished road
Thanks Bernhard - we've applied the changes and committed the update to the 1.5.x git repository.

Do you know of/would you like to look into an alternative route to the PV server manager object?
heather is offline   Reply With Quote

Old   January 6, 2009, 11:57
Default Hi Andrew! I currently don'
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Andrew!

I currently don't know of another route to the ServerManager, but there should be one. I'll have a look and will get back to you if I find anything.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help PV3FoamReader compile error zzli OpenFOAM Bugs 7 June 30, 2009 15:57
Compiling paraview 33 and pv3foamreader module mcjicpm2 OpenFOAM Installation 1 March 19, 2009 10:59
Installation problems about Paraview and PV3foamreader clark_liang OpenFOAM Installation 1 January 12, 2009 06:05
wall b.c. in presence of gravity doug Main CFD Forum 0 December 22, 2005 11:22


All times are GMT -4. The time now is 02:54.