Menu

GUI crashes with projects referencing unusual paths

2018-12-10
2018-12-11
  • Jens Nissen

    Jens Nissen - 2018-12-10

    If the project file references an unexpected path, the GUI deadlocks / crashes.
    See the attached project file.
    Open the project and answer the question for a path with "yes".

     
  • versat

    versat - 2018-12-11

    test.cppcheck contains the following data:

    <?xml version="1.0" encoding="UTF-8"?>
    <project version="1">
        <builddir>test-cppcheck-build-dir</builddir>
        <platform>Unspecified</platform>
        <analyze-all-vs-configs>true</analyze-all-vs-configs>
        <paths>
            <dir name="C:/"/>
        </paths>
    </project>
    

    I have tested it with this project under Windows 7, so C:/ exists.
    First Cppcheck scans all directories and files under C:/ for source code it can analyze.
    During this process the GUI is indeed unresponsive and it looks like it hangs, but Cppcheck is working. After a while the found source code files are analyzed (over 200000 on my PC). During the analysis the GUI is responsive and i can abort the analysis.
    It makes not really a difference whether i let Cppcheck create the build dir or not (Answering the question with yes or no).
    I that what you also observe?
    I guess the GUI should be responsive or at least show some moving process bar or something like that while it is searching for files. Is that what you are missing too?

     
  • Jens Nissen

    Jens Nissen - 2018-12-11

    Oh - I see - it is trying to scan my harddisk - that is a horrible fight of course. Actually, I wanted to only save the build output to c:/something and somehow I came to this project file.
    I agree, that this is not really a bug but somewhat unlucky. A progress indicator or some other status message would be nice.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.