Assertion Failure : No project JSON model availabl

Bugs will be moved here once resolved.

Post » Fri Sep 02, 2011 7:03 am

C2 r53; Windows XP SP3; FireFox 6.0.1; ATI Radeon HD 4870


I was working on a project in construct2. (the demo for my pathfinder behavior)
Saved it as a project folder, saved two versions in new folders.

Adds some stuff about testing text objects' opacity.

On preview I get a jQuery type of window message:
[code]Assertion failure: No project JSON model available

Stack trace:
assert2((void 0),"No project JSON model available")@http://localhost:50000/preview_prelude.js:12
()@http://localhost:50000/preview.js:104
([object HTMLCanvasElement])@http://localhost:50000/preview.js:87
("c2canvas")@http://localhost:50000/preview.js:10
((function (a, b) {return new e.fn.init(a, b, h);}))@http://localhost:50000/preview.html:87
([object HTMLDocument],[object Array])@http://localhost:50000/jquery-1.6.2.min.js:16
()@http://localhost:50000/jquery-1.6.2.min.js:16
([object Event])@http://localhost:50000/jquery-1.6.2.min.js:16
[/code]

As well as an error in firebug:
[code]missing ] after element list ""stop"" in data.js (line 3846)[/code]

After having clicked OK on the message firebug points to
line 105 in preview.html
[code]"var pm = cr.getProjectModel();[/code]

And gives the message:
[code]cr.getProjectModel is not a function [/code]

Indeed, cr.getProjectModel is undefined.



Also.
I tried to make a capx out of the current folder, just to see.
And it seems I get the same error shinkan reported.

Loading the file raises a check failure:
[code]
---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:

Cannot find project file for animation frame

Condition: FileExists(GetProjectPath().c_str())
File: Projects\AnimationFrame.cpp
Line: 186
Function: void __thiscall AnimationFrame::Load(const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)
Build: release 53 (32-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.
---------------------------
Abandonner   Recommencer   Ignorer   
---------------------------
[/code]

Ignoring (several times, turning into fail to load texture error) allows to finaly open the project.
And gets the same assertion JSON error as above.



Get the zip containing:
* demobug: the last version of the project saved as "project folder" and triggering the JSON assertion error.
* democlean: the previous version of the project saved as "project folder" and executing as intended.
* pathfinder: the behavior itself
*demo pf.capx: the capx I saved from the demobug project.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Sep 02, 2011 1:31 pm

It's because you have a global text variable dirframe initialised to "stop". You don't need the double quotes around it - if you remove them, it works. It breaks because the string isn't correctly escaped when put in to javascript. Fixed for next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,508

Post » Fri Sep 02, 2011 1:36 pm

Nice. Thank you.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests