Bug #3423
show_lightcurve.py segmentation fault
Status: | Closed | Start date: | 10/29/2020 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | Knödlseder Jürgen | % Done: | 100% | |
Category: | - | |||
Target version: | 1.7.3 | |||
Duration: |
Description
On Ubuntu computers run of show_lightcurve.py (using ctools 1.7.2) leads to a segmentation fault. The easy solution for this probem is to import mathplotlib before the gammalib.
Recurrence
No recurrence.
Related issues
History
#1 Updated by Knödlseder Jürgen about 4 years ago
Could you please specify the Ubuntu version, and also whether you use the Ubuntu Python or a special installation (e.g. conda)?
#2 Updated by Knödlseder Jürgen about 4 years ago
Masha:
I’ve used
Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-178-generic x86_64)
and it was a conda installation.
If the mathplotlib is imported after gammalib than the crash happens just at the moment of the mathplotlib import.
To pin the problem more precisely, the crash happens if I do e.g:
import gammalib
import matplotlib.pyplot as plt
plt.figure()
This is what is used in show_lightcurve.py
Everything works fine if I import the matplotlib.pyplot first (before gammalib)
This problem happens under Ubuntu 16.04.6 both with conda installed Python 2.7.15 and Python 3.7.3
There is no such a problem for Mac.
#3 Updated by Knödlseder Jürgen almost 4 years ago
- Status changed from New to In Progress
- Assigned To set to Knödlseder Jürgen
- Target version set to 1.7.3
- % Done changed from 0 to 50
I inverted the import as suggested.
#4 Updated by Knödlseder Jürgen almost 4 years ago
- Related to Bug #3260: Bug with $CTOOLS/share/examples/python/show_residuals.py added
#5 Updated by Knödlseder Jürgen almost 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100