diff --git a/OOMAnalyser.html b/OOMAnalyser.html
index a90bad3..cb7d8c9 100644
--- a/OOMAnalyser.html
+++ b/OOMAnalyser.html
@@ -791,6 +791,7 @@ function goBack() {
Fix issue that prevents units from being copied
Show additional information in process table
Add sorting process table
+ Fix: Trigger process isn't part of process table
...
diff --git a/OOMAnalyser.py b/OOMAnalyser.py
index ac08293..61a1ae7 100644
--- a/OOMAnalyser.py
+++ b/OOMAnalyser.py
@@ -613,9 +613,17 @@ class OOMAnalyser(object):
self.results['_ps_index'] = ps_index
def _calc_pstable_values(self):
- """Set additional notes to processes listed in the process tableX"""
- self.results['_ps'][self.results['trigger_proc_pid']]['notes'] = 'trigger process'
- self.results['_ps'][self.results['killed_proc_pid']]['notes'] = 'killed process'
+ """Set additional notes to processes listed in the process table"""
+ tpid = self.results['trigger_proc_pid']
+ kpid = self.results['killed_proc_pid']
+
+ # sometimes the trigger process isn't part of the process table
+ if tpid in self.results['_ps']:
+ self.results['_ps'][tpid]['notes'] = 'trigger process'
+
+ # assume the killed process may also not part of the process table
+ if kpid in self.results['_ps']:
+ self.results['_ps'][kpid]['notes'] = 'killed process'
def _calc_trigger_process_values(self):
"""Calculate all values related with the trigger process"""