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.
[attachment=0:3rxed8ev]No instances error.png[/attachment:3rxed8ev]
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
[attachment=1:3rxed8ev]bug - NodeWebkit - No instances error.capx[/attachment:3rxed8ev]
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. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">)
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