olivierkes / manuskript

A open-source tool for writers
http://www.theologeek.ch/manuskript
GNU General Public License v3.0
1.79k stars 236 forks source link

Full screen (distraction free) mode limits size of text #921

Open bertput opened 3 years ago

bertput commented 3 years ago

When I have an already open scene in outline or editor, and then switch to full-screen mode, I can only see some text. I cannot find a consistent point at which text is cut off: one scene has 1065 words and I see all of it, the other scene has 2112 words and I can only see the first 750 or so. I'm using "oldschool" but I don't think it matters which mode I use.

Manuskript version 0.10.0, Software Versions in Use: Python 3.8.10 PyQt 5.14.1 Qt 5.12.8

TheJackiMonster commented 3 years ago

Can you share a screenshot of the issue? Otherwise you could try using a newer version to check if the issue got fixed already.

bertput commented 3 years ago

I'm working on screen shots now. Thanks. I did find that the latest version in my ubuntu repo was v0.10.0 as I reported earlier. So I checked out the latest version from git and tried it; the problem remains. Although there is an interesting difference between c0.10.0 and v0.12.x (development branch): the distraction free mode will show the full text initially, but then if I cycle through the different modes (using the menu at the bottom-left), the text is truncated again. More accurately, it appears that there is just a failure to display it. The window appears to scroll but the text just disappears after a certain point. To reproduce this, just find a scene in your manuscript that has more than 1000 words in it (preferably 2000 words or so), then jump to distraction-free mode. Then cycle through each of the modes. I think it'll be pretty easy to reproduce, with just that info alone.

I also found that calling pandoc 2.5 is broken with the later versions, but I think I can just fix that locally. :-) Want a separate bug for that?

bertput commented 3 years ago

Hmm, this might be a simple page refresh issue. If I do the steps:

  1. navigate to a scene approx 2000 words in editor
  2. Switch to distraction free mode, see all the text.
  3. Now switch modes, see truncated text.
  4. But if I navigate to next page and back again in the new mode (using arrows on top left corner), All the text is displayed again.

This is inconvenient, but at least I trust distraction-free mode again! Maybe there is enough information here to help you debug this. Or if I can produce logs or something, I can do that too. I don't think I can produce enough screen shots to coherently demonstrate this issue :-)

This is github development branch v0.12.x.

Crenel commented 1 year ago

Pretty sure I'm seeing the same problem, first noticed in 0.9.x and now in 0.15.x after seeing how outdated my version was. Opening full-screen/distraction-free mode might or might not show the full text, often truncating a large amount. Changing the theme shows the text up to different cut-off points. At times I've been able to get the full text to show, but most of the time a large portion is missing. I took a look at the log and it all seems mundane except for this line:

2023-08-13 17:12:03,422 - qt.qpa.xcb - INFO - QXcbConnection: XCB error: 3 (BadWindow), sequence: 2744, resource id: 23146312, major code: 40 (TranslateCoords), minor code: 0

To give some context, this line appears above and below that line:

2023-08-13 17:09:46,662 - manuskript.ui.editors.fullScreenEditor - DEBUG - Leaving fullScreenEditor via keyPressEvent.

Everything else is basic file opening, reading, writing stuff.