Undo Error: Event block has two triggers

Bugs will be moved here once resolved.

Post » Wed Aug 14, 2013 2:26 am

Link to .capx file (required!):
https://static3.scirra.net/uploads/articles/629/SpriteFontExamples.capx (the actual project where it happened, my Sprite Font tutorial)

Steps to reproduce:
1. Swap the FontFamily in the first trigger event (the whole event)
2. Hit undo where it should switch the triggered event back.

Observed result:
It pops up an unhandled exception:
---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:

Caught XML exception when undoing an action, this is a bug

Condition: false
File: Undo.cpp
Line: 154
Function: void __cdecl UndoBuffer::Undo(unsigned int)
Build: release 140 (64-bit) checked
Component: Construct 2 IDE
(Last Win32 error: 0)

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   
---------------------------
(I hit retry)
it closed, and another popped up saying:

"Error performing undo: Event block has two triggered conditions. This is a bug. Please report it!"

I suspect it's trying to add the original trigger back before removing the modified one.

Expected result:
the original object would be placed back in the whole event.


Browsers affected:
n/a

Operating system & service pack:
Win7 64 bit

Construct 2 version:
r140Paradox2013-08-14 11:54:19
B
241
S
63
G
33
Posts: 903
Reputation: 40,729

Post » Wed Aug 14, 2013 6:19 pm

Can't reproduce: I select event 1, press R, select FontFamily2, press Undo, and it undoes correctly. No error. Am I missing something?
Scirra Founder
B
402
S
238
G
89
Posts: 24,625
Reputation: 196,017

Post » Wed Aug 14, 2013 8:16 pm

That figures it did it every time I tried last night. now it's working for me too.

Close it, I can't get it again either.
B
241
S
63
G
33
Posts: 903
Reputation: 40,729


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests