Delete a projects save, it will crash on export

  • Problem Description

    Delete the project file for a project in memory, then export and it crashes on missing image files.

    a Capx version works fine. (I usually use capx, so I didn't expect the difference.)

    Attach a Capx

    n/a

    Steps to Reproduce Bug

    • Create a project and add a sprite or two.
    • Save the project as a Project folder
    • Delete the project folder
    • Export html5 project

    Observed Result

    ERROR:

    ---------------------------
    Construct 2 Check failure
    ---------------------------
    Check failure!  This is probably a bug:
    
    cannot find animation frame either in last_path or project location
    
    Condition: FileExists(GetProjectPath().c_str())
    File: Projects\AnimationFrame.cpp
    Line: 239
    Function: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __cdecl AnimationFrame::GetActivePath(void) const
    Build: release 197 (64-bit) checked
    Component: Construct 2 IDE
    (Last Win32 error: 3)
    
    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way.  Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports!  Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
    ---------------------------
    Abort   Retry   Ignore   
    ---------------------------[/code:1msei819]
    Abort drops out to desktop
    Retry completes, but each missing graphic is replaced with 0x0 images, that somehow retain the proper frame icon in the editor.
    Ignore just pops the error up again.    
    
    [b]Expected Result[/b]
    The project would export with the images in memory, but having lost the paths to their source.
    I wouldn't expect exporting to alter anything in memory. (0x0 images)
        
    [b]Affected Browsers[/b]
    n/a
        
    [b]Operating System and Service Pack[/b]
    Win 7 64bit
        
    [b]Construct 2 Version ID[/b]
    r197
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as won't fix. There is no good workaround to this. C2 tries to leave files on disk to avoid wasting memory and reduce startup times. To fix this it would have to always load the entire project's images in to memory, using far more memory and much longer load times, just to not crash when you delete files it is actively using! Workaround: don't delete files Construct 2 is using

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