"Failed to create temporary directory"

0 favourites
  • 6 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • C2 r50; Windows XP SP3; FireFox 5.0; ATI Radeon HD 4800

    *(IDE)Randomly on creation of a project or loading of a capx, a windows XP error appears :

         "Failed to create temporary directory 'c:\Documents and Settings\Kyat\Local Settings\Temp\cap94.tmp\' (2)"

    The number of the .tmp file increments, but I can have two to three of those in a row.

    Then either the project is created/loaded, either C2 crashes (windows crash, window "do you want to send stuff out")

    Notice : After a while and a lot of previews in FireFox, I have about 1.5 Go of ram occupied (according to task manager). (against 700 to 800 Mo on "Normal" use)

         

    It's really a random behavior. Some time it won't happen in hours, even if opening/closing C2 actively.

    Some times, on every creation/loading it will happen.

         

    Also, at some point, it seemed that when my first attempt at creating a single file project failed, the fact of clicking on the folder project and clicking again on single project file on my second attempt, helped successful creation.

    Some times also, it seems that waiting a bit between the moment C2 opened and clicking the new project button helps also.

         

    This is of course "feeling", not factual.

    As I said, it is random, and so hard to reproduce.

         

         

    Some failing application report from windows (obtained on creation of a new project):

         <?xml version="1.0" encoding="UTF-16"?>
    <DATABASE>
    <EXE NAME="Construct2.exe" FILTER="GRABMI_FILTER_PRIVACY">
        <MATCHING_FILE NAME="Construct2.exe" SIZE="7945728" CHECKSUM="0x68EACA61" BIN_FILE_VERSION="2.0.0.0" BIN_PRODUCT_VERSION="2.0.0.0" PRODUCT_VERSION="2.0.0.0" FILE_DESCRIPTION="Construct 2 game creator" COMPANY_NAME="Scirra" PRODUCT_NAME="Construct 2" FILE_VERSION="2.0.0.0" ORIGINAL_FILENAME="Construct2.exe" INTERNAL_NAME="Construct2.exe" LEGAL_COPYRIGHT="Copyright ? Scirra & contributors 2010.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x793EC7" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.0.0.0" UPTO_BIN_PRODUCT_VERSION="2.0.0.0" LINK_DATE="07/26/2011 13:52:40" UPTO_LINK_DATE="07/26/2011 13:52:40" VER_LANGUAGE="Anglais (?tats-Unis) [0x409]" />
        <MATCHING_FILE NAME="SciLexer.dll" SIZE="564736" CHECKSUM="0x953018FF" BIN_FILE_VERSION="2.2.1.0" BIN_PRODUCT_VERSION="2.2.1.0" PRODUCT_VERSION="2.21" FILE_DESCRIPTION="Scintilla.DLL - a Source Editing Component" COMPANY_NAME="Neil Hodgson neilh@scintilla.org" PRODUCT_NAME="Scintilla" FILE_VERSION="2.21" ORIGINAL_FILENAME="Scintilla.DLL" INTERNAL_NAME="Scintilla" LEGAL_COPYRIGHT="Copyright 1998-2010 by Neil Hodgson" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x928C1" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.1.0" UPTO_BIN_PRODUCT_VERSION="2.2.1.0" LINK_DATE="10/09/2010 16:41:46" UPTO_LINK_DATE="10/09/2010 16:41:46" VER_LANGUAGE="Anglais (?tats-Unis) [0x409]" />
        <MATCHING_FILE NAME="unins000.exe" SIZE="1175415" CHECKSUM="0x138B1BE7" BIN_FILE_VERSION="51.1052.0.0" BIN_PRODUCT_VERSION="0.0.0.0" FILE_DESCRIPTION="Setup/Uninstall" FILE_VERSION="51.1052.0.0" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x60000" UPTO_BIN_FILE_VERSION="51.1052.0.0" UPTO_BIN_PRODUCT_VERSION="0.0.0.0" LINK_DATE="03/17/2011 10:22:55" UPTO_LINK_DATE="03/17/2011 10:22:55" VER_LANGUAGE="Langue neutre [0x0]" />
        <MATCHING_FILE NAME="exporters\html5\html5.exporter.dll" SIZE="3782144" CHECKSUM="0x10F14AD8" BIN_FILE_VERSION="1.0.0.1" BIN_PRODUCT_VERSION="1.0.0.1" PRODUCT_VERSION="1.0.0.1" FILE_DESCRIPTION="Construct 2 exporter for HTML5" COMPANY_NAME="Scirra" PRODUCT_NAME="Construct 2" FILE_VERSION="1.0.0.1" ORIGINAL_FILENAME="html5.dll" INTERNAL_NAME="html5.dll" LEGAL_COPYRIGHT="Copyright ? 2010 Scirra & contributors.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x3A014B" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.1" UPTO_BIN_PRODUCT_VERSION="1.0.0.1" LINK_DATE="07/26/2011 13:55:08" UPTO_LINK_DATE="07/26/2011 13:55:08" VER_LANGUAGE="Anglais (?tats-Unis) [0x409]" />
        <MATCHING_FILE NAME="tools\audio\flac.exe" SIZE="176128" CHECKSUM="0x82BB21D7" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="02/01/2003 13:03:44" UPTO_LINK_DATE="02/01/2003 13:03:44" />
        <MATCHING_FILE NAME="tools\audio\oggenc2.exe" SIZE="3361280" CHECKSUM="0x179FD796" MODULE_TYPE="WIN32" PE_CHECKSUM="0x33CFA2" LINKER_VERSION="0x0" LINK_DATE="11/06/2010 11:41:48" UPTO_LINK_DATE="11/06/2010 11:41:48" />
        <MATCHING_FILE NAME="tools\audio\w7aacenc.exe" SIZE="135168" CHECKSUM="0xD3AA1D65" MODULE_TYPE="WIN32" PE_CHECKSUM="0x28150" LINKER_VERSION="0x0" LINK_DATE="07/22/2011 14:40:17" UPTO_LINK_DATE="07/22/2011 14:40:17" />
    </EXE>
    <EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
        <MATCHING_FILE NAME="kernel32.dll" SIZE="1054720" CHECKSUM="0xE5A4A735" BIN_FILE_VERSION="5.1.2600.5781" BIN_PRODUCT_VERSION="5.1.2600.5781" PRODUCT_VERSION="5.1.2600.5781" FILE_DESCRIPTION="DLL du client API BASE Windows NT" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Syst?me d'exploitation Microsoft? Windows?" FILE_VERSION="5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="? Microsoft Corporation. Tous droits r?serv?s." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x104D67" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.5781" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5781" LINK_DATE="03/21/2009 14:07:58" UPTO_LINK_DATE="03/21/2009 14:07:58" VER_LANGUAGE="Fran?ais (France) [0x40c]" />
    </EXE>
    </DATABASE>

    I've always add those kind of bug with any release. But I never took the time to document it. I also saw some other people noticing the same bug but being as "vague" as I am because, once again, this is quite random.

    Took me more than an hour to get the failing report from the moment I started noting about the bug. ^^

    I guess, this is XP related.

    I'll also throw 2 more little notices/stuff which are minor :

    * (IDE)Expression list windows by default hides at half of the description, even if the window is like 1000 pixels wide and can show them.

    I have to resize it to show the complete descriptions.

    * (IDE)Expression list window. The column showing the name of the method isn't resizable and happens to cut the name of long methods.

    I can't seem to find any way of making the full name appear. Workaround is to make shorter func names.

    That's all for now.

  • "Failed to create temporary directory" bug:

    This is really odd. The code for the checked build creates a directory, and checks the function succeeds. Later it double-checks the directory exists, and that's where the error you see is coming from. So if you don't see any error before that, it apparently has successfully created a directory, but then straight away can't find it. Hmm...! For the next build, I've just turned off the second check. If Windows says it created the directory, I suppose it worked anyway!

    Object panel issue:

    Good point - I've changed it in the next build so both columns auto-size to fit all the text they contain.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yeah well, the point is the "failed to create temporary directory" is a windows error, displayed by the OS itself that happens on project creation.

    With the cross in red icon.

    <img src="http://www.databison.com/wp-content/uploads/2009/08/vba-msgbox-message-box-type-300x300.png" border="0" />

    I happened to have also another error, that appears when I try to load (exclamation mark icon this time. Not sure it is windows' though. Once again "feeling" it is Construct's).

    Two lines: "Could not open project '\\?\C:\Documents and Settings\Kyat\Local Settings\Temp\capEA.tmp\New project.caproj':

    Failed to create temporary directory 'C:\Documents and Settings\Kyat\Local Settings\Temp\c2-EB.tmp\ (5)'"

    And c2-EB.tmp doesn't exist indeed.

  • The number in brackets is the error code, which MSDN says is "Access denied". Why would Windows deny access to the Temp folder?! I'll try and look in to this more...

  • OK, I've made a change for the next build. It will keep looping until it successfully creates a temporary directory. It also avoids using a Windows function that I've read fails if there are 65536 temp files. So hopefully this will fix it.

  • Should be fixed in r51 onwards so moving to closed - let me know if there are any more problems with this.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)