Keck-DataReductionPipelines / MosfireDRP

http://keck-datareductionpipelines.github.io/MosfireDRP
10 stars 13 forks source link

Segmentation fault when oppening GUI window #109

Closed NicolasLaporte closed 6 years ago

NicolasLaporte commented 6 years ago

Sorry to bother you with this (stupid) question, but when I am trying to run the interactive wavelength calibration I got a Segmentation Fault error after the following steps : `objc[1548]: Class TKApplication is implemented in both /Users/nlaporte/anaconda/lib/libtk8.6.dylib and /usr/lib/libtk8.5.dylib. One of the two will be used. Which one is undefined.

objc[1548]: Class TKMenu is implemented in both /Users/nlaporte/anaconda/lib/libtk8.6.dylib and /usr/lib/libtk8.5.dylib. One of the two will be used. Which one is undefined.

objc[1548]: Class TKContentView is implemented in both /Users/nlaporte/anaconda/lib/libtk8.6.dylib and /usr/lib/libtk8.5.dylib. One of the two will be used. Which one is undefined.

objc[1548]: Class TKWindow is implemented in both /Users/nlaporte/anaconda/lib/libtk8.6.dylib and /usr/lib/libtk8.5.dylib. One of the two will be used. Which one is undefined.

2018-01-15 14:01:30,367 - MosfireDrpLog.

- INFO: 3.5.4 |Anaconda custom (64-bit)| (default, Nov 8 2017, 18:11:28) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] 2018-01-15 14:01:30,368 - MosfireDrpLog. - INFO: python version = 3.5.4 2018-01-15 14:01:30,368 - MosfireDrpLog. - INFO: numpy version = 1.11.1 2018-01-15 14:01:30,368 - MosfireDrpLog. - INFO: matplotlib version = 1.5.1 2018-01-15 14:01:30,368 - MosfireDrpLog. - INFO: astropy version = 1.2.1 2018-01-15 14:01:30,368 - MosfireDrpLog. - INFO: ccdproc version = 1.3.0.post1 2018-01-15 14:01:30,551 - Wavelength.fit_lambda_interactively - INFO: The wavelength files resolve to input file wave_stack_J_m180110_0222-0263.fits 2018-01-15 14:01:31,230 - Wavelength.fit_lambda_interactively - INFO: Started interactive solution 2018-01-15 14:01:31,325 - Wavelength. setup - INFO: CSU slits [1, 2, 3, 4, 5] acting as slit number 3 2018-01-15 14:01:31,325 - Wavelength. setup - INFO: Extracting at 1924 2018-01-15 14:01:31,387 - Wavelength. setup - INFO: Launching graphics display. Segmentation fault ` Do you have any idea why ? Cheers, Nicolas
lucarizzi commented 6 years ago

Hi Nicolas I am afraid that this is not a mosfire DRP problem, but rather a problem with the Tk backend.

It is widely reported on the internet. Just google the error that you see at the beginning: "Class TKApplication is implemented in both"

To see if the error is really related to Tk, try this: $ python

import matplotlib matplotlib.use('TkAgg') from matplotlib import pyplot as plt ( you should see the error here ) plt.plot([1,2,3], [1,2,3]) [<matplotlib.lines.Line2D object at 0x111e0f588>] plt.show() ( here you should see the segmentation fault )

It doesn't have a trivial solution. You might want to google the problem and see how it has been solved by a number of users. How recent is your conda installation? I actually thought that the problem has been solved recently, but I am not 100% sure.

Another temporary solution would be to switch to a different backend, such as Qt4: Find the line in the driver file that specifies the backend, and replace it with Qt4Agg.

Finally, if nothing works, and you need to get to your data quickly, disable the interactive fitting, and run the wavelength solution automatically.

NicolasLaporte commented 6 years ago

Dear Luca,

Many thanks for your mail,

I changed to Qt4Agg and now it works !

Cheers, Nicolas

From: lucarizzi notifications@github.com<mailto:notifications@github.com> Reply-To: Keck-DataReductionPipelines/MosfireDRP reply@reply.github.com<mailto:reply@reply.github.com> Date: Monday, 15 January 2018 at 15:32 To: Keck-DataReductionPipelines/MosfireDRP MosfireDRP@noreply.github.com<mailto:MosfireDRP@noreply.github.com> Cc: Nicolas Laporte n.laporte@ucl.ac.uk<mailto:n.laporte@ucl.ac.uk>, Author author@noreply.github.com<mailto:author@noreply.github.com> Subject: Re: [Keck-DataReductionPipelines/MosfireDRP] Segmentation fault when oppening GUI window (#109)

Hi Nicolas I am afraid that this is not a mosfire DRP problem, but rather a problem with the Tk backend.

It is widely reported on the internet. Just google the error that you see at the beginning: "Class TKApplication is implemented in both"

To see if the error is really related to Tk, try this: $ python

import matplotlib matplotlib.use('TkAgg') from matplotlib import pyplot as plt ( you should see the error here ) plt.plot([1,2,3], [1,2,3]) [<matplotlib.lines.Line2D object at 0x111e0f588>] plt.show() ( here you should see the segmentation fault )

It doesn't have a trivial solution. You might want to google the problem and see how it has been solved by a number of users. How recent is your conda installation? I actually thought that the problem has been solved recently, but I am not 100% sure.

Another temporary solution would be to switch to a different backend, such as Qt4: Find the line in the driver file that specifies the backend, and replace it with Qt4Agg.

Finally, if nothing works, and you need to get to your data quickly, disable the interactive fitting, and run the wavelength solution automatically.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Keck-DataReductionPipelines/MosfireDRP/issues/109#issuecomment-357715094, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ah0K8OiZ1RhipmhIRBNH5l9lvNKKtGNlks5tK295gaJpZM4Redz6.