User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18

Thread: Let's do some debugging

  1. #1
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.03%

    Let's do some debugging

    Since the builds have so many crashes we can't reproduce, we're going to try another approach to finding them. If you're encountering crashes in ZC or ZQuest, any help here would be appreciated.

    This is for Windows only, at the moment.

    Download this: http://www.mediafire.com/?7dcb1c8so5q67hn
    It's a slightly modified build of 1340, plus some other stuff. It's probably better to unzip it to a new directory rather than overwrite the regular build.

    Just run zlaunch-w.exe, like normal. Don't run ZC or ZQuest directly, always go through the launcher.
    Whenever it crashes, just post the contents of gdb.log and let us know what you were doing at the time.

    It should be safe to work on quests in this build. It may not be possible to use the same zc.sav, but you can certainly try. Just be sure to back stuff up first, as always.

    This will only work if cmd.exe is in C:\Windows\System32. If you're not sure, it almost certainly is. (I did try using %WINDIR%, but that didn't seem to work.)
    If it doesn't run at all, let me know and we'll try and work something out.

  2. #2
    Lynel
    Join Date
    Jan 2005
    Posts
    1,296
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,331
    Level
    18
    vBActivity - Bars
    Lv. Percent
    56.77%
    someone such as myself, who has no experience in debugging, I ask, what exactly are we looking for? Are we just trying to see what causes it to crash, and have it dump the errors to a log?

    ... that sentence structure went to hell and back... sorry, very tired >.>

  3. #3
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.71%
    You can now get hold of a file containing what was happening inside ZC when it crashes that you can send to a developer to look at.

  4. #4
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,142
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.51%
    Quote Originally Posted by Anthus View Post
    someone such as myself, who has no experience in debugging, I ask, what exactly are we looking for? Are we just trying to see what causes it to crash, and have it dump the errors to a log?

    ... that sentence structure went to hell and back... sorry, very tired >.>
    The "bt" command asks the debugger for a "backtrace", which shows where specifically the program crashes.
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

  5. #5
    Bored Potato Nicholas Steel's Avatar
    Join Date
    May 2005
    Age
    35
    Posts
    4,380
    Mentioned
    4 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    10,293
    Level
    30
    vBActivity - Bars
    Lv. Percent
    19.07%
    Quote Originally Posted by Anthus View Post
    someone such as myself, who has no experience in debugging, I ask, what exactly are we looking for? Are we just trying to see what causes it to crash, and have it dump the errors to a log?

    ... that sentence structure went to hell and back... sorry, very tired >.>
    They are looking for people to use it on a regular basis to help eliminate the "random" crash problems.
    Computer specifications:
    Windows 10 Pro x64 | Intel Core i7 @ 2.66GHZ | Asus P6T Motherboard | 6GB DDR3 RAM | Integrated Sound | Nvidia Geforce 560 Ti 2048MB PCI-E | Corsair AX760 Power Supply | Thermaltake Armor+ MX case

  6. #6
    Gel
    Join Date
    Aug 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    549
    Level
    8
    vBActivity - Bars
    Lv. Percent
    37.65%
    ZQ crashed. Here's the trace. (Segmentation fault, Ugh.) I had just finished compiling and recompiling the scripts, but it might be more related to the fact that it's been running for a while now. Edit: It could be a memory leak. The task manager showed the memory usage at about 100M before restarting and 70M afterwards.

    Program received signal SIGSEGV, Segmentation fault.
    0x0071ed6a in ?? ()
    (gdb) bt
    #0 0x0071ed6a in ?? ()
    #1 0x006f102c in ?? ()
    #2 0x006da2ab in ?? ()
    #3 0x006da1dc in ?? ()
    #4 0x0040b9a5 in ?? ()
    #5 0x0040fd5e in ?? ()
    #6 0x00449654 in ?? ()
    #7 0x006af627 in ?? ()
    #8 0x006af77d in ?? ()
    #9 0x006b0f5e in ?? ()
    #10 0x00448528 in ?? ()
    #11 0x006c70b6 in ?? ()
    #12 0x004485e0 in ?? ()
    #13 0x007557f6 in ?? ()
    #14 0x004010b6 in ?? ()
    #15 0x00401128 in ?? ()
    #16 0x75e23677 in KERNEL32!BasepMapModuleHandle ()
    from C:\Windows\syswow64\kernel32.dll
    #17 0x7efde000 in ?? ()
    #18 0x777d9d42 in ntdll!RtlpNtQueryValueKey ()
    from C:\Windows\system32\ntdll.dll
    #19 0x777d9d15 in ntdll!RtlpNtQueryValueKey ()
    from C:\Windows\system32\ntdll.dll
    #20 0x00000000 in ?? ()
    (gdb)

  7. #7
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.03%
    Looks like it crashed trying to draw a rectangle in refresh(). That's the second crash in a row like that... Maybe it'd be worth it to go through the whole function and make it check every single rectangle coordinate.

  8. #8
    Gel
    Join Date
    Aug 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    549
    Level
    8
    vBActivity - Bars
    Lv. Percent
    37.65%
    Got another one, although the trace looks exactly the same. This time the memory usage only got to 88M, and I wasn't doing anything with scripts. I had just right-clicked to bring up the select combo option (I think).

    Edit: Again, on a different computer. This time I was just clicking on the page up button on one of the combo-selector, so my idea that it had something to do with dialog boxes is shot (unless it was about to make a timed save). Anyway, the trace is the same except for the kernel stuff, so it's just a single problem at least.

  9. #9
    Floormaster Imzogelmo's Avatar
    Join Date
    Sep 2005
    Location
    Earth, currently
    Age
    45
    Posts
    387
    Mentioned
    7 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    1,461
    Level
    12
    vBActivity - Bars
    Lv. Percent
    94.24%
    Could this topic be stickied?

  10. #10
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.03%
    Updated to build 1316.
    MagiMaster, the crashes you saw are hopefully fixed now, so be sure to let us know if it happens again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social