DefleMask Forum

DefleMask => Bug Reports => Topic started by: Delek on March 23, 2014, 06:32:18 pm

Title: Random crash in some random computers [SOLVED!]
Post by: Delek on March 23, 2014, 06:32:18 pm
2 users (bod (http://www.delek.com.ar/forum/profile/?u=294) and r57shell (http://www.delek.com.ar/forum/profile/?u=228)) are suffering a strange random crash that is causing DefleMask to force close without any message, popup or log file.

This was only reported on Windows and with ATI cards. If you had this same issue please post here your config and system specs.

I can't replicate the problem so this is the most difficult type of bug to solve. I need lot of extra information so this is the place where it will live.

Thanks.
Title: Re: Random crash in some random computers
Post by: bod on March 30, 2014, 05:35:52 am
Is there something I can provide? Maybe some sort of debugger log file?
Title: Re: Random crash in some random computers
Post by: Delek on March 30, 2014, 04:40:36 pm
Your system specs only. I will release a debug exe after some spec reports.
Title: Re: Random crash in some random computers
Post by: bod on March 31, 2014, 05:27:28 am
Don't rush. :) I already got my entry done for the easter party, so I can get back to Deflemask without stress.

Tracking Laptop Specs:

AMD Athlon II P360 Dual-Core Processor 2.30GHz
3.00 GB DDR2 RAM
AMD M880G with ATI Mobility Radeon HD 4250 (AMD Radeon HD 6470M Chip)

64 Bit Windows 7 with latest updates

I don't know if it's of interest, but since it's a dedicated laptop for tracking, it doesn't have too much fancy stuff installed. The only thing, which is probably relevant is the Color Vision screen calibration with a Spyder 2 (I'm a bit picky with the colors due to my job). The random crashes don't tend to disappear when deactivating or deinstalling it. So I guess this can be ruled out as an interference with the character rendering, which might be the problem, if I recall that correctly.
Title: Re: Random crash in some random computers
Post by: Delek on March 31, 2014, 09:27:11 pm
Ok so I did a no-text version of DefleMask. A report from r57shell concluded that the problem maybe is the text rendering under the ATI stuffs so this exe was done to check this information.

So, please, if you have the random crash download this exe file without text rendering (http://www.delek.com.ar/DefleMask_NoText_Exe.rar). If it don't crash, then I know where should I fight. Please make a backup of the original DefleMask.exe.
Title: Re: Random crash in some random computers
Post by: r57shell on April 01, 2014, 10:46:06 am
Also for history, here is my specs:

Notebook
Intel Core i3-380M
Windows 7 x64
AMD Radeon HD 6550M
3 GB DDR3 Memory

Windows and Drivers - NOT latest, I would say old drivers, old windows :).
Title: Re: Random crash in some random computers
Post by: Delek on April 01, 2014, 11:11:09 am
Thanks for the info, also, please test the no text exe (http://www.delek.com.ar/DefleMask_NoText_Exe.rar).
Title: Re: Random crash in some random computers
Post by: bod on April 03, 2014, 08:37:09 pm
So far everything's shiny. And I'm glad, that I know the buttons without the need to read them. :D Only tested it an hour or so, but it loaded 5-6 songs fluently and didn't crash while looping a song for about half an hour, after throwing down some fast patterns to test it.
Title: Re: Random crash in some random computers
Post by: r57shell on April 03, 2014, 09:18:38 pm
I have leave it to play during whole night and whole day.
Sound wasn't muted. I just threw the headphones on the floor, and set lowest volume.
It still playing, after around 30 hours.
Title: Re: Random crash in some random computers
Post by: Delek on April 03, 2014, 10:27:21 pm
Nice.

THIS IS A HALF TEXTS VERSION (http://www.delek.com.ar/DefleMask_HalfText_exe.rar) this means that will render only the 50% of the total needed texts. This will give me the final information that I need in order to fix this.
Title: Re: Random crash in some random computers
Post by: r57shell on April 05, 2014, 10:58:38 am
It still works after 24 hours.
Title: Re: Random crash in some random computers
Post by: r57shell on April 05, 2014, 01:10:41 pm
Separate post to keep timestamp of previous post.

But now something strange:
http://youtu.be/kRDo40LV1wQ
Maybe it's still playing, just sound is not updating.
Title: Re: Random crash in some random computers
Post by: Delek on April 06, 2014, 11:15:37 pm
That's SDL crashing.

Try this one (http://www.delek.com.ar/DefleMask_Fix1.rar), it has full text rendering and more careful way of handling strings length.
Title: Re: Random crash in some random computers
Post by: bod on April 07, 2014, 12:44:21 pm
50% text rendering still works nice for me. Sry for the delay. I'll move to another town at the end of the month.
Title: Re: Random crash in some random computers
Post by: Delek on April 07, 2014, 01:53:41 pm
Please try the latest one, it has full text and it should not crash! If it crash I will rewrite completely the text rendering stuff.

EDIT: Also, I don't know if you already did it, but try the latest 9f version of DefleMask. It was released some weeks ago and I didn't recieve feedback about new crashes after all.

http://www.delek.com.ar/soft/deflemask/DefleMask_Windows.rar
Title: Re: Random crash in some random computers
Post by: r57shell on April 09, 2014, 04:43:49 pm
Nope, both closing. I don't understand why you can't make 100% bullet proof test? ???
Title: Re: Random crash in some random computers
Post by: littlelamp100 on April 10, 2014, 12:56:15 am
Mine crashes quite often with the same exact things that you're describing.
Not entirely sure of my tech specs... I use an HP Pavilion g6 Laptop with no additional ram or anything. It's not very powerful, and I'm not surprised that it crashes often. I'm not saying that it isn't annoying, though...
I THINK that these are the specs, not entirely sure: http://www.cnet.com/products/hp-pavilion-g6/specs/
Hope you can help. :)
Title: Re: Random crash in some random computers
Post by: Delek on April 10, 2014, 09:04:19 pm
Let's try this new exes. If they do not work, I will start to make some violent tests:

THIS ONE (http://www.delek.com.ar/DefleMask_exe_fix2.rar) AND THIS ONE (http://www.delek.com.ar/DefleMask_exe_fix3.rar).
Title: Re: Random crash in some random computers
Post by: littlelamp100 on April 11, 2014, 12:55:52 am
Sorry to say, but...
The first one crashed. :-\
The second one is basically rendered unusable because there's no text at all. :o
No rush, Delek! I understand. ;)
Title: Re: Random crash in some random computers
Post by: Delek on April 11, 2014, 08:12:07 am
The second one is a special no-text rendering, it crashed too?
Title: Re: Random crash in some random computers
Post by: r57shell on April 11, 2014, 12:29:13 pm
first closing, second not.
Title: Re: Random crash in some random computers
Post by: Delek on April 11, 2014, 12:36:37 pm
Right, so the problem is not in DefleMask. It is inside the texture rendering stuff under OpenGL fonts library. I only removed the call to texturing and rendering and it don't crashed.

Thanks for all your tests guys, r57shell, bod and littlelamp100.
Hoping next fix will be the latest one.
Title: Re: Random crash in some random computers
Post by: Delek on April 11, 2014, 09:34:56 pm
Ok so please guys try THIS ONE (http://www.delek.com.ar/DefleMask_exe_fix4.rar).
Title: Re: Random crash in some random computers
Post by: littlelamp100 on April 13, 2014, 02:24:55 pm
:o WOT. It crashed! Just sort of... out of nowhere. I click on the Google Chrome Icon, and next thing you know, DefleMask just... crashes! :(
Oh well... Luckily, I didn't lose any work.
Title: Re: Random crash in some random computers
Post by: Delek on April 13, 2014, 06:12:31 pm
Ok I'm getting mad. I did a version with a little bit of changes, but also another with a SLOW AS HELL log that will store all the rendered text inside a "FONTLOG.log" file, so if it crash please send me the latest strings printed in the log.

HERE WITH LOG (http://www.delek.com.ar/DefleMask_exe_fix5.rar).
HERE WITHOUT LOG (http://www.delek.com.ar/DefleMask_exe_fix6.rar).
Title: Re: Random crash in some random computers
Post by: littlelamp100 on April 13, 2014, 11:31:24 pm
Don't get mad! I've programmed before in Petit Computer- it's frustrating, I know. :-[
The one with the log... WOW. That is a NEW level of slow. It's slower than my iPod Touch 4G, and that is REALLY saying something. (Before you flip out... I know it's frustrating and I really want to help you. ;) ) Maybe speed it up a bit if possible. Then we can talk.
The second one crashed, but in a different way. It crashed in the classic "filename.exe has stopped working" fashion.
Maybe my computer is just having a bad day, I don't know.
Title: Re: Random crash in some random computers
Post by: Delek on April 14, 2014, 12:31:18 am
If it crash in a different way then at least I am touching this in the right section. Please confirm this, that it is crashing in a new form.

Also check if there's a .log file in the Defle folder.
Title: Re: Random crash in some random computers
Post by: r57shell on April 14, 2014, 02:58:27 am
I have ERROR.LOG with "Out of Memory" :)
But today I tried again and it closed again without ERROR.LOG.
Title: Re: Random crash in some random computers
Post by: littlelamp100 on April 14, 2014, 09:40:36 pm
I have an ERROR file that just says "Out of Memory". That might help.
I also have a FONTLOG file, and when I looked at it, I couldn't BELIEVE how much text was there! No wonder it was lagging so much!
That's all. ;)
Title: Re: Random crash in some random computers
Post by: Delek on April 14, 2014, 10:00:46 pm
Ok, so if the "Out of Memory" was appearing then the problem is under the module reallocation of memory during playback. This is great feedback.

Please check THIS NEW EXE (http://www.delek.com.ar/DefleMask_exe_fix7.rar), I changed how the memory management is done. If it don't crash I will be very happy. :P
Title: Re: Random crash in some random computers
Post by: littlelamp100 on April 18, 2014, 12:25:12 pm
Well... it crashed a couple of times when I first tried it, but now it works perfectly! The crashes were the typical closing without a message, but I haven't had a problem recently.
Title: Re: Random crash in some random computers
Post by: Delek on April 18, 2014, 12:46:50 pm
Awesome.

Please I need your confirmation guys (r57shell, bod, etc) that the issue is for you fixed or not, in order to release a hotfix.
Title: Re: Random crash in some random computers
Post by: r57shell on April 18, 2014, 02:05:17 pm
For me latest EXE closing suddenly, without ERROR.LOG
Title: Re: Random crash in some random computers
Post by: Delek on April 18, 2014, 03:06:19 pm
Ok, so I think that I will never find the problem this way then.

I can't replicate the error, so I will need some more information about how the crash is produced.

Could you pease use the Windows Event Viewer?, read this:

"I always hear from my juniors and QA' about a particular crash being easily reproduced at client machine and not being reproduced at their machines. This is a tricky problem, as developers cannot debug the crash at client's machine. The end result is endless communication between support team and the customer or even live meetings. [...]
I observed that an application or program crash is logged in the Application Event logs and has sufficient information to get hold of the crash or problem location most of the times. The event viewer is generally located at C:\Windows\system32\eventvwr.exe"

http://www.codeproject.com/Articles/597856/Using-Windows-Event-Viewer-to-debug-crashes
Title: Re: Random crash in some random computers
Post by: r57shell on April 19, 2014, 06:42:35 pm
No events there.
Title: Re: Random crash in some random computers
Post by: Delek on April 19, 2014, 10:04:33 pm
I used CPPCheck (http://cppcheck.sourceforge.net/) and it pointed me out some places where the program could have some errors or overflows. There where only a few.

Please check THIS NEW EXE (http://www.delek.com.ar/DefleMask_exe_fix8.rar).
Btw are you checking only with Commodore 64?, maybe the stability is related to some system's emulator.
Also check where is the DefleMask folder in your OS (put it right in a root disk, C:\DefleMask\DefleMask.exe). If the filepath is larger than 256 (it should not), could bring some problems.
Title: Re: Random crash in some random computers
Post by: Delek on April 20, 2014, 09:05:56 pm
In case the previous one crash too, I did a selective no-text rendering.

NO-TEXT-IN-PATTERNS (http://www.delek.com.ar/DefleMask_exe_notextpatterns.rar)
NO-TEXT-IN-MAIN-MENU (http://www.delek.com.ar/DefleMask_exe_notextmain.rar)


I'm starting to think that some special text is not well created, so I have to detect where is it and fix it.
Title: Re: Random crash in some random computers
Post by: littlelamp100 on April 21, 2014, 12:39:21 am
Yeah, I had noticed a trend with it to crash with the C64 emulator. :P
That trend is GONE, now! :D
A couple of times it froze for a few seconds and then it worked fine; a heck of a lot better than crashing. I didn't even need to use the special no-text rendering version!

And to celebrate...
SOMETHING RANDOM THAT I MADE FOREVER AGO! 8)
Because... why not?
Title: Re: Random crash in some random computers
Post by: Delek on April 21, 2014, 01:10:22 am
Great. I'm really surprised that it is fixed in littlelamp100's pc but not in the r57shell?, please text those 3 new exes r57shell.
Title: Re: Random crash in some random computers
Post by: bod on April 24, 2014, 10:33:16 am
Crashes are gone completely for me.

Concerning the c64 it's all OK on my machine. Also it runs smooth on real hardware with the Ultimate II. So the .sid files are good. :D
Title: Re: Random crash in some random computers
Post by: Delek on April 24, 2014, 11:33:01 am
Nice, the crashes dissapear by using wich one of the latest EXE files?
I will release an official update.

PS: r57shell, DefleMask is still crashing for you?, bod and littlelamp100 are running it fine now.
Title: Re: Random crash in some random computers
Post by: bod on April 24, 2014, 11:58:21 am
After Fix7 everything went fine somehow. Didn't have a single crash. Fix8 is still running good on me. But honestly I hadn't have the time to check it real indepth for some hours straight.
Title: Re: Random crash in some random computers
Post by: Delek on April 24, 2014, 12:07:39 pm
Nice. Also please upload a video of that Ultimate II playing a DefleMask's SID. :)
Title: Re: Random crash in some random computers
Post by: r57shell on April 24, 2014, 06:50:15 pm
for me it still colsing. But, obviously more stable.
Title: Re: Random crash in some random computers
Post by: littlelamp100 on April 24, 2014, 11:08:27 pm
It crashed once... a split second after opening it. Other than that, I agree, it's MUCH more stable now. I noticed a glitch in the Game Boy emulator where the volume changes to 0 on the SQ channels but the sound is still playing- SMB is a good example.
Title: Re: Random crash in some random computers
Post by: Delek 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 (http://www.delek.com.ar/DefleMask_exe_fix10.rar).
Title: Re: Random crash in some random computers
Post by: r57shell on May 04, 2014, 10:46:36 am
nope, closing. I'll recheck it later.
Title: Re: Random crash in some random computers
Post by: Delek 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 (http://www.delek.com.ar/DefleMask_exe_notextpatterns.rar)
NO-TEXT-IN-MAIN-MENU (http://www.delek.com.ar/DefleMask_exe_notextmain.rar)


I'm starting to think that some special text is not well created, so I have to detect where is it and fix it.
Title: Re: Random crash in some random computers
Post by: r57shell on May 05, 2014, 08:24:34 am
It was tested too. I already tested all that was posted here.
Title: Re: Random crash in some random computers
Post by: Delek on May 05, 2014, 11:25:14 am
The conclusion is that BOTH crashed?
Title: Re: Random crash in some random computers
Post by: r57shell 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.
Title: Re: Random crash in some random computers
Post by: Delek 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.
Title: Re: Random crash in some random computers
Post by: Delek on May 07, 2014, 12:19:33 am
ok r57shell, please test this ones:

NO-TEXT-IN-MODULE-NAME (http://www.delek.com.ar/DefleMask_exe_nomodulename.rar)
NO-TEXT-IN-CURRENT-SYSTEM (http://www.delek.com.ar/DefleMask_exe_nocurrentsystem.rar)
NO-TEXT-IN-SIDEBAR (http://www.delek.com.ar/DefleMask_exe_noindexsidebar.rar)
NO-TEXT-IN-UPPERBAR (http://www.delek.com.ar/DefleMask_exe_notextupperbar.rar)
NO-TEXT-IN-MENU (http://www.delek.com.ar/DefleMask_exe_nomenu.rar)

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.
Title: Re: Random crash in some random computers
Post by: r57shell 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.
Title: Re: Random crash in some random computers
Post by: Delek on May 11, 2014, 10:58:22 pm
This is good news!!!

Try THIS ONE (http://www.delek.com.ar/DefleMask_exe_fix11.rar).

If it crash, press the button that says "Ins 0" to force it to display "Patt", and check if it crash too.
Title: Re: Random crash in some random computers
Post by: r57shell 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".
Title: Re: Random crash in some random computers
Post by: Delek 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. :)
Title: Re: Random crash in some random computers
Post by: Delek on May 12, 2014, 09:44:09 pm
Ok, let's try THIS ONE (http://www.delek.com.ar/DefleMask_exe_fix12.rar).

You are in the about screen r57shell. :)
Title: Re: Random crash in some random computers
Post by: r57shell on May 14, 2014, 03:09:51 pm
It seems work. Can you describe bug? I'm curious.
Title: Re: Random crash in some random computers
Post by: Delek 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.
Title: Re: Random crash in some random computers
Post by: r57shell on May 14, 2014, 04:32:43 pm
I think, null pointer was interpretated like normal pointer to null terminated string. After it, some bad characters before null character was processed and make some glBindTexture or I don't know... and some video cards works without crashes with such behavior, but other are crushing. It's my explanation.
Also, do you know, that if you bind same "texture object" to different samplers, you'll fail? (It's from OpenGL docs.)
Title: Re: Random crash in some random computers [SOLVED!]
Post by: bod on May 21, 2014, 01:32:51 pm
Uhhh..that really was a nasty one. :) Glad you solved it anyways and I'm on a new Laptop now with Intel/Nvidia.
Title: Re: Random crash in some random computers [SOLVED!]
Post by: SpoonyBard on June 23, 2015, 06:45:01 pm
I recently upgraded to Windows 8.1, and I've tested DefleMask on other Windows 8-running computers. For some reason, when I try to open DefleMask, it gives me this message:
"Impossible to create the Window. CODE: 0xF4E7372F"
I have an AMD Phenom II X4 955 Processor running at 3.2 GHz, 8 GB of RAM and a 64-bit operating system.
If someone could help me by at least telling me what the error code means, that'd be fantastic. Thanks in advance!
Also, my display monitor is an ATI Radeon 4800 HD
Title: Re: Random crash in some random computers [SOLVED!]
Post by: kfaraday on June 24, 2015, 01:53:00 am
my program crashed while it was playing a song.
Title: Re: Random crash in some random computers [SOLVED!]
Post by: Delek on June 24, 2015, 01:56:47 am
I recently upgraded to Windows 8.1, and I've tested DefleMask on other Windows 8-running computers. For some reason, when I try to open DefleMask, it gives me this message:
"Impossible to create the Window. CODE: 0xF4E7372F"
I have an AMD Phenom II X4 955 Processor running at 3.2 GHz, 8 GB of RAM and a 64-bit operating system.
If someone could help me by at least telling me what the error code means, that'd be fantastic. Thanks in advance!
Also, my display monitor is an ATI Radeon 4800 HD
That's a video driver error. DefleMask can't create an OpenGL window sucessfully. Check your OpenGL/Videocard Drivers.

my program crashed while it was playing a song.
I need more information kfaraday, System used, there's a log file for that crash? That would be helpful.
Title: Re: Random crash in some random computers [SOLVED!]
Post by: SpoonyBard on June 24, 2015, 05:01:37 am
I've tried to search for solutions, but I can't find anything that installs the drivers. According to most sites out there, OpenGL is incompatible with Windows 8, and according to my friend Steven, if I have DirectX I should already have the drivers.
I've even tested it on other computers that run Windows 8, and it works just fine! I don't know what else to do, but I can't lose access to this program. Does anyone have a specific link to something that can fix this issue?
Title: Re: Random crash in some random computers [SOLVED!]
Post by: SpoonyBard on June 24, 2015, 09:53:16 am
Okay. I don't know what I did, but I just ran a dmf file from KillaMaaki, and all of a sudden, I can run the program again.
I must have found the right combination of drivers on complete accident in my fit of "Install, Install, Install!"
Don't worry, I've taken the necessary precautions to prevent any and all viruses from infecting my computer. ;D
Title: Re: Random crash in some random computers [SOLVED!]
Post by: Delek on June 24, 2015, 12:18:02 pm
That's good news! :)