MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
139 stars 64 forks source link

abort() has been called #134

Open lorren5136 opened 5 years ago

lorren5136 commented 5 years ago

How to slove this problem? I installed the Chinese version of vs2017 on win10 and ran test command “menge -p examples\core\4square.xml”, is it Chinese characters are not recognized?

The results are as follows: Returning true Starting... libpng warning: iCCP: known incorrect sRGB profile Assertion failed: _fonts.size() > 0 && "Unable to load font", file c:\users\yuan\menge\src\menge\mengevis\scenegraph\textwriter.cpp, line 72

curds01 commented 5 years ago

While there was no intent to exclude Chinese characters, I would be surprised if it worked.

  1. The strings in Menge are all std::string and not std::wstring.
  2. In this particular error case, it's looking for a font that it can't find. That is somewhat surprising, because it should install the font as part of the build. On the other hand, there may be a Chinese-language issue with the fonts of which I'm completely ignorant.

So, my apologies, but there will probably need to be some work done before Menge works with Chinese characters. :(