Chat

Author Topic: Random crash in some random computers [SOLVED!]  (Read 22049 times)

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #45 on: April 26, 2014, 08:22:03 pm »
Thanks for reporting that. It is fixed now.

I did another "fixed exe" with the r57shell proposal: it allocates twice the needed texts. It SHOULD NOT CRASH if the texts theory is right. Please DOWNLOAD IT.

r57shell

  • Guest
Random crash in some random computers
« Reply #46 on: May 04, 2014, 10:46:36 am »
nope, closing. I'll recheck it later.

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #47 on: May 05, 2014, 04:22:21 am »
ok r57shell, please test this ones:

In case the previous one crash too, I did a selective no-text rendering.

NO-TEXT-IN-PATTERNS
NO-TEXT-IN-MAIN-MENU


I'm starting to think that some special text is not well created, so I have to detect where is it and fix it.

r57shell

  • Guest
Random crash in some random computers
« Reply #48 on: May 05, 2014, 08:24:34 am »
It was tested too. I already tested all that was posted here.

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #49 on: May 05, 2014, 11:25:14 am »
The conclusion is that BOTH crashed?

r57shell

  • Guest
Random crash in some random computers
« Reply #50 on: May 05, 2014, 07:58:17 pm »
there still only one version that is not crushed: no text at all. I need to recheck it, to make sure.

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #51 on: May 06, 2014, 10:58:10 am »
I need to know if it is crashing on the same text rendering or if it is crashing randomly trough all texts.

Only the next specific texts are present in both NO-TEXT-IN-PATTERNS and NO-TEXT-IN-MAIN-MENU.
I will make a version without some of them until we found a stable combination.
« Last Edit: May 06, 2014, 11:17:05 am by Delek »

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #52 on: May 07, 2014, 12:19:33 am »
ok r57shell, please test this ones:

NO-TEXT-IN-MODULE-NAME
NO-TEXT-IN-CURRENT-SYSTEM
NO-TEXT-IN-SIDEBAR
NO-TEXT-IN-UPPERBAR
NO-TEXT-IN-MENU

Maybe it will take some time but this test will find the issue or convince me to finally change ALL the font rendering system. Thanks for your help.

r57shell

  • Guest
Random crash in some random computers
« Reply #53 on: May 11, 2014, 04:00:51 pm »
First two crushed during 5 mins
NO TEXT IN SIDEBAR - not crushed after ~10 hours
other I'll test later.

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #54 on: May 11, 2014, 10:58:22 pm »
This is good news!!!

Try THIS ONE.

If it crash, press the button that says "Ins 0" to force it to display "Patt", and check if it crash too.
« Last Edit: May 12, 2014, 02:13:34 am by Delek »

r57shell

  • Guest
Random crash in some random computers
« Reply #55 on: May 12, 2014, 05:46:01 pm »
This one crushing if I don't hit "Ins 0".
It worked few hours with hited "Ins 0" -> "Patt".

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #56 on: May 12, 2014, 05:59:03 pm »
So we have finally found where the problem is. The next fix should be perfect. Thanks a lot r57shell, you will be included in the special thanks in the about screen. :)

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #57 on: May 12, 2014, 09:44:09 pm »
Ok, let's try THIS ONE.

You are in the about screen r57shell. :)

r57shell

  • Guest
Random crash in some random computers
« Reply #58 on: May 14, 2014, 03:09:51 pm »
It seems work. Can you describe bug? I'm curious.

Offline Delek

  • Sali para ver
  • Administrator
  • Hero Member
  • Posts: 1813
    • Delek's Website
    • Email
Random crash in some random computers
« Reply #59 on: May 14, 2014, 04:05:16 pm »
Yes of course.

My UI engine object class hierarchy starts with: colored quads, textured quads, lines and text.
All of the other "more complex" objects are constructed by combining or using those in a specific way, then we can have:
buttons (using colored quads, textured quads and texts)
slidebars (using colored quads and textured quads)
checkboxes (using colored quads, lines and texts)

In old versions of my UI engine, the buttons were not declared by setting a text, instead, you were forced to render a SEPARATED text in front of the button object. This was not a problem, but when I added the updated text+buttons in the same class, I skiped that stupid "Ins 0" button. It was using a null pointer to render the text, and because I was using a separate text to rendering it I really not noticed the bug.

OLD VERSION CODE:
renderText(x,y,"Ins %X", selectedInstrument);
createButton(x,y,&switchInstrumentList, 0); <<this latest parameter was a id, but in new version is the text pointer.

NEW VERSION CODE:
createButton(x,y,&switchInstrumentList, text); <<now text is a *char containing "Ins %X", selectedInstrument.


The weird part is that this was causing a crash only in a minor % of the total users. :S

Well, if it is finally fixed I will release an update in some hours. Thanks for the testing.
« Last Edit: May 14, 2014, 04:16:52 pm by Delek »