home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / system / 14165 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  10.0 KB

  1. Path: sparky!uunet!pageworks.com!world!eff!news.byu.edu!gatech!emory!wupost!ukma!cs.widener.edu!dsinc!ub!galileo.cc.rochester.edu!troi.cc.rochester.edu!afry
  2. From: afry@troi.cc.rochester.edu (Alan R. Fry)
  3. Newsgroups: comp.sys.mac.system
  4. Subject: Urrrkkk! Finder heap is killing itself.
  5. Summary: who messes with the finder heap?
  6. Keywords: Finder, heap, FWB Hard Disk Toolkit, Silverlining, Swatch, Init Scope
  7. Message-ID: <1992Nov17.182531.140@galileo.cc.rochester.edu>
  8. Date: 17 Nov 92 18:25:31 GMT
  9. Sender: news@galileo.cc.rochester.edu
  10. Organization: University of Rochester (Rochester, NY)
  11. Lines: 163
  12. Nntp-Posting-Host: troi.cc.rochester.edu
  13.  
  14.  
  15. I have a very pesky problem with the finder crashing.  I think it's a
  16. problem with an extension, and I'll probably be able to fix it, but I would
  17. really like to understand why the heck it is happening.
  18.  
  19. If you want to stop reading here but still give me a hand, you can tell me
  20. if you know of any extensions that patch or trap routines in the Finder,
  21. especially any having to do with heap management.  Braver souls may venture
  22. further.  
  23.  
  24. Warning: this turned out to be pretty long and wordy, but I figured it would
  25. be better to spell everything out than to have people write me back and ask
  26. 'Have you tried blahblahblah?' when blahblahblah was something I had done a
  27. few dozen times.  :-)
  28.  
  29. Here's the rundown.
  30.  
  31. Hardware: SE/30, 8MB, 105MB HD, Micron Xceed 8-bit card, Sony 1304 monitor,
  32.       44MB Syquest drive
  33.  
  34. System:      7.1, unmodified except for fonts and a few
  35.        fkeys.  Virgin Finder.  24 bit mode, no VM.  Usually running with
  36.       gobs of extensions (more on that later).  Same problem earlier
  37.       with System 7.0 and a modified finder (fast copy, no zoom rects).
  38.  
  39. Problem:  The finder heap fails to free up enough heap space to continue
  40.       running for any decent amount of time.  It just uses its free heap
  41.       space as it needs it, and then never frees it back up.  Eventually
  42.       when it is completely out of memory, I get one nice message "Sorry
  43.       out of memory.  Close some windows, etc., etc." and then a long
  44.       (longer than my patience for repeatedly hitting the OKAY button) 
  45.       string of very nasty messages proclaiming the dreaded Error -192
  46.       (Resource not found).
  47.  
  48. The Cause:  It is partially an init (extension) problem, because the Finder
  49.         can take care of itself if I start up with all extensions off
  50.         (using the trusty shift key).  This particular problem was also
  51.         preceeded by a change to the drivers on my HD, and a
  52.         non-recoverable BTree error that forced me to reformat and
  53.         replace my HD partition from backup.  But the strange thing is
  54.         that everything was 'just fine' with the same set of extensions
  55.         and the old HD drivers (system 7.0).  Now even if I switch back
  56.         to the old drivers, I still get this problem.
  57.  
  58. Things I Have Done:    Rebuilt the desktop, replaced the Finder, run
  59.             DiskFirstAid, run Norton, replaced the HD drivers,
  60.             reformatted the partition, restored from a backup,
  61.             reinstated the old HD drivers, reinstalled the
  62.             system, installed a fresh system, run a virus
  63.             checker, removed suspicious extensions, ran amuck.
  64.  
  65. Things I Haven't Done:    Installed a fresh pre-system 7.1 system (because it
  66.             isn't a sys 7.1 specific problem
  67.  
  68. Here is the sequence of events leading up to this whole mess:
  69.  
  70. I had been running with Silverlining 5.27 HD drivers and System 7.0 (tuneup,
  71. of course) for quite a while, but I was always nervous because 5.27 is not
  72. 100% System 7 compatible.  So last week I side-graded to the FWB Hard Disk
  73. Toolkit (HDT) and eagerly went to install it on my 105MB HD with 3
  74. Silverlining partitions.  Well, the HDT drivers take up about 34K, and the
  75. SL drivers only take up 16K, so I had to use SL to decrease the size of one
  76. partition to make enough room for the HDT drivers to install.  No problem.
  77. Then I used the HDT Primer to 'take over' each partition (something which I
  78. don't exactly understand, despite the excellent HDT documentation) and make
  79. them all automountable.  Still no problem.  I was converting my Syquest
  80. cartridges over in the same way and doing some random file shuffling between
  81. the HD and Syquest when I started getting the dreaded Finder errors (-192).
  82.  
  83. I just ignored them for a while, restarting and hoping it would 'go away'
  84. (snicker) but then the Finder started behaving very badly.  Icons on my boot
  85. partition disappeared, and many programs were behaving as if their
  86. preferences were trashed (which, it turns out, they were).  I ran Norton
  87. Disk Doctor on the partition, and it told me that I had a trashed BTree, and
  88. there was nothing it could do about it.  I ran DiskFirstAid 7.1, and it told
  89. me the same thing:  trashed BTree, out of luck.  I had a recent backup, but
  90. just for the hell of it, I backed up the damaged partition on a different
  91. cartridge, too.  Then I used HDT to completely erase the partition, and I
  92. restored the damaged version that I had just backed up.  Everything on the
  93. partition was fine, except that the Preferences file was completely missing
  94. from the System Folder, so I restored that from my other backup.  
  95.  
  96. I rebooted, and I still got the Finder errors.  I tried replacing the Finder
  97. with a clean copy, and I still got the errors.  I tried booting with no
  98. extensions and I *think* I still got the errors (many hours of this were
  99. grinding down my brain), so I thought it must be the new driver software.  I
  100. used HDT to switch over to the SL drivers (which were still on the disk),
  101. and booted with extensions on, and got the errors.  I switched back to the
  102. HDT drivers, booted with extensions, and got the errors.  
  103.  
  104. It seemed like a corrupted System so I decided now would be a good time to
  105. upgrade to System 7.1.  I installed 7.1 from disk images on a Syquest
  106. cartridge using MountImage (which I know has been buggy, e.g. the Quicktime
  107. 1.5 image doesn't install correctly).  Reboot, still the errors.  Well,
  108. maybe if the System was corrupted, the corrupted parts didn't get replaced,
  109. so I copied out all my sounds (about 10) and fkeys (MountEm, Switch-a-Roo,
  110. Window Reset, and some sound control thingy) and installed a pure System
  111. 7.1.  Reboot, errors.  Reboot with no extensions, no errors.  Go back to the
  112. SL drivers, reboot, errors.  Reboot with no extensions, no errors.  Back to
  113. the HDT drivers.
  114.  
  115. Somewhere along the line I started watching the Finder heap using a program
  116. called Swatch by Joe Holt at Adobe (although it isn't an Adobe product).  It
  117. shows a graph of how much free, used, and purgable heap you have in each
  118. running process.  It is interesing that when the Finder is running
  119. 'normally' it almost never has more than 13K of free heap.  When you open a
  120. lot of windows, 'get info' on a large folder, sort by name, etc., you use up
  121. some of the free heap, but it usually doesn't go much below 3K.  Even if you
  122. intentionally open dozens of windows the free heap only goes down to about
  123. 1.6K, and sometimes it even goes up (forgets about rear windows, I
  124. presume).  When everything gets closed, the free heap rebounds back to 3.5K
  125. or so.  You can use Swatch to compact the heap of a program (clear the
  126. purgable heap, I presume), and in 'normal' Finder operation, doing this gets
  127. you back up to about 12K of free heap.  When my Finder is running in
  128. Reckless Self-Destruct mode, the amount of free heap just keeps getting
  129. smaller and smaller as it is replaced by non-purgable heap.  The heap drops
  130. down to less than 160 free bytes, and then WHACK, polite 'too many windows
  131. open' message followed by -192 errors until I reset.
  132.  
  133. Well, like I said way back when, some extension is triggering this Finder
  134. problem, and I'll eventually find it and tie it up and kill it, even if it's
  135. one that I really love.  But I am very curious to find out how the problem
  136. is coming about, and what triggered it in the first place.  I mean, things
  137. were swell before I put in the new HD drivers, and now even the old drivers
  138. don't seem to help.  Grrr....  
  139.  
  140. I have run an extension called Init Scope, by David P. Sumner, which monitors
  141. the entire loading process during startup, so I have a list of patches and
  142. installations for all of my extensions.  I'm not a programmer, so I don't
  143. understand what the heck all (or any, really) of them mean, but it seems
  144. that if any of them patch the heap management routines for the Finder or
  145. actually use Finder heap (instead of System heap), there might be my
  146. problem.  Maybe I have an extension that got corrupted when my BTree got
  147. chopped down.  Do any of you clever programmers out there have any ideas
  148. about which patches or low memory globals I should be looking for?
  149.  
  150. By the way, here is a list of most of my extensions.  Disinfectant,
  151. IconWrap, OnStartup (part of OnCue II), AfterDark 2.0v, CEToolbox, Color
  152. Arrow, DepthGauge, DiskDoubler INIT, DiskExpress II, DiskTop.Extras 1.01,
  153. FileSaver (part of NU 2.0), Finder View, Finder Select, Just Click,
  154. MasterJuggler, Memory (part of sys 7.1), MountImage, NowMenus, On Cue II,
  155. PopChar, Programmer's Key, PwrSwitcher NC, QuicKeys 2, Radious MATH,
  156. Remember? Extensions, SCSIProbe 3.4, Shutdown Delay, SmartKeys 2.1,
  157. SpeedyFinder7, Super Boomerang, SuperClock!
  158.  
  159. I have removed the most suspicous extensions, such as SpeedyFinder7 and AD
  160. 2.0v (waiting for 2.0w).  Finder View and Finder Select sound suspcious, but
  161. they don't do much (command key equivalents in the View menu and extended
  162. rear-window select capabilities).  Nothing else leaps out at me.
  163.  
  164. Yikes, this has run on!  I'm going to sit down with a pot of coffee tonight
  165. and carefully remove extensions and run through my little battery of tests
  166. to see if the Finder heap will crash (it doesn't take very long).  If I work
  167. it out, I will post something (short, I promise) about it.  In the meantime,
  168. if anyone would like to share some advice or similar experiences, please
  169. write or post (for god's sake, don't include the whole article!).
  170.  
  171. Alan
  172. --
  173. ............................................................................
  174.   Alan R Fry                        Find the hidden faces in this .sig     
  175.   afry@troi.cc.rochester.edu        and you win a free straitjacket!       
  176. ............................................................................
  177.