texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.74k stars 344 forks source link

v2.12.14 crashing on OSX 10.11.6 #453

Open BasicBaer opened 5 years ago

BasicBaer commented 5 years ago

TexStudio crashes, somtimes spantaniously, but also when trying to use the internal PDF viewer.

Environment

Was using the DMG provided by the project.

Additional Information

See attached crash reports: texstudio-crashreports.tar.gz

sunderme commented 5 years ago

I am guessing that you are using an older mac ? See also comment for downloading osx dmg: "The other build is optimized for current CPUs. Older macintosh (older than 2011 and older OSX) please use homebew and compile txs yourself on your machine."

timhoffm commented 5 years ago

@sunderme I'm not an OSX expert, but would it be possible to detect older Macs and gracefully exit with an appropirate message?

sunderme commented 5 years ago

i don‘t know how ...

timhoffm commented 5 years ago

Could we check this in main()? Or is that already too late?

BasicBaer commented 5 years ago

Beforehand: The original assessment was correct, the problem was my rather old MacBook. Building TexStudio in macports solved the problem.

That, of course, isn't something anybody can do. But then I'd guess that those people also don't use TeX.

Could we check this https://apple.stackexchange.com/a/299540 in |main()|?

You could. Or use the sysctl (3) call to get the value. Question is if that helps anybody.

Maybe a better approachs would be so see if binaries compiled for old platforms would run without too much performance penalty on new systems. Because then a better solution would be to build with a command set limited to older CPUs and avoid the problem altogether.

timhoffm commented 5 years ago

You could. Or use the sysctl (3) call to get the value. Question is if that helps anybody.

At least, they would get the information that this TXS version executable is not meant to run on their CPU and can use build their own or use an older version of TXS. That's far better than just crashing.

I cannot judge on the feasibility and performance impact on the compilation for older platforms.