MorphOS freezing: what to report?
  • Order of the Butterfly
    Order of the Butterfly
    mihailod
    Posts: 170 from 2010/1/8
    MorphOS froze three times on me in the last couple of days:

    - first time, I don't exactly remember what I was doing
    - second time, this morning, during the boot, the boot screen just stayed forever
    - third time, just minutes ago, I was dragging and dropping a file

    Questions:

    - if I start reporting these as bugs, is there any log file I should include so you can somwhow at least try to decypher what happened?
    - is there a magical combination of keys or something which can bring up some kind of task-manager so I can see what process is the offending one and kill it?
    - if not, is there a way to include that as a feature?
  • »18.01.10 - 04:50
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    osco
    Posts: 680 from 2009/10/21
    From: Boston, USA
    YOU are using it too much! :-D :-D :-D :-D
    Mac Mini 1.5GHz, 1G, 250G Drive, Apple Cinema Display, MorphOS 3.1 registered, MacOS 10 PowerBook (5,8) 1.67Hz, 2G, 80G Drive,........Waiting
    PowerBook (5,8) 1.67Hz, 2G, 40G MorphOS 3.1 unregisterd
  • »18.01.10 - 05:01
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > is there a magical combination of keys or something which can bring
    > up some kind of task-manager so I can see what process is the offending one

    TaskManager application is in Sys:Utilities.
  • »18.01.10 - 05:16
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    mihailod
    Posts: 170 from 2010/1/8
    > TaskManager application is in Sys:Utilities.

    How is it gonna behave if the system freezes? Does it show what process is frozen? Does it have higher priority than everything else so I can still break the process or is it going to be unresponsive as the rest of the system?

    Will try all this the next time it happens. I guess first thing is to have it running all the time (that's why I asked about a combination of keys, something like Windows has).

    Do you maybe know anything about which logs might be relevant and where they are?
  • »18.01.10 - 05:24
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > How is it gonna behave if the system freezes?

    If the whole system freezes so that it is effectively halted, you can only reboot.

    > Does it show what process is frozen?

    Yes.

    > Does it have higher priority than everything else so I can still break the
    > process or is it going to be unresponsive as the rest of the system?

    By default the TaskManager runs with a priority of 1. To see how that compares to other system tasks you just have to open TaskManager. The third column shows the tasks' priority. If a stuck task is eating up CPU time the TaskManager will be as slow as any other program running with the same priority.

    > Do you maybe know anything about which logs might be relevant and
    > where they are?

    ------------------------------
    Q: I encountered a bug. After reporting it, I was asked to use the ramdebug boot parameter and send a debug log file. What do I need to do exactly?
    A: Enter 'getramdebuglog ram:morphos.log' in a shell window and send the newly created file named morphos.log, which is to be found in your Ram Disk, to the developer.
    [...]
    Q: Can the ramdebug be made reset resident?
    A: You can use the additional boot arguments rds (ramdebugsize) and rdo (ramdebugoffset) to modify internal settings. Ramdebug does not survive a reset when it is located in the first 32MB of ram (i.e. it will be overwritten by the firmware)
    Example:
    > boot boot.img ramdebug rdo=33555456
    If you type the above, this will result in the Ramdebug log surviving a reset on Pegasos computers by moving its buffer outside the first 32MB of RAM. Of course, this implies that sufficient memory is available to do so.
    ------------------------------
    http://www.morphos-team.net/faq.html
  • »18.01.10 - 05:42
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    mihailod
    Posts: 170 from 2010/1/8
    OK I remember seeing this now. IMHO, this should be more streamlined so that any newbie can immediatelly report crashes and freezes, otherwise you might lose a great opportunity to see some rare bugs in action.

    I will try to follow the instructions but:

    - do the exact the same steps apply in my case? (random freezes)
    - do they apply to Mac Mini too?
    - since I did not execute any commands, does that mean that the log information is lost forever since it was not made it resident and that I need to execute those commands, wait for another freeze and only then send the log?

    Basically, the holy grail here, and therefore a feature request :-), is to detect any unclean shutdown (hard reset) and, on the very next startup, ask user whether to automatically file a bug report and automatically collect all the logs like now you do for the sysconfig. I think this would result with some interesting logs to play with... Just my humble opinion.
  • »18.01.10 - 06:02
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    if I start reporting these as bugs

    The first thing before submitting a bug is to make it reproducable, so a sequence of events making the bug happening everytime should be determined.

    [ Edited by Krashan on 2010/1/18 7:08 ]
  • »18.01.10 - 06:04
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    mihailod
    Posts: 170 from 2010/1/8
    > make it reproducable

    QA 101, of course. However, the most interesting and the deepest bugs are sometimes these edge cases when nobody knows what happened but the logs don't lie ;-)
  • »18.01.10 - 06:12
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Unfortunately on systems without separate address spaces for processes (like MorphOS is), such random bugs are usually caused by 3-rd party applications trashing memory.
  • »18.01.10 - 07:22
    Profile Visit Website
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    And when you take new 3rd party progams in use, it's good to check ramdebuglog few times when using it (even though it seems to work ok) to see it doesn't do anything suspicious. Because badly behaving programs usually hit in the log before crashing, logs obtained before any possible system lockup can be useful.

    The easiest way to see the log is to enable debug sbar module and click "show log" in it. It doesn't harm to check it once a while in normal use either. If there's been hit, you'll notice it. Log will be muuuch bigger than normally then :)
  • »18.01.10 - 08:06
    Profile Visit Website
  • MorphOS Developer
    Henes
    Posts: 507 from 2003/6/14
    The system should also be configured to pop up a window everytime an illegal access is detected (if the system is still alive to do it...).
  • »18.01.10 - 10:17
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    mihailod
    Posts: 170 from 2010/1/8
    @Krashan: got it: No memory protection (with all pros and cons) makes harder to point fingers to apps.

    @jPV: got it: It's good to be preemptive and check upfront.

    @Henes:
    > The system should also be configured to pop up a window
    > everytime an illegal access is detected (if the system is still alive to do it...).

    Are you saying to *me* to configure it like this (if so, I will dig tonight for this setting... arguably maybe it should behave by default like this) or are you making a mental note to *yourself* to include this in a future MorphOS version?
  • »18.01.10 - 21:04
    Profile
  • MorphOS Developer
    Henes
    Posts: 507 from 2003/6/14
    To you, of course :)
    I have no idea if the log server if enabled by default. If not, you can enable it in your boot line command (i.e. boot bootimgpath logserver). You can know all other arguments using the usual "?" btw.

    Edit: seems it is still not enabled and users miss all bugs catched by the os... Lame.


    [ Edited by Henes on 2010/1/19 1:19 ]
  • »18.01.10 - 23:01
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Without opening a new toipic MorphOS freezes....
    After the error block surprise, repaired with greta SFS Doctor prog, after a bunch of resets (!!) MorphOS starts: first trying to boot and when this happens "Ambient - Illegal thread" error, "Public Screen Manager - Illegal instruction". Then booting in normal Ambient screen with nothing beeing selectable (icons, bar and so on). I only tried to open debug log and this made Ambient totally freeze.
    I guess it's hard disk problem. I hope not mobo...
    Tomorrow I will try: a) changing hard disk; b) serial debug.
    C) ...installing MorphOS on PowerMac?!?... ahem... :-)
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »24.01.10 - 18:28
    Profile