[142] Crash drawing grid

0 favourites
From the Asset Store
Snap to visible grid - perfect solution for any game genre
  • Link to .capx file (required!):


    Steps to reproduce:

    1. Scroll with mouse-scroll-wheel


    2. Edit the alignment properties of the spritefont object


    3. Resize C2 window

    Observed result:


    <img src="http://blackhornettechnologies.com/C2bugs/GridCrash/SF_crash.jpg" border="0" />

    <img src="http://blackhornettechnologies.com/C2bugs/GridCrash/SF_crash_scrollwheel.jpg" border="0" />

    Note: grid is turned on, but not drawing when SF is on screen:

    <img src="http://blackhornettechnologies.com/C2bugs/GridCrash/SF_crash_nogrid_crp.jpg" border="0" />

    Note: just above and just below SF, (but with handles showing still) grid is drawing again:

    <img src="http://blackhornettechnologies.com/C2bugs/GridCrash/SF_crash_nogrid_topgrid_crp.jpg" border="0" />

    <img src="http://blackhornettechnologies.com/C2bugs/GridCrash/SF_crash_nogrid_botgrid_crp.jpg" border="0" />

    If you turn off the grid, the crash doesn't occur. I can reproduce this within a minute of loading the project and just altering anything that causes the main window to redraw. Rebooting workstation doesn't fix it. This has been here for a while but I couldn't reproduce like I can with this example.

    Expected result:

    Browsers affected:

    Chrome: yes/no

    Firefox: yes/no

    Internet Explorer: yes/no

    Operating system & service pack:

    Win 7 Pro 64

    Construct 2 version:

        142, 139, previous versions too.

  • I can confirm.

    Opened your project, used middle button to scroll and C2 crashed.

  • I can also confirm bug with example file in R143.

    Open file. middle mouse button scroll. Error and crash.

    I'm sure it's related to this bug, but I have a project that crashes the same way if you check show grid. Same errors and result.

  • I can't reproduce any crash. All three of your repro steps work fine and don't crash in r143. Is it still an issue?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes - still an issue. I've just tried all three conditions, and all three are still valid.

  • The problem is the Spritefont setting for wrapping.

    Changing it from 'Character' to 'Word' stops it crashing. Put it back to 'Character' and it crashes again.

  • Nope, still does it.

  • Still can't reproduce any problem at all changing the wrapping setting. It's hard to do anything about this if I can't reproduce the crash. Not sure why I'm not seeing any issue.

  • Let me know if you want to try a debug version, or added logging, etc. I fully appreciate the dilemma of not being able to reproduce a bug. It definitely seems to be in the grid-drawing code.

  • It crashes for me too. And I can reproduce it from scratch like this:

    1. Create a new project.

    2. Show grid.

    3. Add sprite font.

    4. Set Horizontal alignment and Vertical alignment to Center.

    5. Click and drag sprite font corner handle to resize.

    -> Error rendering view. Failed to read image file data.

  • ramones - can't reproduce with those steps either. Does this only reproduce with the Sprite Font plugin?

  • Ashley Yes only with Sprite Font, it doesn't happen with the Text plugin.

  • I just upload my own project in bug section, same thing crashes with grid.


    The only thing that is different with this to other projects is that I also used sprite font.

    I usually use text, but wanted to try out the sprite font for another project that might require it.

    Anyways, link to my project files (don't laugh) just a small birthday present for my mom - ha ha - she is sailing round the world and loves to gamble.

  • I can confirm that ramones steps crash for me too on win 7.

  • I made a post on my bug topic:

    Here it is

    Okay. Restarted the pc and now it works perfectly.

    Ashley, what could cause C2 to become unstable if pc is left on for extended periods of time. C2 needs to be shut down often to avoid crashes, but pc restarts to flush out (what?) that could cause stability issues.

    Seriously, a fresh restarted/booted pc and ZERO issues with grid. I didn't change a thing in project files.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)