Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt crash at installation



  • Hello,

    I have a problem; When I want to install any Qt version on my computer, the installation crash just at the beginning of the installation, the step after indicating the space storage that it will use, after pressing "install" without any error messages or anything.

    This is the first installation and it's on Win10, 64 bits version.

    Does anyone have a solution ? Or an idea why it's happening ?



  • Hmm it could be something hazardous in your PATH settings, you could try open a CMD window with the PATH temporarily set to empty:

    set path=
    E:\Téléchargements\qt-unified-windows-x86-3.2.1-2-online.exe
    

  • Moderators

    Hi, and welcome!

    @Fasstaff said in Qt crash at installation:

    Does anyone have a solution ? Or an idea why it's happening ?

    I don't, sorry. I have installed Qt on many 64-bit Win 10 machines and I've never had the installer crash.

    What happens if you try on a different PC/laptop?



  • @Fasstaff said in Qt crash at installation:

    Or an idea why it's happening ?

    try to see if something is reported in your windows event viewer just after the crash



  • @JKSH
    Hello Thanks for your answer.

    Yes, it is working an my laptop, though I want it on this computer, not the other one.
    So using the other one is not really an option.
    Could it be my firewall maybe ? or anything security wise ?



  • Hi, does it still crash if you try installing Qt to some location other than C:\Qt?



  • @LeLev

    Yeah, it does (never gone to look at that before)

    it says that : (It's in french though, ask if translation is necessary)

    Nom de l’application défaillante qt-unified-windows-x86-3.2.1-2-online.exe, version : 3.2.1.0, horodatage : 0x5e3a9b5c
    Nom du module défaillant : unknown, version : 0.0.0.0, horodatage : 0x00000000
    Code d’exception : 0xc0000005
    Décalage d’erreur : 0x00000000
    ID du processus défaillant : 0x4a3c
    Heure de début de l’application défaillante : 0x01d5e297a1d14c96
    Chemin d’accès de l’application défaillante : E:\Téléchargements\qt-unified-windows-x86-3.2.1-2-online.exe
    Chemin d’accès du module défaillant: unknown
    ID de rapport : 9ac2f3c2-ce73-4179-b936-7356413b2cc9
    Nom complet du package défaillant :
    ID de l’application relative au package défaillant :



  • @hskoglund

    Hello,
    I'm trying to install it in my E: drive so yeah, it does



  • Ok let me rephrase the question: does it still crash if you try to install to C:\Qt?



  • @hskoglund

    I just tried and yes it crash too



  • Hmm it could be something hazardous in your PATH settings, you could try open a CMD window with the PATH temporarily set to empty:

    set path=
    E:\Téléchargements\qt-unified-windows-x86-3.2.1-2-online.exe
    


  • @hskoglund Sorry for not knowing it, but what would setting a path do ?



  • @Fasstaff
    The code is clearing the path environment variable to try to ensure the installer doesn't try to load/run/find something elsewhere that it's not supposed to.

    But it doesn't matter unless you try @hskoglund 2 lines (exactly as shown) in a Command Prompt. See if that makes it work or whether you have the same crash.



  • @hskoglund
    Oh, I don't know why but this solve my problem, thank you very very much !

    Though, if possible, I would still like the explanation ^^


  • Moderators

    @Fasstaff said in Qt crash at installation:

    @hskoglund
    Oh, I don't know why but this solve my problem, thank you very very much !

    Great! Please mark this topic as "Solved" and mark his answer as "Correct Answer"

    • Click "Topic Tools" -> "Mark Post as Solved"
    • Click the triple dots (next to the answer) -> "Mark this post as the correct answer"

    Though, if possible, I would still like the explanation ^^

    The PATH is a list of folders. Windows tells your executable to find and load DLLs from the PATH folders.

    If clearing the PATH stops a program from crashing, then you probably have a case of DLL Hell. One of the folders in your PATH probably contains DLLs that are incompatible with the Qt installer (for example, it might contain a different version of Qt DLLs)

    For this reason, we should avoid adding items to the PATH unnecessarily (and we should design our software in a way that doesn't need to be put in the PATH)



  • @JKSH
    Thank you very much for the explanation !
    And yeah, marking the topic as solved !


Log in to reply