Opened 8 years ago

Closed 8 years ago

#912 closed defect (fixed)

Saving image, Linux: "Inappropriate ioctl for device"

Reported by: Dan.Xie@… Owned by: Greg Couch
Priority: major Milestone:
Component: Input/Output Version:
Keywords: Cc: Tom Goddard
Blocked By: Blocking:
Notify when closed: Platform: Linux64 (X11)
Project: ChimeraX

Description

From: "Xie, Dan"
Subject: Re: Questions on 4D visualization using ChimeraX
Date: November 8, 2017 at 3:07:25 PM PST
To: Tom Goddard

Hi Tom,

...

When I tried to save the view (as a png or jpeg picture, for example), I always got error 25 "Inappropriate ioctl for device
". What does that mean? How can I export the 3D view as a figure?

...

Best,
Dan

Attachments (1)

graph_device_info.txt (24.9 KB ) - added by Dan.Xie@… 8 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (5)

comment:1 by Tom Goddard, 8 years ago

Platform: allLinux64 (X11)

Dan reports:
,.. I am running ChimeraX on Ubuntu 16.04. I have tried both File / Save... and the command save <destination path>. Both of them yielded that error, which I could not understand. I will try with the windows version.

Best,
Dan

From: Tom Goddard
Sent: Wednesday, November 8, 2017 4:10:52 PM
To: Xie, Dan
Subject: Re: Questions on 4D visualization using ChimeraX

Hi Dan,

The image saving error “Inappropriate ioctl…” is something to do with your system, it is linux right? We had this reported one other time on linux but the person never got back to us. So we don’t know how to reproduce it. What linux distribution are you using? Are you using the File / Save… dialog or the save command? Maybe the command won’t have this problem (e.g. “save ~/Desktop/someimage.png”).

Tom

comment:2 by Greg Couch, 8 years ago

Status: assignedfeedback

FYI, I don't have this problem when running the daily build on Ubuntu 17.10. But I agree that it should work on Ubuntu 16.04 too. I assume you're running a fully updated Ubuntu 16.04? And that is 16.04.3? And can you send us the which graphics device you're using (run "lspci | grep VGA" in a terminal) and what its capabilities are (run "glxinfo" in a terminal)? Many thanks, Greg

in reply to:  3 ; comment:3 by Dan.Xie@…, 8 years ago

Hi Greg,


Please find attached the output of the two commands in the text file. Thanks for taking care of this!


Best,

Dan

________________________________
From: ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
Sent: Thursday, November 9, 2017 1:22:20 PM
Cc: Xie, Dan; goddard@cgl.ucsf.edu; Couch, Gregory
Subject: Re: [ChimeraX] #912: Saving image, Linux: "Inappropriate ioctl for device"

#912: Saving image, Linux: "Inappropriate ioctl for device"
-----------------------------------+---------------------------
          Reporter:  Dan.Xie@…     |      Owner:  gregc
              Type:  defect        |     Status:  feedback
          Priority:  major         |  Milestone:
         Component:  Input/Output  |    Version:
        Resolution:                |   Keywords:
        Blocked By:                |   Blocking:
Notify when closed:                |   Platform:  Linux64 (X11)
           Project:  ChimeraX      |
-----------------------------------+---------------------------
Changes (by gregc):

 * status:  assigned => feedback


Comment:

 FYI, I don't have this problem when running the daily build on Ubuntu
 17.10.  But I agree that it should work on Ubuntu 16.04 too.  I assume
 you're running a fully updated Ubuntu 16.04?  And that is 16.04.3?  And
 can you send us the which graphics device you're using (run "lspci | grep
 VGA" in a terminal) and what its capabilities are (run "glxinfo" in a
 terminal)?  Many thanks, Greg

--
Ticket URL: <https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/912#comment:2>
ChimeraX <http://www.rbvi.ucsf.edu/chimerax/>
ChimeraX Issue Tracker

graph_device_info.txt

by Dan.Xie@…, 8 years ago

Attachment: graph_device_info.txt added

Added by email2trac

comment:4 by Greg Couch, 8 years ago

Resolution: fixed
Status: feedbackclosed

Reproduced. The bug is that Python's os.getlogin() fails on Ubuntu 16.04 and ChimeraX is not expecting it to fail. Fixed in the next successful daily build.

Note: See TracTickets for help on using tickets.