<div dir="auto"><div dir="ltr"><div>Dear list, <br></div><div><br></div><div>I recently rebuilt LyX from master (roughly alpha 2), and I now get this output when configuring LyX (actually, once configure.py has finished): <br></div><div><br></div><div style="margin-left:40px">+checking list of textclasses...<br>        done<br>+generating default list of packages...<br>        done<br>LyX: Done!<br>support\filetools.cpp (521): LyX could not create temporary directory in C:/Windows'<br>RunCommand: could not start child process</div><div><br></div><div>Moreover, when loading a file, I get an assertion error: <br></div><div><br></div><div style="margin-left:40px">TextClass.cpp (94): Conversion of layout with layout2layout.py has failed.<br>TextClass.cpp (363): Unable to convert D:/Thibaut/LyX/lib/layouts/article.layout to format 92<br>Error reading `[layouts/article.layout]'<br>(Check `article')<br>Check your installation and try Tools/Reconfigure...<br>Error: Could not load class<br>----------------------------------------<br>Due to some error in it, the layout file:<br>article<br>could not be loaded. A default textclass with default<br>layouts will be used. LyX will not be able to produce<br>correct output.<br>RunCommand: could not start child process<br>TextClass.cpp (94): Conversion of layout with layout2layout.py has failed.<br>TextClass.cpp (363): Unable to convert D:/Thibaut/LyX/lib/layouts/article.layout to format 92<br>Error reading `[layouts/article.layout]'<br>(Check `article')<br>Check your installation and try Tools/Reconfigure...<br>RunCommand: could not start child process<br>TextClass.cpp (94): Conversion of layout with layout2layout.py has failed.<br>TextClass.cpp (363): Unable to convert D:/Thibaut/LyX/lib/layouts/article.layout to format 92<br>Error reading `[layouts/article.layout]'<br>(Check `article')<br>Check your installation and try Tools/Reconfigure...<br>support\lassert.cpp (52): ASSERTION false VIOLATED IN D:\Thibaut\LyX\src\LayoutFile.cpp:253<br>Assertion triggered in void __cdecl lyx::doAssertWithCallstack(bool) by failing check "false" in file D:\Thibaut\LyX\src<br>\support\lassert.cpp:45<br><br>Process finished with exit code 3</div><div style="margin-left:40px"><br></div><div>I suspect that the root cause of this is Package::system_temp_dir() returns C:\Windows, which is not a writeable directory (only system files belong there).</div><div><br></div><div>The cause of this is that I overwrote some parameters when starting my built LyX, so that the environment variables were no more set. This caused the Win32 call GetTempPath to return C:\Windows, because the first tentatives (based on environment variables) failed. See <a href="https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppatha" target="_blank" rel="noreferrer">https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppatha</a> for the details. <br></div><div><br></div><div>In LyX, maybe there should be an explicit check in createTmpDir (filetools.cpp) whether the temporary directory is writeable, and have an error box in the GUI if it is not? Currently, if someone falls into the same trap as I did, there is no explicit error message, even though this creates an assertion error later on and probably other failures if assertions are disabled. <br></div></div></div>