Can't use WLSg at all, apps freeze or are not responsible

Environment
Windows build number: 10.0.22000.0
Your Distribution version: Ubuntu 21.04
Your WSLg version: Windows Subsystem for Linux WSLg Preview 1.0.26 (is this it?)

Steps to reproduce
Microsoft Edge:

sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main"
sudo apt install microsoft-edge-dev
microsoft-edge

It runs full screen, and everything works, the I try exiting full screen/resizing, and I can't input anything anymore. It just hangs and I need to close it.
Firefox:

sudo apt install firefox
firefox (or MOZ_ENABLE_WAYLAND=1 firefox)

It usually works, but it always freezes before I finish my work, it just stops accepting input then the WSL GUI Window can't be moved or closed. The only way to fix it is wsl --shutdown
Firefox WSL logs:
weston.log
pulseaudio.log
versions.txt.txt
Others
I also tried to run other GUI apps, they all evetually freeze.
Expected behavior
Not freeze.
Actual behavior
Freezing.

@alansikora, thanks for reporting the issue. Regarding to the issue with Edge, it sounds close to https://github.com/microsoft/wslg/issues/272, if you haven't tried, try disabling GPU or run in Wayland native mode. For firefox, I have not heard/experienced such issue. If it only freeze firefox, please take core dump of firefox, or if entire WSLg is freezing (including other Linux GUI app), please do below to take core dump of weston running system-distro.
1: From Windows's command prompt, run "wsl --system" (note it's double minus)
2: It launch bash in system-distro, type "tdnf install gdb"
3: then find pid of /usr/bin/weston from "ps -aux"
4: then "gcore [weston's pid]".
Thanks!

I also have the same problem with GitKraken. Every now and then it doesn't respond. I notice this because the context menus usually opened by right click no longer open. At that point the GUI stops responding and if I try to close the window it won't close. Only solution: wsl --shutdown.
I followed the steps described and this is the output shown by the console. Did I do this correctly?
[New LWP 19]
[New LWP 33]
[New LWP 34]
[New LWP 35]
[New LWP 36]
[New LWP 37]
[New LWP 38]
[New LWP 39]
[New LWP 40]
[New LWP 41]
[New LWP 42]
[New LWP 43]
[New LWP 44]
[New LWP 45]
[New LWP 46]
[New LWP 47]
[New LWP 48]
[New LWP 49]
[New LWP 50]
[New LWP 51]
[New LWP 52]
[New LWP 54]
[New LWP 55]
[New LWP 56]
[New LWP 57]
[New LWP 58]
[New LWP 59]
[New LWP 60]
[New LWP 61]
[New LWP 63]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
0x00007fb47af9fb6e in epoll_wait () from /lib/libc.so.6
warning: target file /proc/8/cmdline contained unexpected null characters
Saved corefile core.8
[Inferior 1 (process 8) detached]

I am having this same issue with Firefox on WSL on Windows 11

core.zip
@hideyukn88 here it is!

I'm seeing this is VS Code also. Usually my menus stop working first (top bar menus and right click menus), but eventually things will just completely freeze up.

I also have the same problem with GitKraken. Every now and then it doesn't respond. I notice this because the context menus usually opened by right click no longer open. At that point the GUI stops responding and if I try to close the window it won't close. Only solution: wsl --shutdown.
I followed the steps described and this is the output shown by the console. Did I do this correctly?
[New LWP 19]
[New LWP 33]
[New LWP 34]
[New LWP 35]
[New LWP 36]
[New LWP 37]
[New LWP 38]
[New LWP 39]
[New LWP 40]
[New LWP 41]
[New LWP 42]
[New LWP 43]
[New LWP 44]
[New LWP 45]
[New LWP 46]
[New LWP 47]
[New LWP 48]
[New LWP 49]
[New LWP 50]
[New LWP 51]
[New LWP 52]
[New LWP 54]
[New LWP 55]
[New LWP 56]
[New LWP 57]
[New LWP 58]
[New LWP 59]
[New LWP 60]
[New LWP 61]
[New LWP 63]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
0x00007fb47af9fb6e in epoll_wait () from /lib/libc.so.6
warning: target file /proc/8/cmdline contained unexpected null characters
Saved corefile core.8
[Inferior 1 (process 8) detached]

GitKraken does this for me too

@slagbat @f-liva, do you mean right click context menu is the one in below screen shot? I looked at core dump at https://github.com/microsoft/wslg/issues/643#issuecomment-1038761051, but unfortunately, I didn't find any clue.
@Poly-Pixel, @alansikora, I can't reproduce the issue with firefox or Edge either.

+1 facing the same issue on Win11 while running Firefox

For me, I can use GitKraken for a short period of time and then it'll just stop working. I won't be able to move or resize the window or use any of its features. This also happens with Chrome too so I think it's just a general issue for me. I'll try to take a core dump too.

@slagbat @f-liva, do you mean right click context menu is the one in below screen shot? I looked at core dump at #643 (comment), but unfortunately, I didn't find any clue.
@Poly-Pixel, @alansikora, I can't reproduce the issue with firefox or Edge either.

For me, I can use GitKraken for a short period of time and then it'll just stop working. I won't be able to move or resize the window or use any of its features. This also happens with Chrome too so I think it's just a general issue for me. I'll try to take a core dump too.

To me this seems to be a random effect which only occur on mouse right-clicks. I use Forefox, Exclipse and Smartgit in WSL-ubuntu. When the problem occures, all currently open wsl windows freeze and cannot be closed. The only way to get rid of them is to restart wsl.

I gave up WSLg and use Kali Linux Win-KeX and it works much better than wslg.

On further investigation this does only seem to happen to me when I right click for the context menu in Gitkraken and then select an option on said menu with a left click. Then everything freezes on all WSL GUI apps!

@slagbat, when everything freezes, would you please share the core file following instruction at https://github.com/microsoft/wslg/issues/643#issuecomment-1029279488? Thanks!

I have the same problem. I tried to take a core dump, but it hangs... I tried to kill the core dump and restart it without any result.
In a first "wsl --system" session:
# ps -aux | grep weston
wslg        11  0.9  0.3<PHONE_NUMBER>2 ?        Dl   09:39   0:23 /usr/bin/weston --backend=rdp-backend.so --xwayland --socket=wayland-0 --shell=rdprail-shell.so --logger-scopes=log,rdp-backend,rdprail-shell --log=/mnt/wslg/weston.log
wslg        22  0.0  0.0  15320  7692 ?        S    09:39   0:00 /usr/libexec/weston-rdprail-shell

# gcore 11 <-- It hangs...

I closed the terminal and reopen a new "wsl --system" session:
# gcore 11
warning: process 11 is already traced by process 3806
ptrace: Operation not permitted.
You can't do that without a process to debug.
The program is not being run.
gcore: failed to create core.11

# ps -aux | grep 3806
root      3806  0.0  0.1  23664 18540 ?        S    10:17   0:00 /usr/bin/gdb --nx --batch --readnever -ex set pagination off -ex set height 0 -ex set width 0 -ex attach 11 -ex gcore core.11 -ex detach -ex quit

# kill 3806

# ps -aux | grep 3806
root      3806  0.0  0.1  23664 18540 ?        S    10:17   0:00 /usr/bin/gdb --nx --batch --readnever -ex set pagination off -ex set height 0 -ex set width 0 -ex attach 11 -ex gcore core.11 -ex detach -ex quit

# kill -9 3806

# ps -aux | grep 3806

# gcore 11 <-- It hangs...

This issue has become the biggest blocker for continuing using WSLG for me. How can I contribute to debugging the root cause of this? It happens to me every time I try to resize my windows that are running in almost 4k resolution. I feel like there must be some overflow, race condition or bandwidth issue.

WSLG is also freezing for me from time to time, mostly using JetBrains's PhpStorm, but when it freezes, it is all WSLG apps and not only JetBrain (e.g. Files as well). Also gcore [weston pid] hangs with no output.

@ParhamG, would you please share output from dmesg? thanks!

@slagbat, when everything freezes, would you please share the core file following instruction at #643 (comment)? Thanks!

I've tried this again with the same result as before and that is getting the gcore output is frozen on the command line. Here's a screenshot for good measure:

I don't know if this important but I also has an XWayland process running:

I gave up WSLg and use Kali Linux Win-KeX and it works much better than wslg.

@yangli2014 thanks for the tip! I've been having tons of issues with WSLg, similar to those described in this issue. I'm spinning up on Win-KeX now. So far, so good.
https://www.kali.org/docs/wsl/win-kex/

Have the same issue with IntelliJ, only fix is wsl --shutdown unfortunately

I started using GWSL instead of WSLG and it works like a charm without ANY of WSLG issues. Give a try!

Not sure whether it is the same issue. When I use PHPStorm or Goland in wslg, they often stuck on mouse event when I open a new IDE window, but I still can use keyboard to control them. Only fix is wsl --shutdown.

@SFurnace  > Not sure whether it is the same issue. When I use PHPStorm or Goland in wslg, they often stuck on mouse event when I open a new IDE window, but I still can use keyboard to control them. Only fix is wsl --shutdown.
Same issue here, when I open PHPStorm/WebStorm it does not freeze but I can't do anything with my mouse, If I press "Tab" or run any keyboard shortcut the application will respond, but clicking on anything with my mouse will not work.
Tried on Ubuntu 20.04, 22.04 and 22.10.

I have the same issue, sometimes everything works fine for a whole day, sometimes it's a nightmare.
I'm using PHPStorm on Ubuntu 22.04 with docker.

@SFurnace, @lucasctd, @vermi0ffh, I have a few questions, when the mouse issue occurs, 1) does mouse  still work with other Linux GUI applications? 2) Is the PHPStorm IDE window maximized? 3) Do you see any mouse activity with xev or xtrace? thanks!

@SFurnace, @lucasctd, @vermi0ffh, I have a few questions, when the mouse issue occurs, 1) does mouse still work with other Linux GUI applications? 2) Is the PHPStorm IDE window maximized? 3) Do you see any mouse activity with xev or xtrace? thanks!

For me personally, once the issue happens all Linux GUI apps stop responding. I normally only have Gitkraken and Chrome running as Linux apps but both become unresponsive and I'm unable to close either of them.
I'm not sure how to see the mouse activity with xev or xtrace as I'm a bit of a Linux novice!

@slagbat, I'm feeling your case is different as I believe app won't respond on keyboard input either in your case, would you please share output from dmesg? thanks!

It looks like I have a really more stable WSLg recently. Since the begining of the week, no freeze at all.
I have some problems of stuck keys (I clic on a window, and a key I pressed keep repeating spontaneously. I juste press it a few times, and it stopped).
For the interface freeze, I removed some strange wacom driver present on my computer. It was an old driver (2009). Since it's removed, no more freeze (yet). I'll comment if it happens again, but maybe de problem is driver-related !

I observed that if you launch docker desktop and your containers before launching intellij (or phpstorm or whatever) the freeze it's less likely for everything to stop.
I am trying to keep a gedit window open while using intellij in order to check if all apps stop working or if just intellij does.

For me, it was not only freezes with PHPStorm but also other issues like menus not staying open and having to keep the mouse pressed down and then move to a submenu item and release it, and some other random issues. I switched back to WSLD+VcXsrv and that has been working perfectly fine.

I just had a freeze. Phpstorm was fullscreen, and I clicked the button to make it windowed. Just after that, it froze.
I tried to launch firefox from the prompt, it did not work.
Here is the dmesg of both the system vm and the ubuntu VM running PhpStorm :
ubuntu.dmesg.freeze.txt
system.dmesg.freeze.txt

Wslg is unusable on 32GB Dell xps - it kills my machine everything hangs.

🟢 I had the same problem and finally found a clean solution:

Follow this very easy tutorial to setup an X server on your machine: https://chuckdries.medium.com/installing-gitkraken-in-wsl-2-15bf6459f823 -> I personally skipped the firewall part, it took me 15 minutes max.

Open a cmd (Win+R), type shell:startup and put the config.xlaunch file that was created previously in the startup folder that opened. This will start your X server automatically on startup 👏

that's it, no more pain.

I have an Ubuntu distro: in my /home directory I added these 3 lines at the end of the .bashrc file:
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
export GDK_SCALE=1
alias gk='gitkraken' # Cadeau 🎁

The result is actually better than the wslg proposed by Windows, now your Linux apps eg: Gitkraken will use your usual Windows UI and resize/snap perfectly.
I did the change one week ago and I had ZERO issues since then while working 9 hours a day.
Before that, my Gitkraken would freeze at least once a day and I had to shutdown my WSL and painfully restart all my npm commands again.
Hopefully this solution works for you, commenting your results here would be cool 🎯
The X server is typically the provider of graphics resources and keyboard/mouse events to X clients, meaning that the X server is usually running on the computer in front of a human user, while the X client applications run anywhere on the network and communicate with the user's computer to request the rendering of ..

🟢 I had the same problem and finally found a brilliant solution:

Follow this very easy tutorial to setup an X server on your machine: https://chuckdries.medium.com/installing-gitkraken-in-wsl-2-15bf6459f823 -> I personally skipped the firewall part, it took me 15 minutes max.
Open a cmd shell (Win+R), type shell:startup and put the config.xlaunch file that was created previously in the startup folder that opened. This will execute the file automatically on startup, starting your X server👏
that's it, no more pain.

So in the end, in the /home directory of my Ubuntu file system I added 3 lines in the .bashrc: file :
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
export GDK_SCALE=1
alias gk='gitkraken' # Cadeau 🎁

The result is actually better than the wslg proposed by Windows, now your Linux apps eg: Gitkraken will use your usual Windows UI and resize/snap perfectly 👌 I did the change one week ago and I had ZERO issues since then while working 9 hours a day. Before that, my Gitkraken would freeze at least once a day and I had to shutdown my WSL. To then painfully restart all my npm commands again.
There's no reason this solution doesn't work for you, give it a try, Commenting your results here would be nice 🎯
ℹ The X server is typically the provider of graphics resources and keyboard/mouse events to X clients, meaning that the X server is usually running on the computer in front of a human user, while the X client applications run anywhere on the network and communicate with the user's computer to request the rendering of ..

I upgraded to Windows 11 to use WSLg, it wasn't available in Windows 10 before. And now I have to deal with this.

@JuradoBruno  Thanks for this. I have a question. I have configured the xserver as mentioned but when i launch the Linux apps on WSL2 it seems it still wslg is being involved since it is still freezing. How did you force the apps to use xserver?

I think Microsoft doesn't want to fix this issue. The WSL2 is designed to work in terminal mode. Microsoft doesn't want to drive the applications development of linux destop. So if you want to use WSL2, but only use it in terminal.

I think Microsoft doesn't want to fix this issue. The WSL2 is designed to work in terminal mode. Microsoft doesn't want to drive the applications development of linux destop. So if you want to use WSL2, but only use it in terminal.

Yeah I gave up as well. My use case was running a linux music app called sublime-music. Due to a very specific usecase, I needed to be able to run that. It does run but then it just hangs and nothing responds. All I can do it kill entire wsl2 for that reason only.
Anyone has any other ideas (short of running a full VM ) ?

Try Kali Linux as wsl2 distro

@xiy73986, @foinf, thanks for keep updating and we understand your frustration, and of course, we would like to address this issue, but due to luck of the scenario to reproduce in house, blocks us to investigate further. If you could share any clue, very much appreciated, thanks!

I gave up WSLg and use Kali Linux Win-KeX and it works much better than wslg.

Sorry to interrupt, but I'm using kex, too. But I can't seem to call the NVIDIA graphics card

Let me check my environment. I am using Nvidia too.
On Sun, Jan 7, 2024, 23:26 Nancy Harris @.***> wrote:

I gave up WSLg and use Kali Linux Win-KeX and it works much better than
wslg.
Sorry to interrupt, but I'm using kex, too. But I can't seem to call the
NVIDIA graphics card
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/wslg/issues/643#issuecomment-1880369142,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEXQGXAJEXB5DBSQEH24XDYNNYQXAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGAZTMOJRGQZA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Let me check my environment. I am using Nvidia too.
…
On Sun, Jan 7, 2024, 23:26 Nancy Harris @.> wrote: I gave up WSLg and use Kali Linux Win-KeX and it works much better than wslg. Sorry to interrupt, but I'm using kex, too. But I can't seem to call the NVIDIA graphics card — Reply to this email directly, view it on GitHub <#643 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEXQGXAJEXB5DBSQEH24XDYNNYQXAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGAZTMOJRGQZA . You are receiving this because you were mentioned.Message ID: @.>

Thank you very much for your time.
I just checked google chrome's video decoding capabilities and OpenGL support.
Here are my results.
❯ google-chrome
[5119:5214:0108/211915.737417:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[5119:5214:0108/211915.737665:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[5119:5214:0108/211915.737872:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[5155:5155:0108/211916.786292:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[5155:5155:0108/211916.786534:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[5155:5155:0108/211916.786622:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[5155:5155:0108/211916.787945:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[5155:5155:0108/211916.788489:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[5155:5155:0108/211916.788573:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[5155:5155:0108/211916.788688:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[5155:5155:0108/211916.788768:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[5155:5155:0108/211916.798631:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[5155:5155:0108/211916.798730:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[5155:5155:0108/211916.798819:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[5155:5155:0108/211916.799208:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[5155:5155:0108/211916.799277:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[5155:5155:0108/211916.799335:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[5155:5155:0108/211916.799398:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[5155:5155:0108/211916.799455:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[5155:5155:0108/211916.844923:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[5195:7:0108/211916.967385:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[5159:5164:0108/211917.270316:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
[5159:5164:0108/211917.557519:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
[5159:5164:0108/211920.058329:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
[5159:5164:0108/211920.309383:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
[5159:5164:0108/211920.364844:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_intel.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so supports Vulkan 1.1, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
Warning: Layer VK_LAYER_MESA_device_select uses API version 1.2 which is older than the application specified API version of 1.3. May cause issues.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.

[image: image.png]
On Mon, Jan 8, 2024 at 8:21 AM Nancy Harris @.***>
wrote:

Let me check my environment. I am using Nvidia too.
… <#m_-683449729158524969_>
On Sun, Jan 7, 2024, 23:26 Nancy Harris @.> wrote: I gave up WSLg and
use Kali Linux Win-KeX and it works much better than wslg. Sorry to
interrupt, but I'm using kex, too. But I can't seem to call the NVIDIA
graphics card — Reply to this email directly, view it on GitHub <#643
(comment)
https://github.com/microsoft/wslg/issues/643#issuecomment-1880369142>, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEXQGXAJEXB5DBSQEH24XDYNNYQXAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGAZTMOJRGQZA
https://github.com/notifications/unsubscribe-auth/ACEXQGXAJEXB5DBSQEH24XDYNNYQXAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGAZTMOJRGQZA
. You are receiving this because you were mentioned.Message ID: @.>
Thank you very much for your time.
I just checked google chrome's video decoding capabilities and OpenGL
support.
Here are my results.
❯ google-chrome
[5119:5214:0108/211915.737417:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[5119:5214:0108/211915.737665:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[5119:5214:0108/211915.737872:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[5155:5155:0108/211916.786292:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[5155:5155:0108/211916.786534:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[5155:5155:0108/211916.786622:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[5155:5155:0108/211916.787945:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[5155:5155:0108/211916.788489:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[5155:5155:0108/211916.788573:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[5155:5155:0108/211916.788688:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[5155:5155:0108/211916.788768:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[5155:5155:0108/211916.798631:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[5155:5155:0108/211916.798730:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[5155:5155:0108/211916.798819:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[5155:5155:0108/211916.799208:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Invalid visual ID requested.
[5155:5155:0108/211916.799277:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Invalid visual ID requested.
[5155:5155:0108/211916.799335:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[5155:5155:0108/211916.799398:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[5155:5155:0108/211916.799455:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[5155:5155:0108/211916.844923:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[5195:7:0108/211916.967385:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[5159:5164:0108/211917.270316:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
[5159:5164:0108/211917.557519:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
[5159:5164:0108/211920.058329:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
[5159:5164:0108/211920.309383:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
[5159:5164:0108/211920.364844:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -100
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_intel.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so supports Vulkan 1.1, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
Warning: Layer VK_LAYER_MESA_device_select uses API version 1.2 which is older than the application specified API version of 1.3. May cause issues.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
image.png (view on web)
https://github.com/microsoft/wslg/assets/49338067/55b3f8f3-cf20-41d1-87fe-70960d1c8e84
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/wslg/issues/643#issuecomment-1880995654,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEXQGX6CGFOKHIODC2O22TYNPXFDAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGA4TSNJWGU2A
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Yang Li
Kanata ON
Canada

@yangli2014 Sorry, the message I saw on github was [image: image.png] , not image. 😥

I uploaded the image in the github
On Mon, Jan 8, 2024 at 8:57 AM Nancy Harris @.***>
wrote:

@yangli2014 https://github.com/yangli2014 Sorry, the message I saw on
github was [image: image.png] , not image. 😥
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/wslg/issues/643#issuecomment-1881061420,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEXQGWQH5Z3Y6I2RBFHR5DYNP3LLAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGEYDMMJUGIYA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Yang Li
Kanata ON
Canada

Thank you very much. I can see that. It's pretty awesome. Could I please confirm how you started VcXsrv?

vcxsrv.exe -ac -multiwindow -clipboard
type google-chrome to start chrome
type url chrome://gpu then tap enter
Now I see the screenshot I uploaded earlier

my env
wsl:
❯ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

window:
(base) PS C:\Users\win> wsl -v
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2861

I will get back to you later. I start working now. I am in the Ontarion
Canada
On Mon, Jan 8, 2024 at 9:15 AM Nancy Harris @.***>
wrote:

[image: image]
https://private-user-images.githubusercontent.com/9009178/294926812-6d269cb8-5c76-4093-b929-330aee0d9dcc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDQ3MjMxMjMsIm5iZiI6MTcwNDcyMjgyMywicGF0aCI6Ii85MDA5MTc4LzI5NDkyNjgxMi02ZDI2OWNiOC01Yzc2LTQwOTMtYjkyOS0zMzBhZWUwZDlkY2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDEwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAxMDhUMTQwNzAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTNkNDI0OWZiMWUyZjA3ODJiOTczNTBkNmQ1OTBjMGEyYjZjNDAzZjIwYWM4ZjQyODg4NDM2MzFmNjk4YzgzOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.sugDloh0MBUAiPWc_zkGB6wY02XFCKazUMqbaeJArts
Thank you very much. I can see that. It's pretty awesome. Could I please
confirm how you started VcXsrv?

vcxsrv.exe -ac -multiwindow -clipboard
type google-chrome to start chrome
type url chrome://gpu then tap enter
Now I see the screenshot I uploaded earlier

my env
wsl:
❯ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
window:
(base) PS C:\Users\win> wsl -v
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2861
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/wslg/issues/643#issuecomment-1881093109,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEXQGS57LVXIYT23E7B5F3YNP5PXAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGEYDSMZRGA4Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Yang Li
Kanata ON
Canada

I will get back to you later. I start working now. I am in the Ontarion Canada
…
On Mon, Jan 8, 2024 at 9:15 AM Nancy Harris @.> wrote: [image: image] https://private-user-images.githubusercontent.com/9009178/294926812-6d269cb8-5c76-4093-b929-330aee0d9dcc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDQ3MjMxMjMsIm5iZiI6MTcwNDcyMjgyMywicGF0aCI6Ii85MDA5MTc4LzI5NDkyNjgxMi02ZDI2OWNiOC01Yzc2LTQwOTMtYjkyOS0zMzBhZWUwZDlkY2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDEwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAxMDhUMTQwNzAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTNkNDI0OWZiMWUyZjA3ODJiOTczNTBkNmQ1OTBjMGEyYjZjNDAzZjIwYWM4ZjQyODg4NDM2MzFmNjk4YzgzOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.sugDloh0MBUAiPWc_zkGB6wY02XFCKazUMqbaeJArts Thank you very much. I can see that. It's pretty awesome. Could I please confirm how you started VcXsrv? 1. vcxsrv.exe -ac -multiwindow -clipboard 2. type google-chrome to start chrome 3. type url chrome://gpu then tap enter 4. Now I see the screenshot I uploaded earlier my env wsl: ❯ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal window: (base) PS C:\Users\win> wsl -v WSL version: <IP_ADDRESS> Kernel version: <IP_ADDRESS>-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22621.2861 — Reply to this email directly, view it on GitHub <#643 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEXQGS57LVXIYT23E7B5F3YNP5PXAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGEYDSMZRGA4Q . You are receiving this because you were mentioned.Message ID: @.>
-- Yang Li Kanata ON Canada

Okay, thanks for your time. Good luck.

My system is Windows 11 Pro with WSL2
┌──(yang㉿t5810)-[~] └─$ cat /etc/os-release PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" VERSION_ID="2023.4" VERSION="2023.4" VERSION_CODENAME=kali-rolling ID=kali ID_LIKE=debian HOME_URL="https://www.kali.org/" SUPPORT_URL="https://forums.kali.org/" BUG_REPORT_URL="https://bugs.kali.org/" ANSI_COLOR="1;31"
`
C:\Cmder
wsl -l -v
NAME                   STATE           VERSION

kali-linux             Running         2
docker-desktop-data    Stopped         2
docker-desktop         Stopped         2
`

My system is Windows 11 Pro with WSL2
└─$ cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
VERSION_ID="2023.4"
VERSION="2023.4"
VERSION_CODENAME=kali-rolling
ID=kali
ID_LIKE=debian
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
ANSI_COLOR="1;31"

C:\Cmder
wsl -l -v
  NAME                   STATE           VERSION
* kali-linux             Running         2
  docker-desktop-data    Stopped         2
  docker-desktop         Stopped         2

I got it. Hardware acceleration cannot be turned on using seamless mode, and I have no problem using enhanced session.

I'm guessing if your seamless mode supports hardware acceleration, your chrome browser probably has a white ring around it, which should be displayed via wslg. In Task Manager, you can locate the display as msrdc.exe

Good to know. But why is your wsl showing ubuntu?
On Tue, Jan 9, 2024 at 12:53 AM Nancy Harris @.***>
wrote:

My system is Windows 11 Pro with WSL2
└─$ cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
VERSION_ID="2023.4"
VERSION="2023.4"
VERSION_CODENAME=kali-rolling
ID=kali
ID_LIKE=debian
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
ANSI_COLOR="1;31"
C:\Cmder
wsl -l -v
NAME                   STATE           VERSION

kali-linux             Running         2
docker-desktop-data    Stopped         2
docker-desktop         Stopped         2

I got it. Hardware acceleration cannot be turned on using seamless mode,
and I have no problem using enhanced session.
I'm guessing if your seamless mode supports hardware acceleration, your
chrome browser probably has a white ring around it, which should be
displayed via wslg. In Task Manager, you can locate the display as msrdc.exe
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/wslg/issues/643#issuecomment-1882452700,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACEXQGRUGLNTTL7DINYZUPTYNTLMVAVCNFSM5MZEBVR2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBYGI2DKMRXGAYA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Yang Li
Kanata ON
Canada

@yangli2014 Since my default development environment is Ubuntu wsl2, but after seeing your wsl environment and suspecting that Ubuntu does not support hardware acceleration, I also downloaded a kali test. It turns out the same is true for kali and Ubuntu. Only seamless Windows displayed through wslg have hardware decoding capabilities. In addition, enhanced mode and vnc mode using win-kex under kali linux also support hardware decoding.


Fix case for flex bundle inclusion

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (7b6f79d) 100.00% compared to head (e729c04) 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##              master       #17   +/-   ##
===========================================
  Coverage     100.00%   100.00%
  Complexity       218       218
===========================================
  Files             47        47
  Lines            603       603
===========================================
  Hits             603       603

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add workflow for MCR image build and publish.

This PR is Draft is for folks to see how the MCR publish workflow will look like and we will use under the hood we will be utilising OpenId Connect hence adhering to non-credit based OSS publishing mechanism.
Thanks heaps,
cc: @gambtho , @peterbom , @mattstam , @Ealianis Thanks. ❤🙏

Codecov Report

Merging #151 (4e6886d) into master (f1d8658) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #151   +/-   ##
=======================================
  Coverage   68.98%   68.98%
=======================================
  Files          11       11
  Lines         345      345
=======================================
  Hits          238      238
  Misses         85       85
  Partials       22       22

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1d8658...4e6886d. Read the comment docs.


The tensorflow training freezes for no reason

I run a deep learning training code written in tensorflow and it seems stuck at the following code:
history = model.fit(X_train_all, Y_train_all,
                        epochs=nb_epoch,
                        batch_size=batch_size,
                        validation_data=(X_test, Y_test),
                        # callbacks=[early_stopping, model_checkpoint],
                        # callbacks=[model_checkpoint, lr_callback],
                        callbacks=[model_checkpoint],
                        verbose=0)

I tried to look closely and found it actually stuck at
# coding=utf-8
def outer_factory():

    def inner_factory(ag__):

        def tf__rmse(y_true, y_pred):
            with ag__.FunctionScope('rmse', 'fscope', ag__.STD) as fscope:
                do_return = False
                retval_ = ag__.UndefinedReturnValue()
                try:
                    do_return = True
                    retval_ = (ag__.converted_call(ag__.ld(mean_squared_error), (ag__.ld(y_true), ag__.ld(y_pred)), None, fscope) ** 0.5)
                except:
                    do_return = False
                    raise
                return fscope.ret(retval_, do_return)
        return tf__rmse
    return inner_factory

The outputs:
training model...
/home/ubuntu/.local/lib/python3.6/site-packages/tensorflow/python/data/ops/dataset_ops.py:3504: UserWarning: Even though the tf.config.experimental_run_functions_eagerly option is set, this option does not apply to tf.data functions. tf.data functions are still traced and executed as graphs.
  "Even though the tf.config.experimental_run_functions_eagerly "
2022-03-18 07:54:21.572669: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)
2022-03-18 07:54:21.589590: I tensorflow/core/platform/profile_utils/cpu_utils.cc:112] CPU Frequency:<PHONE_NUMBER> Hz
2022-03-18 07:54:21.624242: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2022-03-18 07:54:23.469658: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2022-03-18 07:54:23.863409: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
/home/ubuntu/.local/lib/python3.6/site-packages/tensorflow/python/data/ops/dataset_ops.py:3504: UserWarning: Even though the tf.config.experimental_run_functions_eagerly option is set, this option does not apply to tf.data functions. tf.data functions are still traced and executed as graphs.
  "Even though the tf.config.experimental_run_functions_eagerly "

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): pip3 install tensorflow ==2.4.1
TensorFlow version (use command below): tensorflow                    2.4.1
Python version: Python 3.6.9
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: CUDA Version: 11.6
GPU model and memory: Tesla V100-SXM2...

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
Describe the expected behavior
Contributing

Do you want to contribute a PR? (yes/no):
Briefly describe your candidate solution(if contributing):

Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

I also run other tensorflow codes, they all work well. I guess if it is the problem of the model achitecture?

@pengzhangzhi ,
Can you please update to latest tensorflow version v2.8  fron this link and test your code.It helps.Thanks!


Binding source for XMLSTOREDP

#27
This binding source should export only procedures actually needed by the stored procedure.  For the signature, I just used the *SRVPGM name and a date.  I don't know what the "best practice" is for signatures.  I made no attempt to retrieve the prior signature.

You'll need to sign off your commits. You can find the details on how to do that by clicking on the Details link for the DCO bot above.


/direct/session POST issue

I've been working with the Sakai /direct web service for a while now and also ran into issues establishing a session via the session with Rutgers.
It's a possibility that web service login has been disabled? I found that there's a config in Sakai source-code to this a while ago. Will update this issue once I've got a link to it.

I haven't had much time to look into SakaiPy recently. I'm going to hopefully look into the login mechanism change over the holiday. My goal is to have it working with Sakai 11 and Sakai 10.x.
If you find a fix, please feel free to commit it! :+1: :smile:

More context to this issue - https://jira.sakaiproject.org/browse/SAK-30083
Using portal/xlogin to log in fixes this, but is a significantly longer login.


Patch data wrong: Aetherochemical Compound #666

It's a Big Fish in Heavensward ( patch 3.4 )

Okay, then what's the issue? oO

I must got something wrong. Sorry! ><


Error: fritzctl temperature

When using the command "fritzctl temperature x x" with an temperature above 28 degrees the script is giving out an error instead of showing a message with the allowed temperature range.

Thanks. Yes, this is a bug. The allowed range is 8 - 28 and the program should check for the input instead of blindly pushing it to the box.


The case for a MustWriteJson helper ?

writer.WriteJson(...) returns an error.  The JSON serialization can fail for many reasons (eg: NaN, channel, complex, ...).
If such error is a valid possibility in the program, if the JSON API deals with data that can contain sources of serialization failures, then, the regular error handling is appropriate:
                        err := w.WriteJson(...)
                        if err != nil {
                                // the following, or any other appropriate error handling
                                rest.Error(w, err.Error(), http.StatusInternalServerError)
                                return
                        }

But if a serialization error is considered a program bug, worth a stop in the processing of the request, then it could be a valid use of panic:
                        err := w.WriteJson(...)
                        if err != nil {
                             panic(err.Error())
                        }

This last piece of code could be provided by the framework like this: func MustWriteJson(w ResponseWriter, v interface{})

+1


How to have seperate files for seperate sets of dialogs?

I have 20 bot.dialogs which are related to "Car" and another 20 bot.dialogs which are related to "Bike".
And there are a lot more categories.
So now you see where this is going. I dont want to have a large single js file. I want to split them into multiple files.
What is the best way to do it?

you could create a separate file per category. You can load as many dialogs as you'd like and you can even create them dynamically. There are any number of ways to do this.

One simple way to do this is have a seperate file for your bots. Lets say for example you want to put this dialog into a separate file
bot.dialog('/cars',function(session){session.send('test')});
Create a new file called cars.js and create a module for this dialog as following
module.exports = function(bot) {
bot.dialog('/cars',function(session){session.send('test')});
}
Now in the original file you can use this by requiring it and passing the bot object as an argument
as such
require('./cars.js')(bot);

@GanadiniAkshay Thanks that really helped a lot.
Currently I am doing it like this,
I have a main "server.js" and "car.js"
in server.js
//initializes all the prompts in car
car.createPrompts(bot);
//this is how I call the dialog in car.js
car.beginCarDialog;
and in car.js
// I declare all the prompts here like this which I used earlier to initialize the prompts
exports.createPrompts = function(bot) {
var askCarRegNo = [
function(session) {
},
function(session, results) {
}
];
bot.dialog('/cardialog', askCarRegNo);
}
// I export this function which will call the respective dialog internally
exports.beginCarDialog = function(session, options) {
session.beginDialog('/cardialog', options || {});
};
But your method seems much more promising because its much less code and I think I can call the
module.exports = function(bot) {
bot.dialog('/cars',function(session){session.send('test')});
}
above dialog which is in car.js into my main server.js file by simply session.beginDialog('/car');

I'd say you're on the right path. If you look at the libraries example you might get some inspiration. You don't need to actually use libraries but you'll notice how we put the library in a separate file and expose a create() function to add the library to the bot and a chooseLocale() function to abstract calling beginDialog() like you did.

This is an old post but I am having trouble doing the same in my typescript bot. Anyone who could help with that?

@flinkr in case if you are still having that issue (it's been a while) - you can have something like this:
car.ts
const CarDialog = (bot) => {
  bot.dialog("car", [
    (session, args, next) => {
      .....
    },
    (session, args, next) => {
      .....
    },
]);

export default CarDialog;

original file:
import CarDialog from "./car";
...
CarDialog(bot);

Hi guys! Thanks for your explanations and examples (currently working on separation of dialogs into separate files too).
How do you deal with a situation when the exported dialog uses session.beginDialog(')?
I mean how to correctly do the export of constructions like:
`// "Master" dialog
var bot = new builder.UniversalBot(connector, [
function (session) {
session.send("Hi");
session.beginDialog('askFor1');
},
function (session, results) {
session.send([results.response]);
session.beginDialog('askFor2');
},
function (session, results) {
session.endDialog([results.response]);
}
])
// Called subdialogs
bot.dialog('askFor1', [
function (session) {
builder.Prompts.time(session, "Please provide time");
},
function (session, results) {
session.endDialogWithResult(results);
}
]);
bot.dialog('askFor2', [
function (session) {
builder.Prompts.text(session, "Please provide quantity");
},
function (session, results) {
session.endDialogWithResult(results);
}
])
`
P.s. Sorry if dumb question - only learning JS. Thanks in advance

A, it appeared to be very simple:
Dialog being exported to a separate file:
module.exports = (bot, builder) => {
  bot.dialog('aloha', (session) => {
    session.beginDialog('askForName');
  })
    .triggerAction({
      matches: /^aloha$/i,
    });

  // Called dialog
  bot.dialog('askForName', [
    (session) => {
      builder.Prompts.text(session, 'What is your name?');
    },
    (session, results) => {
      session.endDialog(`Nice to meet you, ${results.response}`);
    },
  ]);
};

And the main file, which imports it:
bot.dialog('aloha', aloha(bot, builder));


fix: Mixing arrangement backfill and no shuffle backfill can lead to scale failure part 2

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
as title, second part for https://github.com/risingwavelabs/risingwave/pull/16923
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Do we need this cherry picked into 1.9?


Make sure HttpConnectionPoolConfigurationManagementController is following the "How To Write Controllers" guide

Currently the HttpConnectionPoolConfigurationManagementController is not fully following the How-To-Write-Controllers guide. This needs to be fixed.

Fixed in #546 by @ptirador.


Terrible font contrast.

It's of course subjective but the current color is a pain for eyes. Below is a screenshot where current font is on the right side and updated (I'm forced to do it every time) on the left.

Thanks for taking the time to report this. I've created #223, where a preview should appear soon.


Add missing StippleUI to Example 2

Hi!
As discussed in #63. I just added it also to the README.
Thanks!
Felix

@roflmaostc thank you for your effort in improving Stipple :)


Disable dragging from one particular lane

Hello there,
How can I disable specific lane from where dragging the cards should be disable with this?

The lane attribute in the data object for a board can accept a droppable key set to false. see https://rcdexta.com/react-trello/?path=/story/drag-n-drop--restrict-lanes
for an example.


Fix/tri 535 missing tombstone or relationship

Why the unusual file path name for the test files? (__files) Apart from that, it looks fine

This is a file path defined by wiremock. If you put files in this directory, you can reference them directly in code with
givenThat(get("/path").willReturn(aResponse().withBodyFile("fileName.json")))


[Game Crash] Game doesn't load, splash screen just disappear (Dec. 31st 2021 build)

Describe the crash
So, when you start the game, the songs will start loading / caching. A little bit halfway through, the splashscreen just disappear and the software can't be found running at all.
How can you reproduce the error?

Have a lot of songs (maybe all official charts from arcades / console / etc.)
Attempt to start the game.
Should crash around 40%

Screenshots/Videos
Of course, I have uploaded a video on the Discord server already.
https://cdn.discordapp.com/attachments/527732010714923019/931021012710096947/PXL_20220113_030328781.mp4
The log is also attached to this part of the issue form.
log.txt
.
Game Mode
No response
Additional Information
Well, everything works fine in October 1st 2021 build. I really don't know what changed during that build and the newest one.
Besides that, I don't have much else to day besides that no songs in my folder using any fancy scripts / mods. Just regular charts in .sm, mp3s or ogg and some of the official charts have their videos in recognized formats.
So, yeah.
Cheers.

We're working on a fix for this, thanks for taking the time to bring it to our attention!

Fixed in 4.13, thanks for your report


[KARAF-7754] Require Java 11 at runtime/build time

This switches enforcer to require at least Java 11 at build-timetime and karaf's launch enforcement to require Java 11+ at run-time.

Maybe we should change the javase version as well (in the karaf-maven-plugin and so).

Maybe we should change the javase version as well (in the karaf-maven-plugin and so).

Ah yes, I did not get that far. Since that is a run-time requirement, I am on the fence on that: it definitely has to be done at the latest when we switch to java.compiler.release to 11.
OTOH this PR unblocks things like Pax Web upgrade, so I'd like to keep its scope pretty much minimal.

There is also some logic in the karaf and karaf.bat scripts that can be simplified when Java 9+ is required.

There is also some logic in the karaf and karaf.bat scripts that can be simplified when Java 9+ is required.

You are right. As mentioned in the issue, we need to take a staggered approach here. I will split the effort accordingly.


Test issue for tracking training

This is just a test. I'm tagging @lbjohnson01  and @dericed in this.
I will close this ticket when both users reply that they've seen this

... i saw https://github.com/bavc/signalserver/issues/263

I've seen #263

hooray! i'm closing out this ticket


Can I use it for 3D models ? And what is the parameter target for these segmentation models?

I have a 3D Unet model  that takes as input a 5D tensor of size (1,1,4,256,256) which is 4 frame video and outputs a 5D tensor (1,3,4,256,256) a video predicted mask for 3 labels .
Can I use the library or its not suitable for my segmentation problem ,in case I can use it what's the target parameter supposed to be .

I would also be interested in this!

Hi,
The target parameter can be the same for 2D.
I think there can be some size mismatches for 3D (I never tried it before yet).
I plan to look into this in the next few days, will respond in this issue when I do.

Thanks
For now I switched to captum  and it worked for me

Hi,
The target parameter can be the same for 2D.
I think there can be some size mismatches for 3D (I never tried it before yet).
I plan to look into this in the next few days, will respond in this issue when I do.

Thanks For now I switched to captum and it worked for me

Hi @ReemShalaata
would you have any pointers to how you managed to use Captum on 3D models? I need to compute gradcam visualisation for my 3D model (in my case, it's I3D) and it seems that unfortunately there aren't many libraries out there for 3D gradcam.
Thanks!

Hello @dmoltisanti I asked them here and the links they provided helped me pytorch/captum#962
Hopefully it will help you Good luck

Thanks a lot, I'll have a look!

Hi,
The target parameter can be the same for 2D.
I think there can be some size mismatches for 3D (I never tried it before yet).
I plan to look into this in the next few days, will respond in this issue when I do.

Thanks For now I switched to captum and it worked for me

Hi @ReemShalaata
would you have any pointers to how you managed to use Captum on 3D models? I need to compute gradcam visualisation for my 3D model (in my case, it's I3D) and it seems that unfortunately there aren't many libraries out there for 3D gradcam.
Thanks!

Hello @dmoltisanti I asked them here and the links they provided helped me pytorch/captum#962
Hopefully it will help you Good luck

Thanks a lot, I'll have a look!

Hi! I met the same problem ,have you ever solved? Thank you so much!

Hey there, sorry but eventually I gave up and used spatio-temporal perturbations instead. Good luck!

Hey there, sorry but eventually I gave up and used spatio-temporal perturbations instead. Good luck!

Thank you for your kindness!

Hi,
The target parameter can be the same for 2D.
I think there can be some size mismatches for 3D (I never tried it before yet).
I plan to look into this in the next few days, will respond in this issue when I do.

Thanks For now I switched to captum and it worked for me

Hi @ReemShalaata
would you have any pointers to how you managed to use Captum on 3D models? I need to compute gradcam visualisation for my 3D model (in my case, it's I3D) and it seems that unfortunately there aren't many libraries out there for 3D gradcam.
Thanks!

Hello @dmoltisanti I asked them here and the links they provided helped me pytorch/captum#962
Hopefully it will help you Good luck

Thanks a lot, I'll have a look!

Hi! I met the same problem ,have you ever solved? Thank you so much!

Hello
You just need to choose the label each time you want to use captum library.
You should understand at end you can't draw for all the labels in one figure .
I will send the relevant code here soon .

@zimengxueying
The mean thing you should understand is that when you will draw each time depends on the label you choose and the frame you choose .
Because it will draw it as a 2D image.
I will check out my code and explain more if needed .

Thank you for I'm the new about the visualization, thanks for your guide. The model I use is I3D, which is a 3D convolution for a series frames, so the input is (16,224,224,3) and 16 is the frames extracted from the video, and the output is (2048). So I just a bit confused how the 2048 applied in 16 frames because when it does the convolution it also computes the time dimension. Would you share the idea about it? Thank you so much!

@zimengxueying
The mean thing you should understand is that when you will draw each time depends on the label you choose and the frame you choose . Because it will draw it as a 2D image.
I will check out my code and explain more if needed .

Thank you for reply! I'm the new about the visualization, thanks for your guide. The model I use is I3D, which is a 3D convolution for a series frames, so the input is (16,224,224,3) and 16 is the frames extracted from the video, and the output is (2048). So I just a bit confused how the 2048 applied in 16 frames because when it does the convolution it also computes the time dimension. Would you share the idea about it? Thank you so much!


Faster PDImageXObject.applyMask

Less data copy operations over all. Linewise bulk copy instead of per
pixel.
The softMask / matte calculation might need to be checked. I have only found one PDF in https://issues.apache.org/jira/browse/PDFBOX-4267

Thanks, this looks promising. However the rendering of this file is different
PDFBOX-2060.pdf
old rendering:

new rendering:

difference:

I missed that not in every case the input is transformed to ARGB, fixed that.

Thanks; there one difference in rendering here (page 14):
PDFBOX-1359.pdf
Original:

New:

Difference:

The difference can't been seen with a human eye so they're minor and I often have such differences myself when making changes. However here I don't understand what happened, there should only be a difference of 1 due to rounding. The differences algorithm (TestPDFToImages.diffImages()) only complains when there is a difference of 3.

I have added this PDF and page 14 to the TestRendering.renderAndCompare(String fileName).
But that is showing always a difference for me, with both versions from you and also if I switch to a commit before my changes.

If you compared the pre-commits difference against my PNG file then the diff result doesn't mean much, because different jdks  / OS produce different renderings.
I'll try to find out more about the details on the difference, to be sure that there isn't a bug in the diff code.

Yes, I compared my renderings to your PNG files. Didn't know that :)
The lines are definately a bit moved between before and after, but I don't see why.

OK I rendered two files at 1500 dpi and yes, there's a difference, so the diff code isn't the cause. The lines in the old codes are smoother. I'll test a few more things, maybe it's related to scaleImage() about interpolation being done or not (despite that the dimensions are identical).

No further ideas from me today; the effect can be seen in PDFDebugger at 1000%, or in the image ( Root/Pages/Kids/[0]/Resources/XObject/Im1/Resources/XObject/Im0 ) at 100%. I tried to change scaleImage that it copies the pixels directly with getRGB / setRGB and still got the effect.

I tried to copy "image" into an ARGB image with the old code and this did not produce the effect, so this would mean scaleImage isn't to blame.

I ran ExtractImages and displayed with IrfanView; on the left, the "old" image, on the right, the "new" image.

This rules out that "something" is triggered that happens at a later time.

Yeah, something when combining both with the formula from PDF.js.

I still don't know what I did wrong when changing the old formula from per pixel to per row, but it didn't work and made me look into PDF.js. Seems to be good now.


VTOL Attitude setpoint published twice.

I'm currently digging into the VTOL code and noticed the following:
At this line, the attitude setpoint is published with publish_att_sp() (inside some if statements):
https://github.com/PX4/Firmware/blob/master/src/modules/vtol_att_control/vtol_att_control_main.cpp#L787
Immediately after the if/else statement, the publish_att_sp() is called again:
https://github.com/PX4/Firmware/blob/master/src/modules/vtol_att_control/vtol_att_control_main.cpp#L795
Maybe I missed something, but I think the first call is unnecessary.

@bartslinger Yes, that is correct. I thought this was fixed in master actually, seems I was wrong.


Get rid of console window on Windows.

Without the windows_subsystem crate level attribute, starting the .exe, e.g., by double-clicking the file shows an empty console window before showing the Slint window. It's ignored on other platforms.
See https://doc.rust-lang.org/reference/runtime.html#the-windows_subsystem-attribute.

Thanks!


Run Go and Protobuf checks on a schedule

Pull Request Functional Test Report for #1849 / 788689ecede23ffb8ee8a08e84d6df011a23cb25
No tests identified for validation.
Help


Arabic characters in text-layer are not correct

When I render a text-layer over a canvas the characters of the text-layer do not match exactly with the text rendered in the canvas.
Here I do not mean the position, but the content. So e.g. if I copy out the text, it is not exactly like the original text.
In the provided screenshot.png you can see both layers simultan. The dark text is the one rendered in the canvas, the light grey one is the text rendered in the text-layer.
I marked a position where the text differs.
When I examine the Byte-Stream of the document I see that there are from time to time short sequences where the order of the characters is in the wrong way. The first char is the last one.
There are also short sequences where there are complete different characters. For more details see file UnicodeCharComparring.txt
I think that this has to do something with arabic ligatures. But I am not sure because I am not confirm with the arabic language.
Appendix:

Screenshot.png
UnicodeCharComparring.txt
Yoga-ar.pdf

UnicodeCharComparring.txt
Yoga-ar.pdf

Most likely fixed by PR #13424 (as far as I can tell not speaking Arabic, and without the issue clearly stating what page(s) the problem occur at).


fix: Add 'prepare' script to build dist on 'npm install' from git repo

With lambda-express in early development, features and fixes are getting added and need to
be tested faster than new versions are being cut. As such, it would be handy to be able to
install lambda-express directly from the git repo. However, due to the build process and
needing the dist files, this isn't currently possible using npm i <repo>. Fortunately, a
prepare script was added in npm 5. This script is ran when installing from a git repo
and can be used to build the needed dist files.
More info: https://blog.jim-nielsen.com/2018/installing-and-building-an-npm-package-from-github/#installing-and-building-packages-with-npm-from-github

Coverage remained the same at 99.176% when pulling 1d2fb7fd994819a200e452f1f4543a70f960e8e2 on npm_prepare into 9c33a1e3ceafb910027143636f17ad4d28ecc39d on master.

Just holding this pending one more question. Is this a "fix" or "feat"? The commit message has neither, but the PR says "fix".
@onebytegone @yokuze thoughts?


[move-cli] allow all tests in a directory to be run

Motivation
Right now, we need to run move-cli test path/to/args.txt, which is rather inconvenient. This pull request additionally allows move-cli test <dir_containing_args.txt> or move-cli test <dir containing_several_tests>.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Backward compatibility: ./target/release/move-cli test language/tools/move-cli/tests/testsuite/events_emit_view/args.txt
Expected output: 1 / 1 tests passed.
Run all tests under the directory: ./target/release/move-cli test language/tools/move-cli/tests/testsuite
Expected output: 14 / 14 tests passed.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/libra/developers.libra.org, and link to your PR here.)

/land

@mengxu-fb: :key: Insufficient privileges: Not Collaborator

Thanks! Landing this now.

/land


How do you handle numerical issues?

 I heard that a small number adding with a large number can cause numerical problems. In your program, how do you handle this problem?

Interesting, we have never encountered this problem in our code.

I think I mean the round off error problem. Did your code pass gradient test?

Yea we had the gradient check and we passed it but I didn't include it in this repo.
Let me find it and commit it

Here is the GradCheck function that was used for LSTMClassifier
  def GradCheck(self):
    eps = 0.01
    tol = 1e-3
    params_list = []
    params_list.extend(self.lstm_stack_.GetParams())
    self.num_dims_ = self.lstm_stack_.GetInputDims()
    self.num_output_dims_ = self.lstm_stack_.GetOutputDims()
    self.SetBatchSize(128, 3)
    v_cpu = np.random.randn(self.batch_size_, self.seq_length_ * self.num_dims_)
    t_cpu = np.random.randn(self.batch_size_, self.num_output_dims_)
    self.v_.overwrite(v_cpu)
    self.target_.overwrite(t_cpu)

    self.Fprop()
    self.BpropAndOutp()

    for name, param in params_list:
      print name
      w = param.GetW()
      dw = param.GetdW()
      fail = False
      for row in xrange(min(4, w.shape[0])):
        for col in xrange(min(4, w.shape[1])):
          val = w.read_value(row, col)
          w.write_value(row, col, val+eps)
          self.Fprop()
          l1 = self.cl_.GetLoss(self.target_)
          w.write_value(row, col, val - eps)
          self.Fprop()
          l2 = self.cl_.GetLoss(self.target_)
          grad_n = (l1 - l2 ) / (2 * eps)
          grad_a = dw.read_value(row, col)
          diff = np.abs(grad_n - grad_a) / (np.abs(grad_n) + np.abs(grad_a))
          print 'Numerical %.8f Analytical %.8f Diff %.5f' % (grad_n, grad_a, diff)
          if diff > tol:
            fail = True
          w.write_value(row, col, val)
      if fail:
        res = 'FAILED'
      else:
        res= 'PASSED'
      print res


WHY ALL CAPS?

Why everything in the website is in capital letters? Rethink the strategy.

Very subjective. The uppercased type maintains consistency and is not used on body text at all. As far as type is concerned, we're using very minimal information and there aren't sentences of words to use Sentence Casing. However, might raise a poll to get a better opinion though, but closing this for now.

It's not subjective. It's science. All caps is best used sparingly.
Resources:

https://blog.prototypr.io/all-caps-on-ui-good-or-bad-2570f14dc457
https://uxmovement.com/content/all-caps-hard-for-users-to-read/
https://practicaltypography.com/all-caps.html


testing: reporting non-standard benchmark results

I would like to report the results of non-standard benchmark (non google/benchmark style) along side existing benchmarks, and do so following the proposed Go benchmark data format. For example, the pbench package reports percentiles in addition to the standard results.
I was unable to implement this benchmark without using reflection to access some unexported fields, and there was no mechanism for using the same io.Writer for the output. A preferable solution would be a new method on B that, provided a name &  benchmark-result argument, formats and writes the results in the standard format.
Additionally, adding a ReportAllocs field to BenchmarkResults would be useful for when a benchmark is run with -benchmem but a non-standard benchmark does not support malloc statistics.

Interesting. cc @aclements @mpvl for thoughts. Tentatively marking this Go 1.8.

What is the API you are looking for?

ping @benburkert

I think it would mostly consist of a (*testing.B).Report(testing.BenchmarkResult) method for reporting a sub benchmark. That plus an additional Name field on testing.BenchmarkResult should satisfy my needs:
https://play.golang.org/p/QavnfPoTUr

Oh, this isn't at all what I thought you were proposing. I thought you wanted custom metrics (e.g., metrics other than the standard ns/op, allocs/op, etc). That certainly what I want. :)
Can you explain why sub-benchmarks don't already solve this?

Oh, this isn't at all what I thought you were proposing. I thought you wanted custom metrics (e.g., metrics other than the standard ns/op, allocs/op, etc). That certainly what I want. :)

That would be a nice ability as well. For my immediate need i'm using the sub-benchmark's name to specify the custom metric:
// BenchmarkThing-8       	20000000		80.4 ns/op
// BenchmarkThing/P99.9-8	20000000		80.4 ns/op

But an API for specifying a custom unit would be preferable:
// BenchmarkThing-8       	20000000		80.4 ns/op		80.4 P99.9-ns/op

Which could be done with an extra method on BenchmarkResult: https://play.golang.org/p/_ITU8Ta0RZ

Can you explain why sub-benchmarks don't already solve this?

I'm building on sub-benchmarks but using the reflection package to get at name and iteration values. And even with reflection there's no way to get at the io.Writer used for output.

If I understand correctly, it seems like what you really want is a way of reporting custom metrics and doing this through sub-benchmarks/extra benchmark lines is just a hack to get around the lack of custom metrics. If so, we should add custom metrics, not add mechanism to support the hack.

If I understand correctly, it seems like what you really want is a way of reporting custom metrics and doing this through sub-benchmarks/extra benchmark lines is just a hack to get around the lack of custom metrics.

yes, that's what i'm wanting, sorry for the confusion.

Closing this in favor of #26037, which covers the same ground but appears to be moving forward.


New Package Request: gnu screen

Package name and purpose
gnu screen
Impact of adding this package to the Flatcar OS image
It is infinitely useful for having stuff going and coming back and checking in, from different work environments.
You can also run docker in a screen and come back to it.
The package improves on the following core values:

[ ] Improve container experience

The package will increase the image size by: < 5 MBytes.
How might this package increase the attack surface:
Probably in the same way that bash increases an attack surface.  I don't know.
Benefits of adding this package
I use screen all of the time.  Especially when I'm trying to figure out how to do something.
I have to admit I also grind my teeth at screen from time to time.  But, all in all, makes a dev experience much nicer.
Additional information
I wish there was a package manager that would only download single command binaries.
So, let's say I need gnu-screen.  The flatcar-single-exe-catalog would see if there was a binary built for stable/beta/whatever and download it.  All executables would be self contained, statically linked, bigger, but not meant to stick around.
But with that said, I'm not a sys-admin, and maybe a sys-admin would turn just a little bit more grey at the thought.

To me screen (/tmux) is for long running tasks on a server. I often also run tmux locally and connect multiple times to the same server.

I wish there was a package manager that would only download single command binaries.
So, let's say I need gnu-screen. The flatcar-single-exe-catalog would see if there was a binary built for stable/beta/whatever and download it. All executables would be self contained, statically linked, bigger, but not meant to stick around.

This is the kind of user experience that we eventually hope to achieve with sysext (https://www.flatcar.org/docs/latest/provisioning/sysext/).

I'm in favor of having a few more standard tools on the base system than we have now (e.g., htop, tmux, nano, maybe nload).
My approach up to now was using single-line Docker commands where possible or the toolbox, here an example of using tmux from the toolbox: https://www.flatcar.org/docs/latest/setup/debug/install-debugging-tools/#spawn-a-toolbox-with-tmux-in-the-background


Add profile share.

Description

Show profile QR code.
Allow scan QR code for profile.

Show others profile from QR code.

Type of change
Please delete options that are not relevant.

[x] New feature
[ ] Bug fix
[ ] Refactor
[ ] Style
[ ] Documentation
[ ] CI/CD
[ ] Other

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.

Checklist

[x] My code follows the style guidelines of this project.
[x] My code has been formatted with flutter format lib.
[x] My code has been fixed with dart fix --apply lib.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.

@FlutterKaigi/conference-app-2023
iOSでの実機デバッグが充分にできていないので、レビューの際に合わせてお願いしたいです 🙏

Profile画面でQRを出した際、スクロール時に若干フレームが落ちてますね。Androidだと注意深く見ると気になる程度、iOSだとスクロールのfpsが足りてないのがぱっと見でわかる程度です。なんでだろう。


⚠ API - Lens has degraded performance

In 0a27b2d, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 635 ms

Resolved: API - Lens performance has improved in 9b1194f after 6 minutes.


Update controllers

Various code and comment alignment, and added RESERVE(6), RESERVE(10), RELEASE(6) and RELEASE(10) for SCSI, along with RESERVE(16) and RELEASE(17) for SASI.  All feedback is appreciated.  It feels like I'm doing this wrong, but the code does compile successfully and appears to work.

I think I understand now the value of uploading smaller changes. I should have separated the code alignment into a it's own request, then the RESERVE/RELEASE into it's own request.  If needed, I can do that, just let me know.


Tensor subscript API - TensorRange

Hey S4TF team,
I have a few questions / comments about the subscript API for the Tensor struct.

Why are we using the TensorRangeExpression protocol type instead of using the TensorRange enum type directly? I don't imagine people will actually implement another version of TensorRangeExpression and most importantly it makes it so the compiler cant infer e.g. .ellipsis from the context and makes you write TensorRange.ellipsis which is pretty bad for readability (which you kinda want when subscripting).
Why not make stride default to 1? Right now you always have to type stride: 1 which is what you want 99% of the time.
Using swift ranges seems like a good idea but given you have to wrap them in specific TensorRange cases it defeats the purpose. Take PartialRangeUpTo for example, you have to type TensorRange.PartialRangeUpTo(..<6, stride: 1)  but having the ..<6 range gives you no benefits, its less verbose just to be able to write TensorRange.PartialRangeUpTo(6, stride: 1). In this logic range's signature could be: range(_ from: Int, _ to: Int, _ stride: Int = 1). It would also be better to remove partialRangeThrough and closedRange, these don't have a numpy equivalent and you easily get them by adding + 1.
TensorRange.colon or TensorRange.all would be a nice shortcut for TensorRange.partialRangeFrom(0..., stride: 1), this is just the widely popular : symbol in python.
Consider shortening the names:

partialRangeFrom -> from
partialRangeUpTo -> upTo
index -> at

If all of these was done you could turn this code
x[TensorRange.index(0), TensorRange.partialRangeFrom(0..., stride: 1), TensorRange.range(1..<4, stride: 1)]

to
x[.at(0), .from(0), .range(1, 4)]

which I think is the closest you could get to x[0, :, 1:4] for now.

Just realized there are a bunch of TensorRangeExpression extensions for ranges which makes this irrelevant!

One thing is that ... is not a valid range for some reason.

Yeah, this is because the unbounded range operator is actually not a nullary operator, but a hack in the standard library. Since the operator is a function, it cannot conform to the TensorRangeExpression protocol. There are no good ways to resolve this yet, but further language improvements can definitely make this possible.


android build tries to copy non existant data_readers.clj

offensive https://github.com/arcadia-unity/Arcadia/blob/develop/Editor/BuildPostProcess.cs#L52-L53

closed with 944962f61ea4ac4803432288f5f567819a4d2139


[21pt] Manual calibration of Pittsburgh reaches

The upper reaches of HUC 05030101 near Pittsburgh are over-inundating lower flows. This is a major concern for field personnel and the upcoming public FIM release. We need to come up with a short-term, local solution until a more permanent and widespread fix can be built (e.g. Arash's transect ML routine).
@RyanSpies-NOAA and I have brainstormed and have concluded that the best course of action would be to "calibrate" the affected feature_ids by manually providing calibration coefficients to decrease Manning's n thereby narrowing flood stage and extent at lower flows. Another possible option would be for us to obtain cross-section or bathymetry data and use it to estimate cross-sectional area lost to bathymetry (I have reached out to the field to see if we can find some of this data).
You will probably need to insert this solution into the post-processing routine where calibration occurs. Ideally, the solution should be reproducible for other problem areas. I was thinking something like a CSV file that can be read in during post-processing that has columns: HUC8, feature_id, and calibration_coefficient. Feel free to explore other possible solutions and contact Ryan if you have any questions regarding calibration.

This is the reach we are interested in correcting. Blue is High Water and Yellow is 50% AEP or 2-year flood. The goal is to lessen the extent of the 50% AEP to the point where it doesn't extend much farther than the High Water, especially on the north side of the river.

There's also a few georeferenced impact statements. Matching (or closely matching) these should be the ultimate goal. You may not have access to this service, so let me know and I can give you the data for these points.

@CarsonPruitt-NOAA Sounds good.
As a side note, most of the over-inundation occurs in 05030101; however, all of the georeferenced inundation points are outside that HUC. To give an idea of scale, the NWM stream reaches are uniquely colored.

Here's an example result of the manual calibration using a 0.5 calibration coefficient
manual_calibration_coefficients.csv
HUC8,feature_id,calb_coef_manual
05030101,3824135,0.50
05030101,3824131,0.50
05030101,11050844,0.50
05030101,11050846,0.50
05030101,3786893,0.50
05030101,3786927,0.50
05032005,3786893,0.50
05020005,3786927,0.50
05010009,11050844,0.50
05010009,11050846,0.50

The light shade of blue is the inundation that has been reduced by manual calibration.


Crash when looking at Wonders of the World (F7)

Occurs in both master and in Translate-UnitDefinition.
Attached save: CIVIL0.zip

The fix is under Translate-UnitDefinition (this is the current branch until UnitDefinition structure is fully translated to managed code)


SetWindowLong / Window_Style incompatible in a weird way

This is what I was using for fullscreen switch (x64)
SetWindowLongPtr(Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE,  (IntPtr)(WS_VISIBLE | WS_POPUP));

When I changed to AnyCPU, this function is missing, as reasoned elsewhere. So, I guess we can't use the recommended function, which is compatible with both 32 and 64 bits, because it's also recommended that we compile with AnyCPU and not x64, so there is really only one function we can use... SetWindowLong ?
When I try to just switch over the method to SetWindowLong...
SetWindowLong(Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE, (IntPtr)(WS_VISIBLE | WS_POPUP));

Error: cannot convert from System.IntPtr to int.
So, just cast to int?
SetWindowLong(Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE, (int)(WS_VISIBLE | WS_POPUP));

Error: constant cannot be converted to int.
Maybe just pass the flags in the way any C# function would work...
SetWindowLong(Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE, WS_VISIBLE | WS_POPUP);  // doesn't work

Error: Argument 3; cannot convert from WindowStyle to Int.
Huh?
So I try breaking them up..
 SetWindowLong(Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE, (int)WS_VISIBLE); // this is ok
 SetWindowLong(Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE, (int)WS_POPUP); // this is a constant value

I can't work this out. And at this stage I'm thinking you've don't something pretty bad here in terms of common sense for C#, in terms of discoverability.
Also, the enum is of uint type and the argument is an int, how does that even work? See my earlier issue about the same thing ... https://github.com/microsoft/win32metadata/issues/1026
Could you please provide me with a workaround?

To get this working I used
unchecked { SetWindowLong(Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE, (int)(WS_VISIBLE | WS_POPUP)); }

because it's also recommended that we compile with AnyCPU and not x64

Who made that recommendation? In general, it makes a lot of things easier. But once you have to interop with Windows APIs, it can be necessary since the types used can be arch-specific.

That is so dirty, but I almost don't care anymore

I don't see what the big deal is. SetWindowLong is perfectly adequate for setting WINDOW_STYLE. The SetWindowLongPtr function is useful when you're setting values that may in fact exceed 32-bits, but you're setting 32-bit flags, so SetWindowLong is just fine. No hack there.
The only reason you need unchecked here is because the uint flags you're setting lie outside the int range, but is totally a permissible value. You can use an unchecked expression instead of an unchecked block to shrink the unchecked region in your code:
PInvoke.SetWindowLong(h, WINDOW_LONG_PTR_INDEX.GWL_STYLE, unchecked((int)(WINDOW_STYLE.WS_VISIBLE | WINDOW_STYLE.WS_POPUP)))


Allow .json type checking

Closes #5619.
This adds back support for type checking of .json files. We had to disable previously due to a bug in TypeScript which was fixed a while back.
Here is an example:

Thanks!


Tests should not depend on the network services

Related to https://github.com/LD4P/sinopia_editor/issues/831
Perhaps look at mockttp or Polly.js

Closed by #893


[FLINK-17334] HIVE UDF BUGFIX

For more information, please check:
https://github.com/apache/flink/pull/11876

Thanks @Ruan-Xin , can you modify title to [FLINK-17334][hive] Flink does not support HIVE UDFs with primitive return types


chore(deps): update dependency execa to v6

This PR contains the following updates:

Package
Type
Update
Change

execa
devDependencies
major
4.1.0 -> 6.1.0

Release Notes

sindresorhus/execa
v6.1.0
Compare Source

Support AbortController (#490)  c6e791a
Allow cwd and localDir options to be URLs (#492)  93ab929

v6.0.0
Compare Source
Breaking

Require Node.js 12.20 (#478)  7707880
This package is now pure ESM. Please read this.
Moved from a default export to named exports.

require('execa') → import {execa} from 'execa'
require('execa').sync → import {execaSync} from 'execa'
require('execa').command → import {execaCommand} from 'execa'
require('execa').commandSync → import {execaCommandSync} from 'execa'
require('execa').node → import {execaNode} from 'execa'

v5.1.1
Compare Source

Fix error message when user passes a single array argument (#468)  2b9c0e1

v5.1.0
Compare Source

Add .escapedCommand property to the results (#466)  712bafc

v5.0.1
Compare Source

Fix timeout option validation (#463)  427c5c2

v5.0.0
Compare Source
Breaking

Remove faulty emulated ENOENT error on Windows (#447)  bdbd975
This is only a breaking change if you depend on the exact error message.

Improvements

Upgrade dependencies  5d64878

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: pnpm-lock.yaml
installing v2 tool pnpm v7.3.0
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

added 1 package in 893ms
linking tool pnpm v7.3.0
7.3.0
Scope: all 2 projects
src/download/template                    | Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 1, reused 0, downloaded 0, added 0
src/download/template                    | Progress: resolved 9, reused 0, downloaded 3, added 0
Progress: resolved 26, reused 0, downloaded 16, added 0
src/download/template                    | Progress: resolved 29, reused 0, downloaded 12, added 0
Progress: resolved 30, reused 0, downloaded 25, added 0
src/download/template                    | Progress: resolved 87, reused 0, downloaded 52, added 0
Progress: resolved 31, reused 0, downloaded 26, added 0
src/download/template                    | Progress: resolved 87, reused 0, downloaded 64, added 0, done
Progress: resolved 92, reused 0, downloaded 47, added 0
Progress: resolved 184, reused 0, downloaded 139, added 0
Progress: resolved 224, reused 0, downloaded 173, added 0
Progress: resolved 353, reused 0, downloaded 260, added 0
Progress: resolved 447, reused 0, downloaded 346, added 0
Progress: resolved 528, reused 0, downloaded 424, added 0
Progress: resolved 621, reused 0, downloaded 545, added 0
Progress: resolved 624, reused 0, downloaded 556, added 0
undefined
 ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies

.
└─┬ eslint-config-standard
  ├── ✕ unmet peer<EMAIL_ADDRESS>found 8.17.0
  └── ✕ unmet peer<EMAIL_ADDRESS>|| ^5.0.0": found 6.0.0

hint: If you don't want pnpm to fail on peer dependency issues, add "strict-peer-dependencies=false" to an .npmrc file at the root of your project.


Playwright E2E testing infra

Closes #6887
Change Description

Added Playwright dependencies and configuration to webui
Created setup test suite to set up a lakeFS instance and save storage state for subsequent testing
Implemented test to leverage storage state
Added E2E test with DDB local and local block adapter to esti workflow

Note: No need to review the composite action. It's not being used in this PR. I have to merge it to master (GitHub workflow limitation) so I can later modify the workflow to use it in a separate PR, where the action itself will be reviewed as well. (I can push an empty file instead, if it bugs anyone)

Thanks! Just the newlines

Done


Build static mke2fs for amd64/arm64/arm

Upgrade to 1.46.5
Tooling to make upgrades easier in the future

I was about to build something similar to this package, but for a different reason. I am trying to use the secondary storage device on the HC2 (it can take a 3.5' HDD). Being able to automatically partition it would be nice.
This is a preliminary change that makes mkfs cross-platform.

Thanks!


Circular import when running example

After installing dependencies, I run the following command:
poetry run python example/manage.py runserver 0:8000

And circular import issue occurred:
λ poetry run python example/manage.py runserver 0:8000
Watching for file changes with StatReloader
Performing system checks...

Exception in thread django-main-thread:
Traceback (most recent call last):
  File "C:\Users\kasse\AppData\Local\pypoetry\Cache\virtualenvs\django-unicorn-Lz1J1cta-py3.9\lib\site-packages\django\template\utils.py", line 66, in __getitem__
    return self._engines[alias]
KeyError: 'django'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\kasse\AppData\Local\pypoetry\Cache\virtualenvs\django-unicorn-Lz1J1cta-py3.9\lib\site-packages\django\template\backends\django.py", line 121, in get_package_libraries
    module = import_module(entry[1])
  File "c:\users\kasse\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "C:\Users\kasse\Desktop\django-unicorn\django_unicorn\templatetags\unicorn.py", line 8, in <module>
    from ..components import UnicornView
ImportError: cannot import name 'UnicornView' from partially initialized module 'django_unicorn.components' (most likely due to a circular import) (C:\Users\kasse\Desktop\django-unicorn\django_unicorn\components.py)

Suggested fix:
Move the import before the usage of UnicornView
        from ..components import UnicornView
        view = UnicornView.create(
            component_id=component_id,
            component_name=self.component_name,
            kwargs=resolved_kwargs,
            request=request,
        )
        rendered_component = view.render(init_js=True)

Is it the appropriate fix?

Hmm, well I've never seen this happen before! Moving the seems like a fine fix, but I wish I could reproduce the error on my local.
If you move the import does it import correctly?

Yeah, after moving it works just fine.
I used latest Python and Django (maybe this will help you to reproduce the issue).

Ok, awesome! If you want to make a PR I'll merge it right away. Or I can make the change and credit you with the fix.

Created the PR... Didn't know how to avoid including the previous commit there 😕


feat: add txn sign/send and ledger support

Currently relies on #1283.
Adds:

tx sign - use local key or ledger to sign a transaction (envelope)
tx send - submit a signed transaction envelope to the network
Stellar trait which handles the signing of transactions and auth-entries

Closing in favor of #1406 as it is cleaner to review.