home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / bugs / 66 < prev    next >
Encoding:
Text File  |  1993-01-04  |  2.4 KB  |  73 lines

  1. Xref: sparky comp.sys.sgi.bugs:66 comp.sys.sgi.graphics:89
  2. Path: sparky!uunet!utcsri!dgp.toronto.edu!rodney
  3. Newsgroups: comp.sys.sgi.bugs,comp.sys.sgi.graphics
  4. From: rodney@dgp.toronto.edu (Rodney Hoinkes)
  5. Subject: Font Manager woes!  Even with Newest FM!
  6. Message-ID: <1993Jan4.182513.17676@jarvis.csri.toronto.edu>
  7. Organization: Centre for Landscape Research, University of Toronto
  8. Date: 4 Jan 93 23:25:13 GMT
  9. Lines: 62
  10.  
  11. What has been happening to the Font Manager?
  12.  
  13. I have managed to survive the migration to 'proper' code utilizing
  14. the fmfreefont calls AND the rotatepagematrix bug in the 4.0.5[a-f]
  15. Font Manager as well upgrading to the new bug-fixed Font Manger
  16. (post 4.0.5F release).
  17.  
  18. BUT, either I am going crazy or something is still terribly wrong
  19. with the FM.
  20.  
  21. If I run the following code on a pre-4.0.5 FM system (3.3.x - 4.0.4)
  22. it does not result in any memory loss.  Under 4.0.5a, mm, f, and
  23. f with fixed FM it hums along slowely eating all of my RAM!  I start
  24. up gr_osview and watch while it runs and it just sucks it all away.
  25. I saw 0 memory loss after 1.7million iterations on a 70GT running
  26. 3.3.2 but ran well into swap after 60,000 iteration on a 4.0.5f
  27. Entry Indigo.
  28.  
  29. #include <stdio.h>
  30. #include <gl.h>
  31. #include <device.h>
  32. #include <fmclient.h>
  33.  
  34. main() {
  35.     long its=0;
  36.     fmfonthandle f,fsized;
  37.     noport();
  38.     winopen("fmfreefont_test");
  39.     gconfig();
  40.     fminit();
  41.     while(!getbutton(LEFTMOUSE)) {
  42.         ++its;
  43.         f = fmfindfont("Times-Roman");
  44.         fsized = fmscalefont(f,18.0);
  45.         fmsetfont(fsized);
  46.         fmfreefont(fsized);
  47.         fmfreefont(f);
  48.     }
  49.     printf("AFTER %ld iterations\n",its);
  50.  
  51. }
  52.  
  53. This is a critical issue with me as my code is running in an interactive
  54. exhibit on a Crimson VGX (4.0.5a - 32MB RAM) and crashes every 30min or
  55. so as RAM runs out.  This obviously DOES NOT look good on me, my client,
  56. and SGI (which is a sponsor!).
  57.  
  58. Can someone tell me what I may be doing incorrectly?  I have spent
  59. considerable time on this issue dealing with the last 2 'items' (BUGS)
  60.  
  61. I am posting this here since I find this to be the best forum for
  62. rapid knowledgeable responses.
  63.  
  64.     Rodney Hoinkes
  65.     Head of Design Applications
  66.     Centre for Landscape Research
  67.     University of Toronto
  68.     Tel:   (416) 978-7197
  69.     Email: rodney@dgp.utoronto.ca
  70.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  71.     APIAWWGATI
  72.     "Anything's possible IF and WHEN we get around to it."
  73.