Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error opening tex file #826

Closed
rickhev1 opened this issue Sep 4, 2017 · 5 comments
Closed

Error opening tex file #826

rickhev1 opened this issue Sep 4, 2017 · 5 comments

Comments

@rickhev1
Copy link

rickhev1 commented Sep 4, 2017

Steps to reproduce the problem:

  1. change the attached file type from txt to tex.
  2. open the file

Expected output: successful open

Actual output: opens with error msg:

"Layout Problem. A problem occured (sic) while laying out the loaded document in the editor. This is caused by an issue in the underlying Qt framework and can cause TeXworks to crash under certain circumstances. The symptoms of this problem are hidden or overlapping lines. To work around this, please try one of the following: -) Turn syntax highlighting off and on -) Turn line numbers off and on -) Resize the windows We are sorry for the inconvenience"

TeXworks version: 0.6.2 (MiKTeX 2.9.6361). same problem with both 64-bit & 32-bit versions.
TeXworks obtained from: MiKTeX
Operating system: Windows 10, Creators Update

Please provide any additional information below: I tried all the things the msg. said. I tried reinstalling MiKTex using the 32-bit version. None of that worked. If I split the file into two pieces, each opens without error.
problem.txt

@stloeffler
Copy link
Member

Could you please retry with the latest development build obtainable from Bintray? The file seems to work for me, but in this particular case this could be related to the computer hardware and usage.
Actually, this seems to be a duplicate of #469, which means it's a good test if b5db8e6 helped or not.

@rickhev1
Copy link
Author

rickhev1 commented Sep 6, 2017 via email

@stloeffler
Copy link
Member

Thanks for testing!

  1. No, you must not uninstall MiKTeX, or else you won't have the underlying (La)TeX binaries, packages, etc. You could uninstall MiKTeX's TeXworks, but even that is not necessary I think as both versions (MiKTeX and Bintray) should be able to coexist peacefully. Just update which TeXworks is used for opening tex files and you should be good.

  2. No, on Bintray there is currently only a 32bit version, which does work fine on 64bit Windows however.

Regarding #469: the symptom you described (the dialog box) was implemented to try to work around #469, so I do believe that the two issues had the same underlying technical cause (line numbers etc. are just an effect of that).

b5db8e6 is the reference for the code change in which this particular bug was fixed - I included this mostly to remember it myself. 3939d19 is newer (though that is not readily obvious from the value itself) and already includes the relevant changes.

@AlainAtom
Copy link

I (re)installed MikTeX this night and downloaded the last version of TeXworks on Bintray (today 18/04/2018, the last version is of 28/03/2018). This is on my Asus transformer mini (Intel Atom).
I opened a TeX file and got the Layout Problem message (now in French). I had previously tried to open the same file with other encondings, removing parts, etc. I always have the message. This is a Plain Tex file from my Mac, written with TexShop, with some accents (but once I removed the part with accents and had the message anyway). I also tried with another file, shorter, and I didn't have the problem.

@rickhev1
Copy link
Author

@AlainAtom Just wanted to mention that this issue is closed. I have another open one like it (#831). The problem occurs only with large files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants