GNOME Bugzilla – Bug 698806
Side Pane toggle resizes window to default size
Last modified: 2013-04-28 12:19:40 UTC
1. Resize evince to an other size than it was initially shown 2. press F9 (toogle side pane) 3. watch window resize to default size. (pressing F9 again does not shrink the window further) GNOME Document Viewer 3.8.0 on ArchLinux x86-64
this also leads to the following bug: evince does not remember the last size it used. It always opens in default size.
(In reply to comment #0) > 1. Resize evince to an other size than it was initially shown > 2. press F9 (toogle side pane) > 3. watch window resize to default size. > (pressing F9 again does not shrink the window further) After following 1 and 2, nothing happens here. The window size stays the same. (In reply to comment #1) > this also leads to the following bug: > evince does not remember the last size it used. It always opens in default > size. The window's setting is stored per document.
Created attachment 242386 [details] debuglog of evince git master version
also checked the current git version (513d449be4c42...) Compiled with: ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/evince --enable-debug executed with: (i can reproduce with every pdf) % EV_DEBUG_JOBS=1 shell/evince /tmp/test.pdf i have attached the debug log.
i can confirm that this bug poped up while upgrading from 3.6.1 -> 3.8.0 i have written some debug statements in ev-window.c and i found out: when i resize the window to 1135 x 818 then close evince and open it again with the same pdf, i see the following debug output: .. XXXXX window_configure_event_cb width 1135 height 818 <-- correct remembered size ev-jobs.c:691 (ev_job_render_new) page: 0 ev-job-scheduler.c:233 (ev_job_scheduler_push_job) EvJobRender pirority 0 ev-job-scheduler.c:96 (ev_scheduler_job_list_add) EvJobRender ev-job-scheduler.c:58 (ev_job_queue_push) EvJobRender priority 0 ev-job-scheduler.c:80 (ev_job_queue_get_next_unlocked) EvJobRender ev-job-scheduler.c:177 (ev_job_thread) EvJobRender ev-jobs.c:621 (ev_job_render_run) page: 0 (0x7fa0e80076c0) ev-jobs.c:292 (ev_job_succeeded) job EvJobRender (0x7fa0e80076c0) succeeded ev-jobs.c:189 (ev_job_emit_finished) EvJobRender (0x7fa0e80076c0) ev-job-scheduler.c:131 (ev_scheduler_job_destroy) EvJobRender ev-job-scheduler.c:109 (ev_scheduler_job_list_remove) EvJobRender ev-job-scheduler.c:80 (ev_job_queue_get_next_unlocked) No jobs in queue ev-jobs.c:172 (emit_finished) EvJobRender (0x7fa0e80076c0) ev-jobs.c:224 (ev_job_cancel) job EvJobRender (0x7fa0e80076c0) cancelled ev-jobs.c:594 (ev_job_render_dispose) page: 0 (0x7fa0e80076c0) XXXXX window_configure_event_cb width 600 height 600 <-- reset to default size so it looks like the correct width is remember but then the window is reset.
A similar thing happened to me after updating from 3.6 to 3.8: every time I open a new document the window gets resized to 600x600 (I can see the correct size only for a fraction of a second). For previously opened documents the resolution is correctly remembered. Also, F9 doesn't cause any problems for me, so I don't know if my situation is related to this bug
Maybe it is important: The position of every document is remembered correctly, but not the size (reset to 600x600) i guess the SidePane and Resize on open bugs are somehow related. i also reported this here: https://bugs.archlinux.org/task/34963
ok this issue is much broader: Also evolution does not remember its last size. For example if i select "View -> Layout -> Show toolbar" the window is also resized to 600x600. @devs Can you point out the component where to report this bug?
FWIW, all new documents are opened in a 600x600 window. https://git.gnome.org/browse/evince/tree/shell/ev-window.c#n7448 I do not know evolution code base. It could coincidence, it could be a behaviour in the window manager, or any other explanation. Personally, I cannot reproduce it. With respect to the component, if none of the others are clear, then general is the default component. If the bug were specific, some developer or bug triager would fix it.
If you see the behaviour in a document that you opened before and changed its window size, then, please, you could copy and paste the output of: $ gvfs-info path/to/document.pdf | grep evince
metadata::evince::continuous: 1 metadata::evince::dual-page: 0 metadata::evince::dual-page-odd-left: 0 metadata::evince::fullscreen: 0 metadata::evince::inverted-colors: 0 metadata::evince::page: 1 metadata::evince::sidebar_page: links metadata::evince::sidebar_size: 170 metadata::evince::sidebar_visibility: 0 metadata::evince::sizing_mode: free metadata::evince::window_maximized: 0 metadata::evince::zoom: 1.031797857562454 metadata::evince::window_width: 1815 metadata::evince::window_height: 763 metadata::evince::window_x: 681 metadata::evince::window_y: 289
i think i found the correct bugreport. Thanks for looking into this. *** This bug has been marked as a duplicate of bug 696882 ***