After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698806 - Side Pane toggle resizes window to default size
Side Pane toggle resizes window to default size
Status: RESOLVED DUPLICATE of bug 696882
Product: evince
Classification: Core
Component: general
3.8.x
Other Linux
: Normal minor
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-25 00:14 UTC by aatdark
Modified: 2013-04-28 12:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debuglog of evince git master version (19.49 KB, text/plain)
2013-04-25 01:36 UTC, aatdark
Details

Description aatdark 2013-04-25 00:14:38 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
Comment 1 aatdark 2013-04-25 00:25:18 UTC
this also leads to the following bug:
evince does not remember the last size it used. It always opens in default size.
Comment 2 Germán Poo-Caamaño 2013-04-25 00:50:13 UTC
(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.
Comment 3 aatdark 2013-04-25 01:36:33 UTC
Created attachment 242386 [details]
debuglog of evince git master version
Comment 4 aatdark 2013-04-25 01:37:19 UTC
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.
Comment 5 aatdark 2013-04-25 23:35:22 UTC
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.
Comment 6 lazork 2013-04-27 22:21:09 UTC
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
Comment 7 aatdark 2013-04-28 00:49:18 UTC
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
Comment 8 aatdark 2013-04-28 01:57:31 UTC
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?
Comment 9 Germán Poo-Caamaño 2013-04-28 05:30:46 UTC
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.
Comment 10 Germán Poo-Caamaño 2013-04-28 05:37:28 UTC
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
Comment 11 aatdark 2013-04-28 11:47:25 UTC
  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
Comment 12 aatdark 2013-04-28 12:19:40 UTC
i think i found the correct bugreport. Thanks for looking into this.

*** This bug has been marked as a duplicate of bug 696882 ***