Author Topic: Problems with GarbageCollect?  (Read 11278 times)

0 Members and 1 Guest are viewing this topic.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Problems with GarbageCollect?
« on: January 09, 2012, 02:39:41 pm »
I've been having multiple problems with the garbageCollect thing, and recently it's gotten bad enough to corrupt the OS to the point where changing contrast causes a crash.
The routine itself runs normally afaict, but afterwards it writes some junk tokens to the homescreen and crashes, more often then not corrupting the vat, flash and etc.

So, a few questions...
 - has anyone else had similar problems?
 - Where is the garbageCollect routine? (boot or OS)
 - If it's in the OS, why haven't OS re-sends fixed it?
 - If it's in the boot, will anything fix it short of a reflash?
 - Can it be fixed?  Or replaced with a hook or something?
 - in the VAT, is there supposed to be an appvar named that doesn't appear outside of Calcsys, or is this a problem as well?
« Last Edit: January 09, 2012, 06:25:39 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

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: Problems with GarbageCollect
« Reply #1 on: January 09, 2012, 02:52:50 pm »
Did you recently run any ASM or APP on your calc? This is most likely the cause of the problem, assuming there was any bad code in there. Otherwise it must be due to your recurrent missing archive pages calculator problem (your 84+ only had 10 pages, right?)

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Problems with GarbageCollect
« Reply #2 on: January 09, 2012, 02:55:58 pm »
Hmm, if it was a computer, I'd say that appvar name looks pretty suggestive, but if you have known issues with your flash, it could just be getting worse :/

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Problems with GarbageCollect
« Reply #3 on: January 09, 2012, 03:28:56 pm »
I think it is likely that the problem isn't GarbageCollect, but running the GC causes a crash because of something else that has been plaguing your calculator for so long.  Hasn't your calc been having multiple problems in the past? 

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Problems with GarbageCollect
« Reply #4 on: January 09, 2012, 04:18:35 pm »
- in the VAT, is there supposed to be an appvar named that doesn't appear outside of Calcsys, or is this a problem as well?

That's zStart, I mentioned it in the readme, but you know... That's where I store information like the location of the font and the page omnicalc is on. It will always be first in the vat no matter how hard you try to move it. (Unless of course you disable those features of zStart.)

- Where is the garbageCollect routine? (boot or OS)

It's in the OS. It's probably not corrupted.

- Can it be fixed?  Or replaced with a hook or something?

My guess is that your archive is corrupted, run this. (It clears ram, but, that's not really a problem for you at this point ;D)
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Problems with GarbageCollect?
« Reply #5 on: January 09, 2012, 06:17:11 pm »
I have the atchive cleaner and use it something like once a week :P
(Tho I got it from here, is the ticalc.org version different?)
Anyways immediately after whatever the problem is occured, I ran it and the problem remained.

I've been having these issues for a while, maybe since around axe 1.0?  Maybe I should do a full backup or something and clear mem?
(Also I guess it is a long-standing thing if it's in the OS, it's persisted throughout multiple OS re-sends (even 2.55 0.o))

Edit: So that zStart appvar thing was in the readme?  Odd, I have it printed out and in plastic sleeves and still don't remember it XD
Post-Edit: just looked through again..it mentions an appvar but doesn't name it.


Edit2: ok so..
84 pbe
S-0305B (full 128k ram)
OS 2.43
Installed apps: Axe 111, zStart, and Omnicalc through zStart.  Also MSD8X's and MirageOS's hooks

Edit3: @DJ I eventually got around that, though I don't remember exactly how.  Something about a swap sector iirc.
« Last Edit: January 09, 2012, 06:35:34 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Problems with GarbageCollect?
« Reply #6 on: January 09, 2012, 06:28:28 pm »
Have you ever done a full reset of your calculator?  ie: backup anything important and then clear all memory, RAM and ROM and resend the OS?

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Problems with GarbageCollect?
« Reply #7 on: January 09, 2012, 06:32:39 pm »
About once every six months or so, when things start to get really bad, meaning either things are getting corrupted or there's too much stuff in the archive and might as well clear all while I'm at it. :P

Should I do that now, and see if the problem reoccurs afterwards?
Vy'o'us pleorsdti thl'e gjaemue

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Problems with GarbageCollect?
« Reply #8 on: January 09, 2012, 07:09:44 pm »
I think so.  If you backup everything important, it can't hurt your calc, and if the problem still persists, that will narrow down the possibilities greatly.  It would also probably help to have a fresh calc with no hooks or asm programs that could have messed up something to test on.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Problems with GarbageCollect?
« Reply #9 on: January 09, 2012, 07:13:44 pm »
Have you tried making and deleting an app.  For some reason, the defrag it causes tends to fix the problems i have.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Problems with GarbageCollect?
« Reply #10 on: January 09, 2012, 09:14:54 pm »
Ok I feel smart right now...I put in another set of batteries and the issues disappeared.
Does TIOS have problems detecting the battery level of NiMH's, by any chance?  It might just be writing to the archive running on batteries it doesn't know are too low XD
« Last Edit: January 09, 2012, 09:17:29 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Problems with GarbageCollect?
« Reply #11 on: January 10, 2012, 07:27:48 am »
I'm not sure, but things do tend to act wonky sometimes when the batteries are low. I know (pc) linking fails or acts really strangely with low battery levels.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Problems with GarbageCollect?
« Reply #12 on: January 10, 2012, 06:12:46 pm »
:(
Just happened again, using batteries that were recharged less than 48 hours ago.  Those same batteries, just before the recharging, had gone strong in the Prizm for a couple weeks before running down.  I guess rule out the batteries?  I have multimeter at home, and can check how the batts are doing...

I'm guessing the part of the OS or whatever (hopefully not boot code) it affects is the startup--last time, the screen wouldn't initialize and turn up the contrast.  This time it's the same, except you can barely see the stuff on the screen.


Edit: I just put back in the battery that I took out of it ~10 minutes ago, and it's behaving.  So I guess removing a battery for a bit fixes it?  (Makes sense, last time it was "fixed" after there hadn't been any aaa's in it for a whole night, this time just one for >10 minutes.)

Btw I ran the archive cleaner immediately after and it still had the problems.
« Last Edit: January 10, 2012, 06:19:29 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Problems with GarbageCollect?
« Reply #13 on: January 10, 2012, 06:15:33 pm »
NiMH, if anything, runs more stably, as they stick to a higher voltage (not overall, they do run a bit lower than alkalines at full charge) until you get to near-dead battery levels. Alkalines gradually decrease their voltage output as they run down in a linear fashion, whereas NiMH have a very small slope that suddenly drops. The battery will think it's full enough until the last few minutes of running, but not so extremely as to cause problems.
« Last Edit: January 10, 2012, 06:15:54 pm by willrandship »

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Problems with GarbageCollect?
« Reply #14 on: January 10, 2012, 06:16:47 pm »
The thing is, these NiMHes seem to be perfectly healthy when it comes to charge.  On top of that I just recharged them less than two days ago.
« Last Edit: January 10, 2012, 06:17:02 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue