|
[Sponsors] |
[OpenFOAM] paraview/paraFoam crash "ill defined primitiveEntry" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 20, 2012, 11:04 |
paraview/paraFoam crash "ill defined primitiveEntry"
|
#1 |
Senior Member
Pawel Sosnowski
Join Date: Mar 2009
Location: Munich, Germany
Posts: 105
Rep Power: 18 |
Hello ParaViewers,
I just walked into a problem with running paraview/paraFoam for multi-region cases. OpenFoam 2.1.0 paraview version 3.12.0 (64-bit); Both installed using apt-get (...) Running on Ubuntu 10.04 (lucid) 64-bit When the problem appears: We have a multi region case (like cthMultiRegionFoam tutorial). We prep the case, run the simulation and now want to view the results. Run: Code:
paraFoam -touchAll paraview After that, paraview crashes, giving me the error message: Code:
--> FOAM FATAL IO ERROR: "ill defined primitiveEntry starting at keyword 'version' on line 10 and ending at line 10" file: /home/pawel/OpenFOAM/pawel-2.1.0/run/chtMultiRegionFoam/multiRegionHeater/system/controlDict at line 10. From function primitiveEntry::readEntry(const dictionary&, Istream&) in file lnInclude/IOerror.C at line 132. FOAM exiting Segmentation fault Do you know what may be the problem, and can you please help me overcome it? Best, Pawel |
|
June 20, 2012, 17:48 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Pawel,
What does the file "system/controlDict" have in the "FoamFile" zone, respectively in the line 10? Specifically for the line "version"? Does it look like this: Code:
FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } Best regards, Bruno
__________________
|
|
June 21, 2012, 04:43 |
|
#3 |
Senior Member
Pawel Sosnowski
Join Date: Mar 2009
Location: Munich, Germany
Posts: 105
Rep Power: 18 |
Hello Bruno,
controlDict first lines, taken from tutorial case 2.1.0, no changes made: Code:
FoamFile { version 2.0; // line 10 format ascii; class dictionary; location "system"; object controlDict; } I played a bit with this problem and got some interesting results. First, if I change "version 2.0;" to "version 2;" the error disappears from line 10 and moves to another entry with a dot, like the timeStep. Strangely enough, removing all dots does not help and the program crashes anyway. Secondly, I managed to open the cases, but using cunning trickstery. Lest suppose we have a pure multi region case, with no polyMesh directly in constant folder, and no fvFiels directly in system folders (there are separate polyMesh'es in constant/regionX, similar with system/regionX/fvFiels). We run: Code:
paraFoam -touchAll paraFoam We close the error box, delete the "builtin" artificial object, and try to open our regions (not the full case). This time everything works. It seems to me, that there is some misspell or small bug in paraFoam script, or within foamReader. Best, Pawel |
|
June 21, 2012, 17:33 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pawel,
Ah HA! I now know what the problem really is: you have your Linux installation in a language that isn't the standard English Allow me to explain:
Code:
export LC_ALL=C This is something that was detected some time ago and was meant to be fixed already directly in ParaView. But do to some other stupid bug, the internal fix in ParaView doesn't fix for all Linux installations, only some of them. Therefore, the only fix known to be always efficient is that magic LC_ALL variable So, you have (at least) two choices:
Bruno
__________________
|
|
June 22, 2012, 04:20 |
|
#5 |
Senior Member
Pawel Sosnowski
Join Date: Mar 2009
Location: Munich, Germany
Posts: 105
Rep Power: 18 |
Good morning Bruno!
This is the reason why I did not put this thread to "bug" section- the magic line did the trick Just in my defence I will add that I tried changing dots to comas- did not work. Probably because of the conflict with linux language and the "fix" in paraview. Anyway, with the LC_ALL in .bashrc the problem is gone. Thank you very much for your help! With best regards, Pawel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] "ill defined primitiveEntry starting at keyword Boundary ..... | Punt3r | OpenFOAM Meshing & Mesh Conversion | 3 | June 12, 2016 10:16 |
Additional Variables Defined By User FORTRAN CEL | Wheeler | CFX | 2 | August 6, 2013 22:33 |
What type is defined as the interfaces between stator and stator on OF-2.1.1? | renyun0511 | OpenFOAM Running, Solving & CFD | 3 | May 18, 2013 09:11 |
UDF link fortran source | yorelchr | Fluent UDF and Scheme Programming | 0 | February 7, 2013 04:44 |
Dragging Slice File = Crash | cbritan | OpenFOAM Bugs | 3 | January 6, 2011 04:58 |