[Gmsh] Gmsh crashes exporting vec fields in .pvtu format
Marco Tiberga
M.Tiberga at tudelft.nl
Mon Nov 25 14:21:52 CET 2019
Dear Christophe,
Sorry, I thought I had to compile from source. I did not see the link to the Windows snapshot before, my bad...
I confirm you that both files can be correctly exported now!
Thanks a lot.
Best,
Marco
-----Original Message-----
From: Christophe Geuzaine [mailto:cgeuzaine at uliege.be]
Sent: maandag 25 november 2019 14:16
To: Marco Tiberga
Cc: gmsh at onelab.info; Max Orok
Subject: Re: [Gmsh] Gmsh crashes exporting vec fields in .pvtu format
> On 25 Nov 2019, at 12:03, Marco Tiberga <M.Tiberga at tudelft.nl> wrote:
>
> Dear Christophe,
>
> Unfortunately, I cannot try with the most recent git snapshot, but I can provide you with a simple test.
>
> Attached, you find two very simple, random, scalar and vector fields.
> If I open them with Gmsh and then try to File-->Export them in pvtu, Gmsh crashed.
> If I do exactly the same two passages (open, then export) with Gmsh 2.14.0, the program does not crash.
>
Both files work with the latest snapshot.
(To give it a try just download the latest snapshot for your OS - you don't have to recompile from source.)
Christophe
> Hope this is simple enough.
>
> Kind regards,
> Marco Tiberga
>
>
> -----Original Message-----
> From: Christophe Geuzaine [mailto:cgeuzaine at uliege.be]
> Sent: zaterdag 23 november 2019 9:48
> To: Max Orok
> Cc: Marco Tiberga; gmsh at onelab.info
> Subject: Re: [Gmsh] Gmsh crashes exporting vec fields in .pvtu format
>
>
> Hi guys,
>
> I have fixed a small (but that could lead to a crash) bug related to pvtu export yesterday. Could you check if this fixes your issue? If not, could you send a (simple) dataset together with a script (or steps to follow) to reproduce the problem?
>
> Thanks,
>
> Christophe
>
>
>
>> On 22 Nov 2019, at 15:36, Max Orok <morok at mevex.com> wrote:
>>
>> Thank you Marco, cc'ing the wider Gmsh community with these examples in case they can help.
>>
>>
>> On Thu, Nov 21, 2019 at 4:05 AM Marco Tiberga <M.Tiberga at tudelft.nl> wrote:
>> Dear Max,
>>
>>
>>
>> Please find attached two .pos files of a scalar and a vector quantity I wanted to export in pvtu format.
>>
>> It is a velocity field, and the vector field was built through the Scal2Vec plugin from the components.
>>
>>
>>
>> On top of this, I have discovered that also the export of the .pos scalar view does not work.
>>
>> What I usually do is to open the mesh (.msh file), merge a .msh file with the scalar field and then export the view in pvtu format: this works.
>>
>> Instead, if I open the mesh, merge the .msh file with the scalar field, export the view into .pos format (the attached u_scal is an example), then open the new .pos file directly and finally try to export it in pvtu, Gmsh crashes.
>>
>> So, I suspect the problem is in the export of .pos view to pvtu format.
>>
>>
>>
>> Hope these are useful examples.
>>
>>
>>
>> Best regards,
>>
>> Marco
>>
>>
>>
>> From: Max Orok [mailto:morok at mevex.com]
>> Sent: woensdag 20 november 2019 22:48
>> To: Marco Tiberga
>> Subject: Re: [Gmsh] Gmsh crashes exporting vec fields in .pvtu format
>>
>>
>>
>> Hi Marco,
>>
>>
>>
>> Would it be possible to get an example file that shows this behaviour?
>>
>>
>>
>> Sincerely,
>>
>> Max
>>
>>
>>
>> On Wed, Nov 20, 2019 at 4:46 PM Marco Tiberga <M.Tiberga at tudelft.nl> wrote:
>>
>> Good evening,
>>
>>
>>
>> I would like to report a bug I found.
>>
>>
>>
>> I needed to export a vector field in pvtu format (via File -> Export). However, Gmsh crashes as soon as it starts the export process. This does not happen when I export scalar fields.
>>
>> However, I knew I was once able to do it. So, I went back with the versions, and I found out that the first buggy version is 2.14.1 (at that time, the export was done via File -> Save As).
>>
>>
>>
>> I understand this is a minor bug (and the fix is not even urgent as far as I am concerned, as I was able to export my field using Gmsh 2.14.0), but it is useful to report it anyway.
>>
>>
>>
>>
>>
>> Best regards,
>>
>> Marco Tiberga
>> PhD candidate
>>
>> Delft University of Technology
>>
>> Faculty of Applied Sciences
>>
>> Radiation Science & Technology Department
>>
>> Mekelweg 15, 2629 JB Delft, The Netherlands
>>
>> E-Mail: m.tiberga at tudelft.nl
>> Website: http://www.nera.rst.tudelft.nl/
>>
>>
>>
>>
>>
>> _______________________________________________
>> gmsh mailing list
>> gmsh at onelab.info
>> http://onelab.info/mailman/listinfo/gmsh
>>
>>
>>
>> --
>>
>> Max Orok
>>
>> Contractor
>>
>> www.mevex.com
>>
>> <image001.jpg>
>>
>>
>>
>> --
>> Max Orok
>> Contractor
>> www.mevex.com
>>
>>
>> _______________________________________________
>> gmsh mailing list
>> gmsh at onelab.info
>> http://onelab.info/mailman/listinfo/gmsh
>
> —
> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science
> http://www.montefiore.ulg.ac.be/~geuzaine
>
>
>
> <vec_test.pos><scal_test.pos>
—
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
More information about the gmsh
mailing list