Delete a projects save, it will crash on export

Bugs will be moved here once resolved.

Post » Sun Feb 22, 2015 10:09 pm

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:
Code: Select all
---------------------------
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   
---------------------------

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.

Expected Result
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)

Affected Browsers
n/a

Operating System and Service Pack
Win 7 64bit

Construct 2 Version ID
r197
B
222
S
59
G
32
Posts: 901
Reputation: 39,213

Post » Mon Feb 23, 2015 1:21 pm

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 :P
Scirra Founder
B
383
S
224
G
86
Posts: 24,117
Reputation: 190,432


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests