Author Topic: Bug Reports  (Read 453101 times)

0 Members and 1 Guest are viewing this topic.

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Bug Reports
« Reply #105 on: March 16, 2010, 09:13:56 pm »
Lol, nothing secret, just an attempt to learn axe parser :P  The only thing I changed that made it compile, though, was these lines:
Code: [Select]
If {L1+(X*3)}=1
Pt-Off({L1+(X*3)+1},{L1+(X*3)+2},Pic1
End
and I don't have the original, cause i deleted those lines, but i'm 95% sure it was just like this instead:
Code: [Select]
If {X*3+L1}=1
Pt-Off({X*3+L1+1},{X*3+L1+2},Pic1
End
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

_player1537

  • Guest
Re: Bug Reports
« Reply #106 on: March 17, 2010, 11:11:06 pm »
Does anyone know why "X>0" makes an endless loop?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Bug Reports
« Reply #107 on: March 17, 2010, 11:54:25 pm »
Can we have some context?
/e

_player1537

  • Guest
Re: Bug Reports
« Reply #108 on: March 18, 2010, 12:04:03 am »
sure, I was writing a falldown game and I needed to check if Y was greater than 0, if it was greater I would subtract one from it.  So basicly
Code: [Select]
repeat F
If Y>0
Y-1-->Y
end
end
except that F is set by something and there's a couple more conditions, but they are kinda irrelevant

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Bug Reports
« Reply #109 on: March 18, 2010, 12:07:05 am »
umm, what sets f, i would'nt qualisfy as irrelevant, since f creates the loop...  How about you just post your whole code?
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

_player1537

  • Guest
Re: Bug Reports
« Reply #110 on: March 18, 2010, 12:16:25 am »
I'm sorry, I would if I could but I just lost conectivity with TI-connect, and I can't find the cd for the drivers.  I'm still trying to get that fixed.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bug Reports
« Reply #111 on: March 18, 2010, 01:44:44 am »
I hate when TI connect does that x.x

Sometimes, the other day it works fine, for some reasons

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #112 on: April 04, 2010, 04:17:06 am »
The bug described here goes a little deeper than I thought.  I still haven't found it yet, but I'm almost certain what's happening is that the 2 passes the parser makes are getting out of sync.  Normally, the 2nd pass has to follow the code exactly identically to the first pass but without actually writing anything so that static pointers can be replaced with their correct locations.  When they get out of sync, the 2nd pass starts writing those pointers over the wrong locations, in this case, over a subroutine call causing the program to call some random location in memory which causes the freeze.

I haven't added many new features yet because I need to get this resolved first, just in case it would force me to change any new code.  Hopefully I will locate the exact problem tomorrow and have added enough new features for a Sunday night update.  I'll keep you all posted. Just wanted to let everyone know whats been going on.

___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bug Reports
« Reply #113 on: April 04, 2010, 01:54:52 pm »
Mhmm, I sure hope you don't have too much issues fixing it. Some bugs can be pretty rough to fix and I know it, altough I can't imagine how much harder it must be in z80 assembly than in BASIC/RPG Maker/VB. I hope it won,t force you to get rid of features or ever rewrite the entire Axe Parser :/

Anyway good luck!

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #114 on: April 04, 2010, 10:34:40 pm »
You have no idea... I spent about 5 straight hours searching today... I couldn't find the error... and then finally... I found it, and it took 30 seconds to fix.  *face palm*  That's the worst thing about bugs.  Once you know whats wrong, its easy to fix but actually finding that bug is a nightmare, especially in a parser where you have switch statements with hundreds of arguments and tons of subroutines that are intertwined with each other so much, that a tiny change in one affects everything else.

Anyway, the resolution is a bit too complicated to explain, but the issue is resolved now.  I'll post an update late tonight.  This has been the hardest bug yet!

EDIT.
« Last Edit: April 04, 2010, 10:46:36 pm by Raylin »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Bug Reports
« Reply #115 on: April 04, 2010, 10:38:53 pm »
Well I'm glad to hear it got fixed :) So Coolio's title screen should work now?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bug Reports
« Reply #116 on: April 04, 2010, 10:44:52 pm »
You have no idea... I spent about 5 strait hours searching today... I couldn't find the error... and then finally... I found it, and it took 30 seconds to fix.  *face palm*  That's the worst thing about bugs.  Once you know whats wrong, its easy to fix but actually finding that bug is a nightmare, especially in a parser where you have switch statements with hundreds of arguments and tons of subroutines that are intertwined with each other so much, that a tiny change in one affects everything else.
Yup. Sometimes it takes even longer to fix. In a school VB project I spent 10-12 hours on a bug once  and I heard people spend even more. Finally, the bug was just a little inverted < boolean logic symbol x.x. In some cases, I invert two variable storage. x.x

In assembly it must be even worse because you code on the PC then have to load everything on an emulator all the time and test programs. Good job and I hope you don't encounter too many of those bugs x.x

Another annoying bug is the kind of bug that is hard to recreate and happens randomly. It's hectic because to fix it you have to know what exactly causes it x.x. In the Reign Of Legends 3, when riding the airship on the overworld map, in some cases, when riding it on next map, you get an ERR:DOMAIN error, but it only ever happened twice to me in a matter of 4 years. Because of this I never bothered fixing it cuz I was unable to figure out x.x

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Bug Reports
« Reply #117 on: April 04, 2010, 10:48:10 pm »
Hopefully so :)  And Quigibo, did you ever find this?
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Bug Reports
« Reply #118 on: April 04, 2010, 10:48:39 pm »
Raylin is pleased to hear about an Axe update.
Raylin understands your plight about bugs.
Raylin remembers a time where he wrote a 3000+ line program and had to find the bug in it. It was a missing semicolon.

Raylin is talking in third person for some odd reason.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #119 on: April 04, 2010, 11:55:37 pm »
Hopefully so :)  And Quigibo, did you ever find this?
I was never able to replicate that one unfortunately.  I assumed it was a fluke in the calculator.  If you find yourself getting that error again, I'll take a look at the source file.  I know it would be hard in this circumstance since it could freeze the parser and/or clear the ram, but you can try archiving it before parsing it so a reset doesn't delete it.

EDIT: 256th post! All my posts can be counted by a single byte!
« Last Edit: April 04, 2010, 11:57:14 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!