-
-
Notifications
You must be signed in to change notification settings - Fork 847
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
Failed OpenGL init on Switchable Graphics falls back to Software renderer where the font weight is too light #235
Comments
Your guess is correct , OpenGL init had failed, Also, your software renderer output is thinned out as described. These are the last few lines ... and after closing Hardware InfoLaptop HP Envy 17 j186nr In Windows-10, the hybrid driver system allows for running a program using either Display adaptor. When a program is run either way, the window is rendered to the final frame buffer as required by the OS/compositor. The context menu of the Windows-Explorer allows for running an .exe executable using either display adapters
Selecting the NVIDIA processor does render font weight correctly. There is a way in the NVIDIA control panel that lets set a default graphics adapter for a executable , so that one does not have to do it every time. For some stupid reason that isn't working right now. But right clicking and start manually each time does. However, OpenGL via the Intel HD graphics should not fail. Drivers: Never really had a driver issue with graphics on this laptop, and for my needs. So hesitant to fool around with the drivers. I trust HP/Microsoft to not go the beyond vendor delivered drivers and so hesitant to directly get NVidia's most advanced gaming drivers. Running OpenGLChecker https://sourceforge.net/projects/openglchecker/
Using NVIdia
Perhaps you're requiring some advanced OpenGL extension or a full subset, pardon me for the expression but way too much overkill for a terminal application. My knowledge here is shallow. your terminal seems to be still best, and u seem to be attempting a mux.
let me know what else I can collect. |
Thanks for the thorough info! I think there are a couple of things to tackle around this:
|
Your guess is again correct WezTerm-windows-20200517-122836-92c201c6 WezTerm-windows-20200608-102924-d979a63 WezTerm-windows-20200608-110940-3fb3a61 WezTerm-windows-20200620-160318-e00b076c If wezterm is run using NVidia graphics processor the font weight is correct as expected for all versions. I just found wezterm and started acquainting myself with it. So I'll keep an eye out for faster than usual depletion. |
I used wglinfo https://github.com/gkv311/wglinfo , to check and see if GL CMDs/ARBs/EXTs used in the code diff that you pointed to are present I think the intel-HD4600 GL-4.3 does not have two of them.
wglinfo_intel.log : wglinfo_nvidia.log: |
8f1f1a6 added support for probing for opengl extensions, and I thought that I had the fallback covered but it turned out that we were only falling back if one of the major extensions wasn't present. This commit adds a fallback for the case where things look ok at first glance, but where they fail at runtime for whatever reason. refs: #235
Thanks again for the extended information! What I think is causing the context creation failure is that we're asking for version 4.5 and the version available to your integrated GPU from the log file you shared is:
I did try setting the min version to 4.3 and running that locally on my nvidia based system, but while that worked for me, I'm not sure if that is "right". Instead, I think the key insight is that we don't strictly require a minimum version and what we're missing is properly falling back to the original more basic approach if we fail to initialize the extensions, so that is what ab1e83c should achieve. A build with that change should show up in ~15-20 minutes here: https://github.com/wez/wezterm/runs/820655363 |
The font weight is correct
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Describe the bug
The font weight appears too light.
As a comparison, I am trying to get the font to look just the way hyper.js default font does
A clear and concise description of what the bug is.
Environment (please complete the following information):
OS: [e.g. Linux X11, Linux Wayland, macOS, Windows]
Windows -10 V 2020.4 OS Build 19041.329
Version: please run
wezterm -V
and include its output herewezterm.exe -V
wezterm 20200620-160318-e00b076c
To Reproduce
Steps to reproduce the behavior.
Please include as much information as possible that can help to reproduce and
understand the issue; some pointers and suggestions are included here in this
template. You are empowered to include more or less information than is asked
for here!
Configuration
Be sure to include the relevant section(s) of your
wezterm.lua
configuration file.Expected behavior
A clear and concise description of what you expected to happen.
Font weight needs to be thicker but not as thick as a bold font.
Screenshots
If applicable, add screenshots to help explain your problem. Screenshots are most
![Screenshot (4)](https://user-images.githubusercontent.com/3323558/85913586-1a5e7780-b804-11ea-85d5-29841b89e47c.png)
appropriate for rendering issues.
notice the text in wezterm (below) is thinner than hyper.js (above)
There may be a second bug in there in hyper.js, where in the foreground text of the brighter color boxes aren't switched to black, but that is not an issue for wezterm, which is getting it right. The script is Hale Tom's https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/
Session Recording
NA
If the issue is with the way that escape sequences are processed it can be helpful
to capture the terminal output using the
wt-record
script to run
wezterm
and record a transcript. This requires thescript
utilityto be installed on your system (this is part of macOS and available in the
util-linux
package on linux systems).
In the example below a file named
20180225161026.tgz
is produced. Please attach thatfile to this issue, or if it contains private or sensitive issue that you don't want the
public to see on GitHub, please find some other way to get that file to a project
contributor (perhaps Dropbox or email?).
You can use
wt-replay 20180225161026.tgz
to replay that file.wt-record
can only record the terminal output; it cannot record the input events goingin to the terminal, so if you are having an issue with input, please be sure to describe
it below!
Additional context
NA
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: