Public bug reported:

apport trunk r2483

If there is a kernel crash or oops, apport-gtk shows the "Ubuntu has
experienced an internal error" message:

        elif report_type == 'KernelCrash' or report_type == 'KernelOops':
    ...
            self.w('title_label').set_label('<big><b>%s</b></big>' %
                                            self.get_system_application_title())
    ...
    def get_system_application_title(self):
    ...
        else:
            if 'DistroRelease' not in self.report:
                self.report.add_os_info()
            t = _('Sorry, %s has experienced an internal error.') % 
self.report['DistroRelease']
        return t

This is appropriate for an oops, because the UI will appear shortly
afterward. But it isn't appropriate for a kernel crash, because Ubuntu
will have restarted since the error. In that case, it should instead
show the text "Ubuntu has restarted after experiencing an internal
error." <https://wiki.ubuntu.com/ErrorTracker#kernel-crash>

It may save time to fix bug 1043392 at the same time as this bug.

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- Kernel crash/oops shows confusing UI text
+ Kernel crash shows confusing UI text

** Description changed:

  apport trunk r2483
  
  If there is a kernel crash or oops, apport-gtk shows the "Ubuntu has
  experienced an internal error" message:
  
          elif report_type == 'KernelCrash' or report_type == 'KernelOops':
      ...
              self.w('title_label').set_label('<big><b>%s</b></big>' %
                                              
self.get_system_application_title())
      ...
      def get_system_application_title(self):
      ...
          else:
              if 'DistroRelease' not in self.report:
                  self.report.add_os_info()
              t = _('Sorry, %s has experienced an internal error.') % 
self.report['DistroRelease']
          return t
  
- This is likely to be confusing, because the error occurred in the
- previous Ubuntu session, not this one. It should instead show the text
- "Ubuntu has restarted after experiencing an internal error."
- <https://wiki.ubuntu.com/ErrorTracker#kernel-oops>
+ This is appropriate for an oops, because the UI will appear shortly
+ afterward. But it isn't appropriate for a kernel crash, because Ubuntu
+ will have restarted since the error. In that case, it should instead
+ show the text "Ubuntu has restarted after experiencing an internal
+ error." <https://wiki.ubuntu.com/ErrorTracker#kernel-oops>
  
  It may save time to fix bug 1043392 at the same time as this bug.

** Description changed:

  apport trunk r2483
  
  If there is a kernel crash or oops, apport-gtk shows the "Ubuntu has
  experienced an internal error" message:
  
-         elif report_type == 'KernelCrash' or report_type == 'KernelOops':
-     ...
-             self.w('title_label').set_label('<big><b>%s</b></big>' %
-                                             
self.get_system_application_title())
-     ...
-     def get_system_application_title(self):
-     ...
-         else:
-             if 'DistroRelease' not in self.report:
-                 self.report.add_os_info()
-             t = _('Sorry, %s has experienced an internal error.') % 
self.report['DistroRelease']
-         return t
+         elif report_type == 'KernelCrash' or report_type == 'KernelOops':
+     ...
+             self.w('title_label').set_label('<big><b>%s</b></big>' %
+                                             
self.get_system_application_title())
+     ...
+     def get_system_application_title(self):
+     ...
+         else:
+             if 'DistroRelease' not in self.report:
+                 self.report.add_os_info()
+             t = _('Sorry, %s has experienced an internal error.') % 
self.report['DistroRelease']
+         return t
  
  This is appropriate for an oops, because the UI will appear shortly
  afterward. But it isn't appropriate for a kernel crash, because Ubuntu
  will have restarted since the error. In that case, it should instead
  show the text "Ubuntu has restarted after experiencing an internal
- error." <https://wiki.ubuntu.com/ErrorTracker#kernel-oops>
+ error." <https://wiki.ubuntu.com/ErrorTracker#kernel-crash>
  
  It may save time to fix bug 1043392 at the same time as this bug.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1051891

Title:
  Kernel crash shows confusing UI text

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1051891/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to