[comp.sys.mac] Some Human Interface

joe@gistdev.gist.com (Joe Brownlee) (02/08/90)

In article <2820@cunixc.cc.columbia.edu> cmm1@cunixa.cc.columbia.edu
(Christopher M Mauritz) writes:
>What does this mean?  I keep getting System Error #03 and a crash [...]

For a machine that is based on friendliness and ease of use, the the error
handling capabilities of the Mac OS are dismal.  How many messages do we see
here asking for info on bomb IDs, file I/O errors, or Sad Mac codes?  Doesn't
that say something about this whole issue?  Wouldn't this be something that
could be improved relatively easily?

Note that I am _not_ flaming the people who post these questions -- they
shouldn't have to hunt all over for error code meanings.  All I ask is for a
simple text message that concisely explains the error.  Granted, text takes
space, be it on disk, in ROM, or in memory, but I experience enough crahses
that I would at least like to see a message in the bomb box.  And file I/O
errors like "Error #-39" should not make me reach for Inside Mac (which at
least _I_ own; many users do not, nor should they have to).

The Mac interface has many features which make it superior to others, but
when it comes to its error handling, I just don't think ID=03 is acceptable.

-- 
  .      _    Joe Brownlee, Analysts International Corp. @ AT&T Network Systems
 /_\  @ / `     471 E. Broad Street, Columbus, Ohio 43215      (614) 224-6790
/   \ | \_,     joe@gistdev.gist.com      Who pays attention to what _I_ say?
             "Scotty, we need warp drive in 3 minutes or we're all dead!" - Kirk

chuq@Apple.COM (Chuq Von Rospach) (02/08/90)

joe@gistdev.gist.com (Joe Brownlee) writes:

>>What does this mean?  I keep getting System Error #03 and a crash [...]

>For a machine that is based on friendliness and ease of use, the the error
>handling capabilities of the Mac OS are dismal.  How many messages do we see
>here asking for info on bomb IDs, file I/O errors, or Sad Mac codes?  Doesn't
>that say something about this whole issue?  Wouldn't this be something that
>could be improved relatively easily?

Well, it could be improved (probably should be). Easily? That's another matter.

One major reason the error handling is the way it is is because when you
call the error manager the system is in a corrupted state (by definition).
It can't assume that the OS is working properly, that quickdraw is working
properly -- that ANY of the toolbox, or for that matter, the hardware, works.
This is especially true of the sad mac codes, where there's been a
catastrophic error that's bad enough the system can't boot.

The error manager basically has to do everything itself. The question is,
what level of tradeoff is acceptable between ROM size, memory usage (since
the error manager has to be resident in memory: remember, when it's called,
you can't trust loading stuff off disk into memory) and effusiveness. When
it was first written, the ROM was tight on space and system memory had to be
limited (there was only 128K, remember). 

Easily? There are a lot of complications to 'fixing' the error manager.

>Note that I am _not_ flaming the people who post these questions -- they
>shouldn't have to hunt all over for error code meanings.

Agreed. One option is the System Error DA, which I find immensely useful.
It's about 30K. What I question is whether it's worth putting that 30K into
your system heap permanently just in case you get a system error. Isn't it
better to have it there when you want to look at it but not having it take
up your RAM? (30K is the size of the suitcase, which I'm using as a broad
round number). Maybe a better option would be to bundle it (or a similar DA)
with the systems and not take up system space or (worse) ROMs that would be
out of date with every release of software.

-- 

Chuq Von Rospach   <+>   chuq@apple.com   <+>   [This is myself speaking]

Rumour has it that Larry Wall, author of RN, is a finalist in the race for
the Nobel Peace Prize for his invention of the kill file.

wwtaroli@rodan.acs.syr.edu (Bill Taroli) (02/08/90)

In article <886@gistdev.gist.com> joe@gistdev.gist.com (Joe Brownlee) writes:
>In article <2820@cunixc.cc.columbia.edu> cmm1@cunixa.cc.columbia.edu
>(Christopher M Mauritz) writes:
>>What does this mean?  I keep getting System Error #03 and a crash [...]
>
>For a machine that is based on friendliness and ease of use, the the error
>handling capabilities of the Mac OS are dismal.  How many messages do we see
>here asking for info on bomb IDs, file I/O errors, or Sad Mac codes?  Doesn't
>that say something about this whole issue?  Wouldn't this be something that
>could be improved relatively easily?

Well, in defense of the Mac OS I would like to mention that I agree that the
issue of using space in the ROMs for static text simply for error messages
is important.  Yes, it would be nice to have a cute little message telling you
that the program you were just using ran out of memory (which would be cryptic
in itself since it doesn't tell you WHY, and shouldn't be expected to in my
opinion) but the cost/benefit ratio probably would suggest that it not be done.
That is, would you like Apple to wire in another ROM or two to add these
messages (thereby increasing the price, and with Apple's history this increase
would probably be substantial) and really not know much more than you did with
the numbers.  True, the textual message can be more revealing but only to a
certain extent.  Those people interested in knowing why the crash occured will
more than likely have the technical knowledge (and documentation) to figure the
error number out.  For those that don't, it probably doesn't matter... and it
shouldn't have to (which is the whole strategy behind the Mac).

Of course, this could lead to the question "If a non-technical user doesn't
need to know why a crash occured then why have any message appear at all?  Why
not just have the system restart?".  To this I would reply that it would likely
not do too much for the reliabilty rating of the Mac... would you like your
system to simply restart on its own after a crash without at least giving some
indication that a problem occured?  I know I wouldn't.  Of course, if more
people spent more time learning about program proving and metrics (and followed
Apple's recommendations more closely) then occurences such as these would be
less likely to occur.

Oh well, that's my two bytes.

Bill Taroli
WWTAROLI@RODAN.acs.syr.edu

--
*******************************************************************************
* Bill Taroli (WWTAROLI@RODAN.acs.syr.edu)    | "You can and must understand  *
* Syracuse University, Syracuse NY            | computers NOW!" -- Ted Nelson *
*******************************************************************************

barmar@think.com (Barry Margolin) (02/08/90)

In article <886@gistdev.gist.com> joe@gistdev.gist.com (Joe Brownlee) writes:
>The Mac interface has many features which make it superior to others, but
>when it comes to its error handling, I just don't think ID=03 is acceptable.

Chuq answered from the technical perspective.  I think it could also be
argued that this is reasonable human interface.

Most situations that result in bombs or sad macs involve aspects of the
system that are above the head of most computer users.  They have to do
with executing invalid opcodes, corruption of the heap, miscalling system
routines, etc.  The translations of these bomb id's are things like
"Segment Loader Error".  In general, the textual translation would be no
more meaningful to the user than the numeric one.  And so what if the user
knows what the error is?  There's still nothing he or she can do about it;
it's a bug in the program or OS.

What's worse, the user might think they understand the error if it were in
English.  However, this could be based on misinterpreting the technical
terms that would necessarily be included (unless you can think of
non-jargony ways to report the kinds of errors that result in bombs).
--
Barry Margolin, Thinking Machines Corp.

barmar@think.com
{uunet,harvard}!think!barmar

levin@bbn.com (Joel B Levin) (02/08/90)

In article <33777@news.Think.COM> barmar@think.com (Barry Margolin) writes:
|In article <886@gistdev.gist.com> joe@gistdev.gist.com (Joe Brownlee) writes:
|>The Mac interface has many features which make it superior to others, but
|>when it comes to its error handling, I just don't think ID=03 is acceptable.
|
|Chuq answered from the technical perspective.  I think it could also be
|argued that this is reasonable human interface.
|
|Most situations that result in bombs or sad macs involve aspects of the
|system that are above the head of most computer users.  . . .
|		 The translations of these bomb id's are things like
|"Segment Loader Error".  In general, the textual translation would be no
|more meaningful to the user than the numeric one. . .
|
|What's worse, the user might think they understand the error if it were in
|English. . .

This is all true, and I agree with it, but I think there is a
perception that the user would be happier with a message like "Bus
error" or "Segment not found" than with "System error 01".  It is
indeed not more useful to the user to see such a message, but it is
easier for the user to remember when getting help for the problem, and
I suspect it is psychologically more satisfying.  More documentation
for the necessarily arcane things like sadMacs should be in the back
of the Macintosh user manual, however.

If you are in a position to provide more useful information and help
(Larry's description of the MacApp error handling capability is an
excellent example) there is no excuse for not doing so, on the other
hand.  In a SysErr, this is generally not possible.  (And a well
written program reduces the odds of getting that far consdierably.)

	/JBL
=
Nets: levin@bbn.com  |  "There were sweetheart roses on Yancey Wilmerding's
 or {...}!bbn!levin  |  bureau that morning.  Wide-eyed and distraught, she
POTS: (617)873-3463  |  stood with all her faculties rooted to the floor."

johnt@seila.UUCP (john grant) (02/09/90)

	Granted it would be nice if the screen message was a little more
lucid, but failing this and in the meantime, why not just enclose a printed
copy with the machine.

	I know that this "reach for the bookshelf" solution is at best
suboptimal, but then just bickering about this (for how many years now?)
doesn't get us very far either.  For cheapness, how about a Teachtext document
that comes with the system update disks, then we could print our own ?


				John

freek@fwi.uva.nl (Freek Wiedijk) (02/09/90)

In article <51903@bbn.COM> levin@BBN.COM (Joel B Levin) writes:
>This is all true, and I agree with it, but I think there is a
>perception that the user would be happier with a message like "Bus
>error" or "Segment not found" than with "System error 01".

If your really think so: here is an INIT named Miner that replaces the
*very* obscure text "Sorry, a system error has occurred" by a *much
more* understandable explanation like "Bus error." :-)

Enclosed is a little application named Bomber that can be used to
generate an arbitrary bomb.  It will show how Miner affects the
messages in the bomb box.

Hope this helps,
Freek "the Pistol Major" Wiedijk                  Path: uunet!fwi.uva.nl!freek
#P:+/ = #+/P?*+/ = i<<*+/P?*+/ = +/i<<**P?*+/ = +/(i<<*P?)*+/ = +/+/(i<<*P?)**

-------------------------------- cut here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J6!B!!*[%qqdUQ-!I,BJ'Y)!UYmB-)h(V#e1ZJ"!&-04b0H(!9RC&9
Fb#**!3)#!3dSF!Sl*)M!r#'#1DXJ+8UCX`[!S"Bq`i$222K8&f)$!'D8)!Je-++
2DU13!)33K#%%Z!!S![$PJ#M('J#UeDd))J3L-1%*4b#)%iJJc@%&4!Y3U"89#'+
'@#e*#+-f03$mX+YH%8343hJ#%ClN%NX84@!rqV@!!P!C![5#0i!!YN"8)"YG)%,
B0!*&Xb%4%'8(i"QjX[BdXMhXHH4jB!,a"dPf3S%%h@JM,LN!E`bJL3)e)3a`1F#
KDj!!"$HNJ3jMmJ!!!:
-------------------------------- cut here --------------------------------
--
Freek "the Pistol Major" Wiedijk                  Path: uunet!fwi.uva.nl!freek
#P:+/ = #+/P?*+/ = i<<*+/P?*+/ = +/i<<**P?*+/ = +/(i<<*P?)*+/ = +/+/(i<<*P?)**

denbeste@bgsuvax.UUCP (William C. DenBesten) (02/09/90)

In article <886@gistdev.gist.com> joe@gistdev.gist.com (Joe Brownlee) writes:
> The Mac interface has many features which make it superior to others, but
> when it comes to its error handling, I just don't think ID=03 is acceptable.

From article <33777@news.Think.COM>, by barmar@think.com (Barry Margolin):
>                 The translations of these bomb id's are things like
> "Segment Loader Error".  In general, the textual translation would be no
> more meaningful to the user than the numeric one.  And so what if the user
> knows what the error is?  There's still nothing he or she can do about it;
> it's a bug in the program or OS.

I think that the average user would find it helpful if the follwing
ones (for example) were reported textually.

	Memory Corupted  	id=28	DSStkNHeapHeap
	Memory Full	 	id=25	DSMemFullErr
	Application Damaged	id=16	DSBadLaunch
	Application Damaged	id=15	DSLoadErr

The average user has little use, however, for the difference between
an address error, bus error and illegal instruction (ids 1-3).
Multiple ids could be mapped to the same message.  Of course you would
still want to display the id so that those that cared about the
distinction still had the information available.



As a seperate issue, I would also like to see a trap that programmers
could call after any trap that would check all the appropiate return
codes and display an alert if the trap returned an error.

I end up writing the equivalant of a subset of this trap every time I
write a program.  I use it when a trap returns an unexpected error.
Telling the user about the error is all I can do at this point.  I use
two parameters for this sort of call. The first is a text message that
says where I am and the second is the error number.

My dream ReportError() has a textual message with limited scope and a way
to tell the computer what to do.  The choices would be:
	Ignore		- return from the trap, ignoring the error,
	Quit Application- call ExitToShell(),
	Attempt Recovery- call the ResumeProc if the application set it.
Retry would be nice but not possible since you have no way of knowing
what was just done.

As an example, the file manager's text could be limited to choosing
one of the following:
	Disk is full,
	Disk is damaged
	Can't open file,
	Can't read file,
	Can't write file,
	File Manager Error.

Limiting it this much would probably mean 50 distinct messages, which
would occupy probably 1K.  Just listing the problem would probably be
the usual case.

-- 
William C. DenBesten   is   denbeste@bgsu.edu  or   denbesten@bgsuopie.bitnet

isle@eleazar.dartmouth.edu (Ken Hancock) (02/09/90)

In article <5415@bgsuvax.UUCP> denbeste@bgsuvax.UUCP (William C. DenBesten) writes:
>I think that the average user would find it helpful if the follwing
>ones (for example) were reported textually.
>
>	Memory Corupted  	id=28	DSStkNHeapHeap

Ok, I'll bite.  "Uh-oh...the memory in my computer is bad.  Does that
mean I have to have my Mac repaired."
(Don't laugh...that's exactly what some people would thing...)

>	Memory Full	 	id=25	DSMemFullErr
>	Application Damaged	id=16	DSBadLaunch
>	Application Damaged	id=15	DSLoadErr

These errors, as with most, can be generated by other things going wrong
so that the System really doesn't know what's going on... in many cases
the ID of the System Error is completely irrelevant as to why it happened.

Ken


--
Ken Hancock '90            | DISCLAIMER: I'm graduating and looking for
Consultant                 |             a job, so I'll stand by my words.
Computer Resource Center   |==============================================
Dartmouth College          | EMAIL: isle@eleazar.dartmouth.edu

CHRIS.PARSON@f54.n382.z1.FIDONET.ORG (CHRIS PARSON) (02/09/90)

        I have the system error DA, and generally don't find it all that
usefull.  After all,  "System Error ID#08" when decoded means "Sysrequest
failed at Doomfrazzle" ( or something similar ) so since I didn't DESIGN
the thing it adds no more info to my pointy little head.
/s
 
--  
CHRIS PARSON via cmhGate - Net 226 fido<=>uucp gateway Col, OH
UUCP: ...!osu-cis!n8emr!cmhgate!382!54!CHRIS.PARSON
INET: CHRIS.PARSON@f54.n382.z1.FIDONET.ORG

lsr@Apple.COM (Larry Rosenstein) (02/10/90)

In article <5415@bgsuvax.UUCP> denbeste@bgsuvax.UUCP (William C. 
DenBesten) writes:
>         Memory Corupted         id=28   DSStkNHeapHeap
>         Memory Full             id=25   DSMemFullErr
>         Application Damaged     id=16   DSBadLaunch
>         Application Damaged     id=15   DSLoadErr

MultiFinder does report Memory Full.  id=28 could be a stack overflow 
caused by a program loop or too much recursion, although the result is 
definitely corrupted memory.

id=16 might make sense, but I think id=15 means that a segment couldn't be 
loaded, which could be an application memory management error.

So it isn't easy to map the id codes to a meaningful error.

Larry Rosenstein, Apple Computer, Inc.
Object Specialist

Internet: lsr@Apple.com   UUCP: {nsc, sun}!apple!lsr
AppleLink: Rosenstein1

lsr@Apple.COM (Larry Rosenstein) (02/15/90)

In article <2017@rodan.acs.syr.edu> wwtaroli@rodan.acs.syr.edu (Bill Taroli) writes:
>
>Well, in defense of the Mac OS I would like to mention that I agree that the
>issue of using space in the ROMs for static text simply for error messages
>is important.  Yes, it would be nice to have a cute little message telling you

Not to mention that you would need a separate ROM for each localized version
of the Macintosh.  

-- 
		 Larry Rosenstein,  Object Specialist
 Apple Computer, Inc.  20525 Mariani Ave, MS 46-B  Cupertino, CA 95014
	    AppleLink:Rosenstein1    domain:lsr@Apple.COM
		UUCP:{sun,voder,nsc,decwrl}!apple!lsr