C2's "No instances" error: Text cropped in NodeWebkit

Bugs will be moved here once resolved.

Post » Tue Jan 27, 2015 3:18 pm

Problem Description
When previewing in NodeWebkit,
and receiving C2's "Cannot create an instance" error message,
the bottom line of the paragraph is chopped off.
The popup appears in the form of a Windows alert popup, (I'm using Windows 7)

This bug only seems to occur in NodeWebkit. When previewing in Firefox or Chrome, the entire text is fully readable and is NOT chopped.

The image below shows how the error popup (top of image) appears on my computer.
No instances error.png

Also seen in the image, is a program called GetWindowText (bottom of image) which I used to extract the popup text so I could read the entire message. That was before I realized that the chopping issue seems to only occur in NodeWebkit.


Attach a Capx
bug - NodeWebkit - No instances error.capx


Description of Capx
When you run the capx, it should preview in NodeWebkit and display the chopped error message popup described above.
(This capx was created by following the "Steps to Reproduce Bug" instructions I included below.
Except I also drew a little face on the sprite, which is not an included step. :))



Steps to Reproduce Bug

  • 1. Create a new project.
  • 2. In the project properties, in the "Configuration Settings" property group, set the "Preview browser" option to "Node-Webkit".
  • 3. In the layout, create and place a new sprite object.
  • 4. Remove the sprite object from the layout, such that the sprite remains in the project's "Object Types" folder, but so that no instances of the object exist in the layout. (You should get a message explaining that you have deleted the last "sprite" instance.)
  • 5. In the event editor, create a new event, with the condition "On start of layout", and the action "Create object sprite on layer 0 at (0,0)".
  • 6. Run a preview of the layout.
  • 7. You should see an error message appear in the form of a Windows alert popup. (I'm using Win7) The bottom line of the text is chopped off. On my computer the last readable words are "To resolve this add at least one".


Observed Result
The text of the error message is chopped off at the bottom, and so the last part of the message is missing.
On my computer the last readable words are "To resolve this add at least one".


Expected Result
A popup with the entirety of the message visible.
The end of the text message, when fully visible, normally reads "To resolve this, add at least one instance of the object to the project, on an unused layout if necessary."


Affected Browsers

  • NodeWebkit: YES
  • Chrome: NO
  • FireFox: NO
  • Internet Explorer: NO


Operating System and Service Pack
Win7 x64 - Pro
SP1


Construct 2 Version ID
Release 195 (64-bit)
Built at 15:36:00 on Jan 19 2015
Release notes link: http://www.scirra.com/construct2/releases/r195
You do not have the required permissions to view the files attached to this post.
B
26
S
17
G
8
Posts: 323
Reputation: 6,021

Post » Tue Jan 27, 2015 6:26 pm

It's a bug in node-webkit, there's not much we can do about it. You could report it directly to node-webkit if you like, it looks like they just use a fixed size window to display messages which isn't big enough. Besides you can just preview in a normal browser like Chrome and see the full message.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests