[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 »

Btw.: the uploaded win-smesh-debug-package can't be used as a replacement of the smesh-release-package. Every library is suffixed with a "d". I will try to upload a debug package which has the "d" removed.
UR_
Veteran
Posts: 1355
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: Thu May 21, 2020 10:57 am Every library is suffixed with a "d". I will try to upload a debug package which has the "d" removed.
Just updated to:

smesh-8.3.0.3.test-py38hc60e02b_515
netgen-6.2.2004-py38h0e004c9_501


But: :o
Screenshot 001.png
Screenshot 001.png (194.21 KiB) Viewed 1321 times

Debug builds packages should enclose *.pdb files to enhance debugging experience. ;)
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 »

UR_ wrote: Sun May 24, 2020 5:07 am Debug builds packages should enclose *.pdb files to enhance debugging experience.
edit: netgen pdb files included in netgen-package with build-number 502

This is the command to install pdb-files with cmake for the target ngcore. Just in case someone else needs something like this in the future and for me to remember ;)

Code: Select all

install(FILES $<TARGET_PDB_FILE:ngcore> DESTINATION bin OPTIONAL)
Anyway @_UR can you share how you debug freecad? I tried with:

Code: Select all

devenv /debugexe freecad.exe
but I didn't get any usable information about the netgen problem this way.

edit2: smesh with build number 516 is also updated with the necessary pdb-files. Handling this directly in the recipe is a lot easier so I will go this way:

Code: Select all

xcopy *.pdb "%LIBRARY_PREFIX%/bin" /sy)
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: Sun May 24, 2020 5:55 am Anyway @_UR can you share how you debug freecad? I tried with:
Ok, found the stack trace in visual-studio 2017. this helped: https://stackoverflow.com/a/7155584

Seems like the problem occurs here:

SMESH_Gen.cxx

Code: Select all

void SMESH_Gen::setCurrentSubMesh(SMESH_subMesh* sm)
{
  if ( sm )
    _sm_current.push_back( sm );  // <- here

  else if ( !_sm_current.empty() )
    _sm_current.pop_back();
}
std::list

Code: Select all

	void push_back(const _Ty& _Val)
		{	// insert element at end
		_Insert(_Unchecked_end(), _Val);
		}

Code: Select all

const _Nodeptr _Leftnode = _Rightnode->_Prev;
error is (sry, german)

Code: Select all

Ausgelöste Ausnahme: Lesezugriffsverletzung
"**_Rightnode**" war "0xFFFFFFFFFFFFFFF7". 
Post Reply