[WIP] updating to netgen 6.2.2004 (was smesh windows problem)

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by looo »

There was a patch for netgen 6.2.2004 necessary to make the missing symbols available for smesh:
https://github.com/conda-forge/netgen-f ... ader.patch

with a rebuild smesh I still get "access violation" trying to create a mesh in freecad. Not sure if we need to rebuild freecad with the updated smesh. Any ideas?

Anyway packages for smesh / netgen are uploaded and should be used in the next weekly build and in the bundle.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by sgrogan »

looo wrote: Sat May 16, 2020 7:49 am with a rebuild smesh I still get "access violation" trying to create a mesh in freecad. Not sure if we need to rebuild freecad with the updated smesh.
I assume so, let's see https://dev.azure.com/sppedflyer/feedst ... ew=results
"fight the good fight"
UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by UR_ »

looo wrote: Sat May 16, 2020 7:49 am Not sure if we need to rebuild freecad with the updated smesh.

Still errors:

Loading MeshPart module... done
Illegal storage access...
th. 00000084B15FFAD0 - Trace ..\src\SMESH\SMESH_subMesh.cxx [2023] : NETGEN_2D failed on sub-shape #3 with error COMPERR_EXCEPTION

full build 0.19.21093 with:

Code: Select all

(freecad) C:\Users\aio\Miniconda3>conda list netgen
# packages in environment at C:\Users\aio\Miniconda3\envs\freecad:
#
# Name                    Version                   Build  Channel
netgen                    6.2.2004         py38h0e004c9_1    freecad/label/dev

(freecad) C:\Users\aio\Miniconda3>conda list smesh
# packages in environment at C:\Users\aio\Miniconda3\envs\freecad:
#
# Name                    Version                   Build  Channel
smesh                     8.3.0.3.test    py38hc60e02b_11    freecad/label/dev
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by wmayer »

Could the crash also be related to OCC 7.4?
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by looo »

wmayer wrote: Sat May 16, 2020 12:15 pm Could the crash also be related to OCC 7.4?
at least on linux netgen6.2.2004 works with occt7.4. Also netgen6.2.1808 worked already with occt7.4 on windows. So I guess the occt-version should not matter.

@UR_ Did you rebuild freecad with the updated smesh and netgen?
sgrogan wrote: Sat May 16, 2020 10:45 am I assume so, let's see https://dev.azure.com/sppedflyer/feedst ... ew=results
windows can't clone freecad via git.

Code: Select all

Cloning into bare repository 'D:\bld\git_cache\github.com\FreeCAD\FreeCAD'...
Cloning into 'D:\bld\freecad_1589642778177\work'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
I saw this already when iterating the smesh build. Maybe a git problem. I guess it's time to move to an alternative way to download the source. Pulling the latest master should be easy. But pulling the git info, I don't know. We had already discussion about thisb but I never tried it.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by sgrogan »

looo wrote: Sat May 16, 2020 5:05 pm I saw this already when iterating the smesh build. Maybe a git problem. I guess it's time to move to an alternative way to download the source. Pulling the latest master should be easy. But pulling the git info, I don't know. We had already discussion about thisb but I never tried it.
I had this problem last weekend. The win build failed on Azure. And then the osx build failed on Travis. Both related to github issues.
"fight the good fight"
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by looo »

sgrogan wrote: Sat May 16, 2020 7:06 pm
looo wrote: Sat May 16, 2020 5:05 pm I saw this already when iterating the smesh build. Maybe a git problem. I guess it's time to move to an alternative way to download the source. Pulling the latest master should be easy. But pulling the git info, I don't know. We had already discussion about thisb but I never tried it.
I had this problem last weekend. The win build failed on Azure. And then the osx build failed on Travis. Both related to github issues.
Not sure if travis is connected to this, but for conda/azure it sems to be related to git/ssl updates:
https://github.com/conda-forge/conda-fo ... -629594954
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by looo »

looo wrote: Sat May 16, 2020 5:05 pm @UR_ Did you rebuild freecad with the updated smesh and netgen?
Ok, rebuilding didn't help either. No idea how to get more information from the access violation error.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by sgrogan »

looo wrote: Sat May 16, 2020 7:59 pm Not sure if travis is connected to this, but for conda/azure it sems to be related to git/ssl updates:
https://github.com/conda-forge/conda-fo ... -629594954
I think its a Github availability issue.
The Win build failed last Sunday with the same error. I was able to build it on Tuesday by just bumping the build number.
Right after building the feedstock on Sunday, I manually triggered the Travis packaging and the OSX build failed because it couldn't download the Offline docs from Github 0.18 release page. Maybe too much traffic on the weekend and it times out trying to clone/download from Github.

Anyway I will try to re-build FreeCAD release with debug symbols using the updated environment and see if we can get a better error message.
"fight the good fight"
UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: [WIP] updating to netgen 6.2.2004 (was smesh windows problem)

Post by UR_ »

After attempt to mesh a simple cube using netgen (MeshDesign WB)

Call stack:

Code: Select all

 	nglib.dll!00007ffd360582c8()	Unknown
 	nglib.dll!00007ffd360d1b23()	Unknown
 	ngcore.dll!00007ffd364ba78b()	Unknown
 	nglib.dll!00007ffd360cd7a6()	Unknown
 	nglib.dll!00007ffd36166a17()	Unknown
 	nglib.dll!00007ffd36165fa0()	Unknown
 	NETGENPlugin.dll!00007ffd36ed6e5a()	Unknown
 	NETGENPlugin.dll!00007ffd36ee7689()	Unknown
 	SMESH.dll!00007ffd372715d7()	Unknown
 	SMESH.dll!00007ffd371d79f0()	Unknown
>	MeshPart.pyd!MeshPart::Mesher::createMesh() Line 432	C++
 	MeshPart.pyd!MeshPart::Module::meshFromShape(const Py::Tuple & args, const Py::Dict & kwds={...}) Line 591	C++
 	MeshPart.pyd!Py::ExtensionModule<MeshPart::Module>::invoke_method_keyword(void * method_def, const Py::Tuple & args, const Py::Dict & keywords={...}) Line 190	C++
 	FreeCADBase.dll!method_keyword_call_handler(_object * _self_and_name_tuple=0x000001d18272d900, _object * _args=0x000001d1e0e60040, _object * _keywords=0x000001d18272d900) Line 1594	C++
 	[External Code]	
 	<string>!<module> Line 5	Python
 	[External Code]	
 	FreeCADBase.dll!Base::InterpreterSingleton::runString(const char * sCmd=0x000001d18cea4f68) Line 274	C++
 	FreeCADGui.dll!Gui::Command::_runCommand(const char * file=0x00007ffd3737a8e0, int line=379, Gui::Command::DoCmd_Type eType=Doc, const char * sCmd=0x000001d18cea4f68) Line 682	C++
 	MeshPartGui.pyd!MeshPartGui::Tessellation::accept() Line 379	C++
 	FreeCADGui.dll!Gui::TaskView::TaskView::accept() Line 780	C++
 	[External Code]	
 	FreeCADGui.dll!Gui::GUIApplication::notify(QObject * receiver=0x000001d1f68f1b10, QEvent * event=0x000000c8799da3b0) Line 91	C++
 	[External Code]	
 	FreeCADGui.dll!Gui::GUIApplication::notify(QObject * receiver=0x000001d1f49a9c50, QEvent * event=0x000000c8799db2d0) Line 91	C++
 	[External Code]	
 	FreeCADGui.dll!Gui::Application::runApplication() Line 2142	C++
 	[External Code]	
No more insights without debug build of smesh and netgen :?

Perhaps netgen should be pinned to 6.2.1808 until this is fixed, to get at least working builds.
Post Reply