[142] Crash drawing grid

Bugs will be moved here once resolved.

Post » Sun Aug 25, 2013 3:00 am

Link to .capx file (required!):
http://blackhornettechnologies.com/C2bugs/GridCrash/SF_crash_wonkygrid.capx

Steps to reproduce:
1. Scroll with mouse-scroll-wheel
or
2. Edit the alignment properties of the spritefont object
or
3. Resize C2 window

Observed result:
Varies:



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


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




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.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sun Aug 25, 2013 8:31 am

I can confirm.

Opened your project, used middle button to scroll and C2 crashed.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,548
Reputation: 60,440

Post » Sun Sep 08, 2013 7:51 pm

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.

B
88
S
14
G
9
Posts: 101
Reputation: 9,962

Post » Tue Sep 10, 2013 2:14 pm

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?
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

Post » Tue Sep 10, 2013 3:15 pm

Yes - still an issue. I've just tried all three conditions, and all three are still valid.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Tue Sep 10, 2013 3:21 pm

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.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,548
Reputation: 60,440

Post » Wed Sep 11, 2013 3:00 pm

Nope, still does it.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Wed Sep 11, 2013 3:52 pm

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.
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

Post » Wed Sep 11, 2013 4:51 pm

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.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Wed Sep 11, 2013 4:52 pm

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.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,680

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests