My project started just going to a black screen at start with the console showing the message in the attached image. I've attached the c3p file. If you move the animated whale off the screen it displays the blue background. If you leave the animated whale on the screen it throws the ctx not defined error.
Also, works fine if Construct 2 runtime is selected.