When I tried to run dieselEngi
When I tried to run dieselEngineFoam on a simulation that run perfectly before I obtained this:
--> FOAM FATAL ERROR : hanging pointer, cannot dereference From function PtrList::operator[] in file /home/tom/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/PtrListI.H at line 92. FOAM aborting What is the reason? How can I solve the problem? |
Well, this information is not
Well, this information is not enough to say what is going wrong here. Is there no backtrace information available?
Check your dictionary files carefully! |
This is the complete message:
This is the complete message:
Executing: /home/tom/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/dieselEngineFoam /home/tom/OpenFOAM/tom-1.3/run/. EMD8-spray > /home/tom/OpenFOAM/tom-1.3/run/./EMD8-spray/log & tom@snjofko:~/OpenFOAM/tom-1.3/run> --> FOAM FATAL ERROR : hanging pointer, cannot dereference From function PtrList::operator[] in file /home/tom/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/PtrListI.H at line 92. FOAM aborting Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) Foam::error::abort() /home/tom/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/dieselEngineFoam [0x806fd9a] /home/tom/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/dieselEngineFoam [0x805ead2] __libc_start_main __gxx_personality_v0 The dictionary files are coppied from a previous, succesfull simulation. |
Quote:
|
Hi all,
I'm getting a similar error with above. To give you some context I have wrote a solver which based on interFoam/waveFoam and combined it with the solid particle class in OF5 when I run it I get the following error: Quote:
Thanks, Nick |
Hi Nick,
I am wondering if you find the solution to this problem. I am experiencing the same issue. Thanks. |
hanging pointer at index 0 (size 3), cannot dereference
Hi all,
I have been getting this error while my running twoPhaseEulerFoam code. I have added a file called scalarTransport.H that solves for Scalar Transport Equation in addition to solving of the phases. My scalarTransport.H is as follows: Code:
dimensionedScalar dimen Code:
--> FOAM FATAL ERROR: Your help in this matter is greatly appreciated. Thanks and Regards, Shantanu |
Hi all,
Did anyone figure this problem out? I have exactly the same issue as above. Thanks in advance. Cheers,Shiyu |
The issue is the pointer created by user is empty or null. Check what is size of pointerlist. In my case, i didnt assigned value to ptrlist and i was calling using[] operator. Hope it helps.
|
All times are GMT -4. The time now is 15:15. |