Opened 8 years ago

Closed 8 years ago

#889 closed defect (fixed)

GUI not resizing

Reported by: reichow@… Owned by: Eric Pettersen
Priority: normal Milestone:
Component: Sessions Version:
Keywords: Cc: Tom Goddard, Greg Couch
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Hello,

I have just discovered ChimeraX and started playing around with the daily
build (MacOSX) - it is wonderful!   However, after working normally for a
few sessions - now the GUI interface opens with very large dimensions
(larger than the screen on my computer), and the width can not be resized
(e.g., by grabbing the edge of the GUI and dragging with mouse).  Of note,
the hight is adjustable, but not the width.

Of additional note - the issue first occurred while recording a movie. I
noticed during the recording, that the image frames in the viewing window
became zoomed in very far (as compared to the view point within the gui
prior to starting record). Then after quitting the program and trying to
re-start the session, the entire GUI was enlarged and not able to fix it.

I have tried starting a new session, also a different session that was
working properly, and I have tried a re-install, but none of these attempts
fixed the problem.

Any further suggestions would be great!

Thanks,
SR

-- 
*––––––––––––––––––––––––––**––––**–**–*
*Steve Reichow, PhD*

Assistant Professor
Department of Chemistry
Portland State University
Portland, OR 97201

503-725-7766 - office
503-725-7706 - lab

*www.pdx.edu/reichowlab <http://www.pdx.edu/reichowlab>*
------------------------------------------------------
Affiliate Assistant Professor
Dept. Biochemistry & Molecular Biology
Oregon Health and Science University
*––––––––––––––––––––––––––**––––**–**–*

Attachments (2)

screenshot1.tiff (146.7 KB ) - added by reichow@… 8 years ago.
Added by email2trac
screenshot2.tiff (375.3 KB ) - added by reichow@… 8 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (16)

comment:1 by Eric Pettersen, 8 years ago

Cc: Tom Goddard Greg Couch added
Component: UnassignedSessions
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted

Hi Steve,

I don't suppose that this session was originally saved on a device with much higher resolution (e.g. Retina display) than the one you are restoring it on? It would helps us track down the problem if you could send me the session. Sending it directly to my email (pett@…) should work.
In the interim, if you edit ChimeraX.app/Contents/lib/python3.6/site-packages/chimerax/core/graphics/gsession.py, line 64 and insert a '#' in front of the window_size() call, then the session will not try to change the size of the graphics window when the session restores.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

comment:2 by Eric Pettersen, 8 years ago

Status: acceptedfeedback

comment:3 by Eric Pettersen, 8 years ago

Status: feedbackaccepted

Reply from Steve:

HI Eric, thanks for your response!

I have attached the session that started the reported issue... Although - I have since accidentally saved the session without any models open... However, it still opens up very large. As does any new session I try to start.

Also, to address your question. This work was all done on my laptop, and not on a different device.

I will make the fix to the /gsession.py file as you suggest.

Thanks again -
SR

comment:4 by Eric Pettersen, 8 years ago

I guess I find the "session" terminology ambiguous, so I have a few questions:

1) When you initially start up ChimeraX, does it start with a normal size or the weird wide size?

2) When you save (any) session from the normal size, it restores as the weird size?

3) You can never resize the width? (I can resize the width when I restore your session)

--Eric

in reply to:  5 ; comment:5 by reichow@…, 8 years ago

Hi Eric, see repsonses below:

*Response to Questions:*
 1) When you initially start up ChimeraX, does it start with a normal size
 or the weird wide size?


*- No, initial startup is very large GUI*
 2) When you save (any) session from the normal size, it restores as the
 weird size?


*- N/A, I have not been able to open any session at the normal size since
this issue has started.*
 3) You can never resize the width?  (I can resize the width when I restore
 your session)

*- Correct, I can never resize the width to a small dimension (I can make
it bigger, but not smaller).*



Also, I was not able to locate the gsession.py file as you instructed to
fix this issue...

*Instructions:*
edit ChimeraX.app/Contents/lib/python3.6/site-packages/chimerax/core/graphics/gsession.py,
line 64 and insert a '#' in front of the window_size() call

However, when I go to: ChimeraX.app/Contents/  There is not a /lib/ folder
in my directory (see screenshot1 attached).

I have found a /Resource/ folder within /Contents/ which leads me to the
/site-packages/ folder, but then there is no chimerax folder...  (see
screenshot2 attached).


On Wed, Oct 18, 2017 at 10:53 AM, ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu



screenshot1.tiff

screenshot2.tiff

by reichow@…, 8 years ago

Attachment: screenshot1.tiff added

Added by email2trac

by reichow@…, 8 years ago

Attachment: screenshot2.tiff added

Added by email2trac

comment:6 by Eric Pettersen, 8 years ago

I'll a more detailed response later, but briefly about not finding the file: you were looking in Chimera.app, not ChimeraX.app!

--Eric

comment:7 by Eric Pettersen, 8 years ago

Actually, if the interface is starting out that size, then I don't think my suggested change will actually help.

--Eric

comment:8 by Eric Pettersen, 8 years ago

Instead, edit:

ChimeraX.app/Contents/lib/python3.6/site-packages/chimerax/core/ui/gui.py

and on line 303 insert a '#' in front of the self.resize() call

Does that get ChimeraX to start up at a decent size? Also, is your system a single display or dual displays?

--Eric

in reply to:  11 comment:9 by reichow@…, 8 years ago

Hi Eric - thanks for catching my error!

I have tried both of the edits you suggest, but neither did anything to
correct the problem.

I have been working with just a single display (laptop).

On Wed, Oct 18, 2017 at 3:00 PM, ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
wrote:



in reply to:  12 comment:10 by Eric Pettersen, 8 years ago

Okay, run this command (at the Unix shell) and let me know what the output is:

plutil -p ~//Library/Preferences/edu.ucsf.cgl.ChimeraX.plist

Then remove that file (~//Library/Preferences/edu.ucsf.cgl.ChimeraX.plist) and let me know if that helps.

—Eric

comment:11 by Eric Pettersen, 8 years ago

Okay, we have a working theory as to what this problem is. Try removing this file and see if that makes things better:

~/Library/Caches/ChimeraX/command line
(there's a space in the file name, so you will either have to put quotes around it or remove it with the Finder)

--Eric

comment:12 by Eric Pettersen, 8 years ago

Status: acceptedfeedback

in reply to:  15 comment:13 by reichow@…, 8 years ago

That was it, wonderful!

...I am excited to get back to playing with all the new ChimeraX features -
thanks for your time & effort on this!!

Cheers-
SR

On Thu, Oct 19, 2017 at 3:54 PM, ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
wrote:



comment:14 by Eric Pettersen, 8 years ago

Resolution: fixed
Status: feedbackclosed

Glad that worked!

--Eric

Note: See TracTickets for help on using tickets.