Radeon Vulkan (radv) driver crash on Linux with -O1 or -O2 optimizations (target=release_debug build with GCC 10)

Godot version:
master (0cd98ec7e13038d09a77cf821e930be79026f943)
OS/device including version:
Mageia 8 (Linux)
CPU:       Topology: Quad Core model: Intel Core i7-8705G bits: 64 type: MT MCP L2 cache: 8192 KiB
Graphics:  Device-1: Intel HD Graphics 630 driver: i915 v: kernel
           Device-2: Advanced Micro Devices [AMD/ATI] Polaris 22 XL [Radeon RX Vega M GL] driver: amdgpu v: kernel
           Display: x11 server: Mageia X.org 1.20.8 driver: intel,v4l resolution: 1: 1920x1080 2: 1920x1080
           OpenGL: renderer: AMD VEGAM (DRM 3.37.0 5.7.9-desktop-1.mga8 LLVM 10.0.0) v: 4.6 Mesa 20.1.1

Issue specific to the AMD GPU, using the radv driver from Mesa 20.1.1.
Compiling with:
gcc (Mageia 10.2.0-0.RC.1.mga8) 10.2.0

Issue description:
While I can run Godot fine with a tools=yes target=debug build (default parameters), an optimized tools=yes target=release_debug build crashes on the AMD Radeon RX Vega M GPU with Mesa's radv.
If I force the use of the Intel GPU, it doesn't crash.
Backtrace (I built with target=debug debug_symbols=full to have more debug info):
Thread 1 "godot.linuxbsd." received signal SIGSEGV, Segmentation fault.
0x00007ffff78a6ce4 in __memmove_avx_unaligned_erms () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff78a6ce4 in __memmove_avx_unaligned_erms () from /lib64/libc.so.6
#1  0x00007ffff54c97ef in memcpy (__len=<optimized out>, __src=0x6226a8c, __dest=<optimized out>) at /usr/include/bits/string_fortified.h:34
#2  radv_flush_constants (cmd_buffer=cmd_buffer@entry=0x62262a0, stages=<optimized out>, stages@entry=31) at ../src/amd/vulkan/radv_cmd_buffer.c:2410
#3  0x00007ffff54ca615 in radv_upload_graphics_shader_descriptors (cmd_buffer=cmd_buffer@entry=0x62262a0, pipeline_is_dirty=pipeline_is_dirty@entry=true) at ../src/amd/vulkan/radv_cmd_buffer.c:2651
#4  0x00007ffff54cd6e0 in radv_draw (cmd_buffer=0x62262a0, info=info@entry=0x7fffffffc720) at ../src/amd/vulkan/radv_cmd_buffer.c:4837
#5  0x00007ffff54cf69e in radv_CmdDrawIndexed (commandBuffer=<optimized out>, indexCount=<optimized out>, instanceCount=<optimized out>, firstIndex=<optimized out>, vertexOffset=<optimized out>,
    firstInstance=<optimized out>) at ../src/amd/vulkan/radv_cmd_buffer.c:4901
#6  0x0000000002becb1d in RasterizerCanvasRD::_render_item (this=0x7fffe8427020, p_draw_list=<optimized out>, p_item=<optimized out>, p_framebuffer_format=<optimized out>, p_canvas_transform_inverse=...,
    current_clip=<optimized out>, p_lights=<optimized out>, p_pipeline_variants=<optimized out>) at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:864
#7  0x0000000002bee717 in RasterizerCanvasRD::_render_items (this=0x7fffe8427020, p_to_render_target=..., p_item_count=<optimized out>, p_canvas_transform_inverse=..., p_lights=0x0, p_screen_uniform_set=...)
    at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:1362
#8  0x0000000002bef23a in RasterizerCanvasRD::canvas_render_items (this=0x7fffe8427020, p_to_render_target=..., p_item_list=<optimized out>, p_modulate=..., p_light_list=0x0, p_canvas_transform=...)
    at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:1524
#9  0x0000000002bda8ff in RenderingServerCanvas::render_canvas (this=<optimized out>, p_render_target=..., p_canvas=p_canvas@entry=0x73bdf70, p_transform=..., p_lights=0x0,
    p_masked_lights=p_masked_lights@entry=0x0, p_clip_rect=...) at servers/rendering/rendering_server_canvas.cpp:265
#10 0x0000000002a382f9 in RenderingServerViewport::_draw_viewport (this=0x62ab370, p_viewport=0x7479bb0, p_eye=XRInterface::EYE_MONO) at servers/rendering/rendering_server_viewport.cpp:257
#11 0x0000000002a39709 in RenderingServerViewport::draw_viewports (this=0x62ab370) at servers/rendering/rendering_server_viewport.cpp:413
#12 0x0000000002a0a7ca in RenderingServerRaster::draw (this=0x5ba65d0, p_swap_buffers=<optimized out>, frame_step=0.39811098575592041) at servers/rendering/rendering_server_raster.cpp:112
#13 0x00000000007d4e3e in Main::iteration () at main/main.cpp:2204
#14 0x00000000007b5359 in OS_LinuxBSD::run (this=this@entry=0x7fffffffd1d0) at platform/linuxbsd/os_linuxbsd.cpp:238
#15 0x00000000007b0cf3 in main (argc=1, argv=0x7fffffffd6c8) at platform/linuxbsd/godot_linuxbsd.cpp:55

This is likely a Mesa driver bug, but opening an issue here to track it and see if it might be triggered by something specific we do.
The only difference between target=debug and target=release_debug is the optimization level (-O2) and the use of -rdynamic. I suspect that the optimization might be the problem, I'll do some tests to figure it out, and open a Mesa bug report.
Steps to reproduce:

scons p=linuxbsd tools=yes target=release_debug debug_symbols=full
Run it, poof

Minimal reproduction project:
Crashes even in the project manager.

I confirmed that the crash is related to the use of optimizations. With target=debug CCFLAGS="-O2" (same optimization level as target=release_debug), the crash is reproducible.

Got a couple more frames with -O1, which still crashes:
(gdb) bt
#0  0x00007ffff78a6ce4 in __memmove_avx_unaligned_erms () from /lib64/libc.so.6
#1  0x00007ffff54c97ef in memcpy (__len=<optimized out>, __src=0x66f78fc, __dest=<optimized out>) at /usr/include/bits/string_fortified.h:34
#2  radv_flush_constants (cmd_buffer=cmd_buffer@entry=0x66f7110, stages=<optimized out>, stages@entry=31) at ../src/amd/vulkan/radv_cmd_buffer.c:2410
#3  0x00007ffff54ca615 in radv_upload_graphics_shader_descriptors (cmd_buffer=cmd_buffer@entry=0x66f7110, pipeline_is_dirty=pipeline_is_dirty@entry=true) at ../src/amd/vulkan/radv_cmd_buffer.c:2651
#4  0x00007ffff54cd6e0 in radv_draw (cmd_buffer=0x66f7110, info=info@entry=0x7fffffffc0d0) at ../src/amd/vulkan/radv_cmd_buffer.c:4837
#5  0x00007ffff54cf69e in radv_CmdDrawIndexed (commandBuffer=<optimized out>, indexCount=<optimized out>, instanceCount=<optimized out>, firstIndex=<optimized out>, vertexOffset=<optimized out>,
    firstInstance=<optimized out>) at ../src/amd/vulkan/radv_cmd_buffer.c:4901
#6  0x0000000001a69bf1 in vkCmdDrawIndexed (commandBuffer=<optimized out>, indexCount=indexCount@entry=6, instanceCount=instanceCount@entry=1, firstIndex=<optimized out>, vertexOffset=vertexOffset@entry=0,
    firstInstance=firstInstance@entry=0) at thirdparty/vulkan/loader/trampoline.c:1698
#7  0x0000000001a1beb7 in RenderingDeviceVulkan::draw_list_draw (this=0x62ac330, p_list=<optimized out>, p_use_indices=<optimized out>, p_instances=1, p_procedural_vertices=0)
    at drivers/vulkan/rendering_device_vulkan.cpp:6228
#8  0x0000000003362a46 in RasterizerCanvasRD::_render_item (this=this@entry=0x7fffe8427020, p_draw_list=p_draw_list@entry=2, p_item=p_item@entry=0x8d31ca0, p_framebuffer_format=p_framebuffer_format@entry=2,
    p_canvas_transform_inverse=..., current_clip=@0x7fffffffc758: 0x0, p_lights=<optimized out>, p_pipeline_variants=<optimized out>) at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:788
#9  0x00000000033648c9 in RasterizerCanvasRD::_render_items (this=this@entry=0x7fffe8427020, p_to_render_target=<EMAIL_ADDRESS>p_item_count=<optimized out>, p_canvas_transform_inverse=...,
    p_lights=p_lights@entry=0x0, p_screen_uniform_set=<EMAIL_ADDRESS>at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:1362
#10 0x000000000336552f in RasterizerCanvasRD::canvas_render_items (this=0x7fffe8427020, p_to_render_target=..., p_item_list=<optimized out>, p_modulate=..., p_light_list=0x0, p_canvas_transform=...)
    at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:1524
#11 0x0000000003354900 in RenderingServerCanvas::_render_canvas_item_tree (this=this@entry=0x6654f90, p_to_render_target=<EMAIL_ADDRESS>p_child_items=<optimized out>,
    p_child_item_count=p_child_item_count@entry=1, p_canvas_item=p_canvas_item@entry=0x0, p_transform=..., p_clip_rect=..., p_modulate=..., p_lights=0x0) at servers/rendering/rendering_server_canvas.cpp:71
#12 0x0000000003354a63 in RenderingServerCanvas::render_canvas (this=0x6654f90, p_render_target=..., p_canvas=p_canvas@entry=0x7735320, p_transform=..., p_lights=0x0, p_masked_lights=p_masked_lights@entry=0x0,
    p_clip_rect=...) at servers/rendering/rendering_server_canvas.cpp:265
#13 0x00000000031bd038 in RenderingServerViewport::_draw_viewport (this=this@entry=0x677ad90, p_viewport=p_viewport@entry=0x77342d0, p_eye=p_eye@entry=XRInterface::EYE_MONO)
    at servers/rendering/rendering_server_viewport.cpp:257
#14 0x00000000031be22a in RenderingServerViewport::draw_viewports (this=0x677ad90) at servers/rendering/rendering_server_viewport.cpp:413
#15 0x000000000319aefe in RenderingServerRaster::draw (this=0x6076660, p_swap_buffers=<optimized out>, frame_step=0.36177700757980347) at servers/rendering/rendering_server_raster.cpp:112
#16 0x00000000031c3680 in RenderingServerWrapMT::draw (this=0x6caea70, p_swap_buffers=<optimized out>, frame_step=0.36177700757980347) at servers/rendering/rendering_server_wrap_mt.cpp:91
#17 0x0000000000e3dc06 in Main::iteration () at main/main.cpp:2204
--Type <RET> for more, q to quit, c to continue without paging--
#18 0x0000000000e1e256 in OS_LinuxBSD::run (this=this@entry=0x7fffffffd1c0) at platform/linuxbsd/os_linuxbsd.cpp:238
#19 0x0000000000e1d1a7 in main (argc=1, argv=0x7fffffffd6b8) at platform/linuxbsd/godot_linuxbsd.cpp:55

Tested with Clang 10.0.0 with target=debug CCFLAGS="-O2", and it's not crashing. So it might be a GCC optimization bug more than a Mesa driver bug.

Mesa bug report: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3309

Mesa bug report: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3309

As pointed out on that report, it's of course Godot's own optimization level that triggers the issue, and not Mesa's (system package built with -O2), so it's in Godot's Vulkan backend that GCC seems to optimize something wrongly, leading to a radv crash.
@marxin Do you have any suggestion on how to debug this further to make a useful bug report for GCC (if it's confirmed as a compiler optimization bug)?

@marxin Do you have any suggestion on how to debug this further to make a useful bug report for GCC (if it's confirmed as a compiler optimization bug)?

Hey.
The bug reminds me of something I saw a month ago:
https://gitlab.freedesktop.org/mesa/mesa/-/issues/2977
Can you please check that the Mesa driver built as part of Godot build uses -flifetime-dse=1?

Can you please check that the Mesa driver built as part of Godot build uses -flifetime-dse=1?

I'm using the Mesa version packaged by Mageia (currently 20.1.1, though there's 20.1.4 checked-in in testing repos but it's in the middle of switching to libglvnd so I haven't tried it yet).
I just rebuilt 20.1.1-11.mga8 locally to confirm, it does seem to use -flifetime-dse=1:
Compiler for C++ supports arguments -flifetime-dse=1: YES
...
[91/2576] c++ -Isrc/compiler/libcompiler.a.p -Isrc/compiler -I../src/compiler -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -Iinclude -I../include -Isrc -I../src -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -I/usr/include/valgrind -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -std=gnu++14 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="20.1.1"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=1 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_UINT128 -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="10.0.0"' -DHAVE_VALGRIND -DHAVE_LIBUNWIND -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 -Werror=return-type -Werror=empty-body -Wno-non-virtual-dtor -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -flifetime-dse=1 -Werror=format -Wformat-security -O2 -g -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -fvisibility=hidden -Werror=pointer-arith -Werror=vla -MD -MQ src/compiler/libcompiler.a.p/nir_types.cpp.o -MF src/compiler/libcompiler.a.p/nir_types.cpp.o.d -o src/compiler/libcompiler.a.p/nir_types.cpp.o -c ../src/compiler/nir_types.cpp

Ok then.
Can you please experiment with ASAN/UBSAN for a locally built Mesa driver? Or you can also try valgrind, it may tell something.
Am I right that any debugging is problematic as one needs an AMD graphics that uses the problematic driver?

Can you please experiment with ASAN/UBSAN for a locally built Mesa driver? Or you can also try valgrind, it may tell something.

I'll give it a try. Do you mean that I need to rebuild Mesa with ASAN/UBSAN locally (and then Godot with ASAN/UBSAN too), or do I only need to build Godot with those?

Am I right that any debugging is problematic as one needs an AMD graphics that uses the problematic driver?

I have yet to get confirmations from other users, but in theory if you have an AMD GPU that uses Mesa/radv, you might be able to trigger the crash. It's unknown yet whether all AMD GPUs and/or all recent Mesa versions are affected, or if it's specific to a given series of GPUs or distro packaging quirks.

I'll give it a try. Do you mean that I need to rebuild Mesa with ASAN/UBSAN locally (and then Godot with ASAN/UBSAN too), or do I only need to build Godot with those?

I would first start with Godot and then you can repeat the same step for Mesa. Anyway, you may be lucky with just valgrind.
To be honest, I would be quite surprised that a GCC miscompilation would happen with -O1 optimization level.

valgrind does seem to find some invalid reads:
$ valgrind ./bin/godot.linuxbsd.tools.64
==441176== Memcheck, a memory error detector
==441176== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==441176== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==441176== Command: ./bin/godot.linuxbsd.tools.64
==441176==
Godot Engine v4.0.dev.custom_build.5700429e4 - https://godotengine.org
DisplayServer::_create_window 0 want rect: 448, 240, 1024, 600 got rect 0, 0, 1024, 600
DisplayServer::_window_changed: 0 rect: 896, 29, 1024, 600

==441176== Conditional jump or move depends on uninitialised value(s)
==441176==    at 0xE33B68: DisplayServerX11::process_events() (display_server_x11.cpp:2490)
==441176==    by 0xE240F6: OS_LinuxBSD::run() (os_linuxbsd.cpp:234)
==441176==    by 0xE23064: main (godot_linuxbsd.cpp:58)
==441176==
==441176== Invalid read of size 2
==441176==    at 0x65FA2EF: memmove (vg_replace_strmem.c:1270)
==441176==    by 0x9ED48FE: UnknownInlinedFun (string_fortified.h:34)
==441176==    by 0x9ED48FE: radv_flush_constants (radv_cmd_buffer.c:2433)
==441176==    by 0x9ED5724: radv_upload_graphics_shader_descriptors (radv_cmd_buffer.c:2674)
==441176==    by 0x9ED88AF: radv_draw (radv_cmd_buffer.c:4860)
==441176==    by 0x9EDA84D: radv_CmdDrawIndexed (radv_cmd_buffer.c:4924)
==441176==    by 0x1A496A6: vkCmdDrawIndexed (trampoline.c:1698)
==441176==    by 0x19FB870: RenderingDeviceVulkan::draw_list_draw(long, bool, unsigned int, unsigned int) (rendering_device_vulkan.cpp:6228)
==441176==    by 0x334FE9F: RasterizerCanvasRD::_render_item(long, RasterizerCanvas::Item const*, long, Transform2D const&, RasterizerCanvas::Item*&, RasterizerCanvas::Light*, RasterizerCanvasRD::PipelineVariants*) (rasterizer_canvas_rd.cpp:788)
==441176==    by 0x3351D22: RasterizerCanvasRD::_render_items(RID, int, Transform2D const&, RasterizerCanvas::Light*, RID) (rasterizer_canvas_rd.cpp:1362)
==441176==    by 0x3352988: RasterizerCanvasRD::canvas_render_items(RID, RasterizerCanvas::Item*, Color const&, RasterizerCanvas::Light*, Transform2D const&) (rasterizer_canvas_rd.cpp:1524)
==441176==    by 0x3341D59: RenderingServerCanvas::_render_canvas_item_tree(RID, RenderingServerCanvas::Canvas::ChildItem*, int, RenderingServerCanvas::Item*, Transform2D const&, Rect2 const&, Color const&, RasterizerCanvas::Light*) (rendering_server_canvas.cpp:71)
==441176==    by 0x3341EBC: RenderingServerCanvas::render_canvas(RID, RenderingServerCanvas::Canvas*, Transform2D const&, RasterizerCanvas::Light*, RasterizerCanvas::Light*, Rect2 const&) (rendering_server_canvas.cpp:265)
==441176==  Address 0x92a3cc0 is 0 bytes after a block of size 3,744 alloc'd
==441176==    at 0x65F3751: malloc (vg_replace_malloc.c:307)
==441176==    by 0x9ED8E09: UnknownInlinedFun (vk_alloc.h:36)
==441176==    by 0x9ED8E09: UnknownInlinedFun (vk_alloc.h:44)
==441176==    by 0x9ED8E09: radv_create_cmd_buffer (radv_cmd_buffer.c:275)
==441176==    by 0x9ED8E09: radv_AllocateCommandBuffers (radv_cmd_buffer.c:3349)
==441176==    by 0x1A49517: vkAllocateCommandBuffers (trampoline.c:1516)
==441176==    by 0x1A0261C: RenderingDeviceVulkan::initialize(VulkanContext*, bool) (rendering_device_vulkan.cpp:7186)
==441176==    by 0xE38F40: DisplayServerX11::DisplayServerX11(String const&, DisplayServer::WindowMode, unsigned int, Vector2i const&, Error&) (display_server_x11.cpp:3662)
==441176==    by 0xE39441: DisplayServerX11::create_func(String const&, DisplayServer::WindowMode, unsigned int, Vector2i const&, Error&) (display_server_x11.cpp:3188)
==441176==    by 0x2F930C8: DisplayServer::create(int, String const&, DisplayServer::WindowMode, unsigned int, Vector2i const&, Error&) (display_server.cpp:599)
==441176==    by 0xE44E20: Main::setup2(unsigned long) (main.cpp:1409)
==441176==    by 0xE4F349: Main::setup(char const*, int, char**, bool) (main.cpp:1331)
==441176==    by 0xE2300D: main (godot_linuxbsd.cpp:51)
==441176==
==441176== Invalid read of size 2
==441176==    at 0x65FA2E0: memmove (vg_replace_strmem.c:1270)
==441176==    by 0x9ED48FE: UnknownInlinedFun (string_fortified.h:34)
==441176==    by 0x9ED48FE: radv_flush_constants (radv_cmd_buffer.c:2433)
==441176==    by 0x9ED5724: radv_upload_graphics_shader_descriptors (radv_cmd_buffer.c:2674)
==441176==    by 0x9ED88AF: radv_draw (radv_cmd_buffer.c:4860)
==441176==    by 0x9EDA84D: radv_CmdDrawIndexed (radv_cmd_buffer.c:4924)
==441176==    by 0x1A496A6: vkCmdDrawIndexed (trampoline.c:1698)
==441176==    by 0x19FB870: RenderingDeviceVulkan::draw_list_draw(long, bool, unsigned int, unsigned int) (rendering_device_vulkan.cpp:6228)
==441176==    by 0x334FE9F: RasterizerCanvasRD::_render_item(long, RasterizerCanvas::Item const*, long, Transform2D const&, RasterizerCanvas::Item*&, RasterizerCanvas::Light*, RasterizerCanvasRD::PipelineVariants*) (rasterizer_canvas_rd.cpp:788)
==441176==    by 0x3351D22: RasterizerCanvasRD::_render_items(RID, int, Transform2D const&, RasterizerCanvas::Light*, RID) (rasterizer_canvas_rd.cpp:1362)
==441176==    by 0x3352988: RasterizerCanvasRD::canvas_render_items(RID, RasterizerCanvas::Item*, Color const&, RasterizerCanvas::Light*, Transform2D const&) (rasterizer_canvas_rd.cpp:1524)
==441176==    by 0x3341D59: RenderingServerCanvas::_render_canvas_item_tree(RID, RenderingServerCanvas::Canvas::ChildItem*, int, RenderingServerCanvas::Item*, Transform2D const&, Rect2 const&, Color const&, RasterizerCanvas::Light*) (rendering_server_canvas.cpp:71)
==441176==    by 0x3341EBC: RenderingServerCanvas::render_canvas(RID, RenderingServerCanvas::Canvas*, Transform2D const&, RasterizerCanvas::Light*, RasterizerCanvas::Light*, Rect2 const&) (rendering_server_canvas.cpp:265)
==441176==  Address 0x92a3cc6 is 6 bytes after a block of size 3,744 alloc'd
==441176==    at 0x65F3751: malloc (vg_replace_malloc.c:307)
==441176==    by 0x9ED8E09: UnknownInlinedFun (vk_alloc.h:36)
==441176==    by 0x9ED8E09: UnknownInlinedFun (vk_alloc.h:44)
==441176==    by 0x9ED8E09: radv_create_cmd_buffer (radv_cmd_buffer.c:275)
==441176==    by 0x9ED8E09: radv_AllocateCommandBuffers (radv_cmd_buffer.c:3349)
==441176==    by 0x1A49517: vkAllocateCommandBuffers (trampoline.c:1516)
==441176==    by 0x1A0261C: RenderingDeviceVulkan::initialize(VulkanContext*, bool) (rendering_device_vulkan.cpp:7186)
==441176==    by 0xE38F40: DisplayServerX11::DisplayServerX11(String const&, DisplayServer::WindowMode, unsigned int, Vector2i const&, Error&) (display_server_x11.cpp:3662)
==441176==    by 0xE39441: DisplayServerX11::create_func(String const&, DisplayServer::WindowMode, unsigned int, Vector2i const&, Error&) (display_server_x11.cpp:3188)
==441176==    by 0x2F930C8: DisplayServer::create(int, String const&, DisplayServer::WindowMode, unsigned int, Vector2i const&, Error&) (display_server.cpp:599)
==441176==    by 0xE44E20: Main::setup2(unsigned long) (main.cpp:1409)
==441176==    by 0xE4F349: Main::setup(char const*, int, char**, bool) (main.cpp:1331)
==441176==    by 0xE2300D: main (godot_linuxbsd.cpp:51)
==441176==
handle_crash: Program crashed with signal 11
Dumping the backtrace.
-- END OF BACKTRACE --
==441176==
==441176== Process terminating with default action of signal 6 (SIGABRT): dumping core
==441176==    at 0x6D16380: raise (in /usr/lib64/libc-2.31.so)
==441176==    by 0x6D01526: abort (in /usr/lib64/libc-2.31.so)
==441176==    by 0xE23E34: handle_crash(int) (crash_handler_linuxbsd.cpp:120)
==441176==    by 0x6D163EF: ??? (in /usr/lib64/libc-2.31.so)
==441176==    by 0x65FA2EE: memmove (vg_replace_strmem.c:1270)
==441176==    by 0x9ED48FE: UnknownInlinedFun (string_fortified.h:34)
==441176==    by 0x9ED48FE: radv_flush_constants (radv_cmd_buffer.c:2433)
==441176==    by 0x9ED5724: radv_upload_graphics_shader_descriptors (radv_cmd_buffer.c:2674)
==441176==    by 0x9ED88AF: radv_draw (radv_cmd_buffer.c:4860)
==441176==    by 0x9EDA84D: radv_CmdDrawIndexed (radv_cmd_buffer.c:4924)
==441176==    by 0x1A496A6: vkCmdDrawIndexed (trampoline.c:1698)
==441176==    by 0x19FB870: RenderingDeviceVulkan::draw_list_draw(long, bool, unsigned int, unsigned int) (rendering_device_vulkan.cpp:6228)
==441176==    by 0x334FE9F: RasterizerCanvasRD::_render_item(long, RasterizerCanvas::Item const*, long, Transform2D const&, RasterizerCanvas::Item*&, RasterizerCanvas::Light*, RasterizerCanvasRD::PipelineVariants*) (rasterizer_canvas_rd.cpp:788)
==441176==
==441176== HEAP SUMMARY:
==441176==     in use at exit: 103,100,524 bytes in 216,800 blocks
==441176==   total heap usage: 4,079,899 allocs, 3,863,099 frees, 2,057,016,341 bytes allocated
==441176==
==441176== LEAK SUMMARY:
==441176==    definitely lost: 7,752 bytes in 63 blocks
==441176==    indirectly lost: 10,392 bytes in 63 blocks
==441176==      possibly lost: 78,787,894 bytes in 200,823 blocks
==441176==    still reachable: 24,294,438 bytes in 15,849 blocks
==441176==                       of which reachable via heuristic:
==441176==                         newarray           : 262,808 bytes in 20 blocks
==441176==                         multipleinheritance: 3,744 bytes in 6 blocks
==441176==         suppressed: 48 bytes in 2 blocks
==441176== Rerun with --leak-check=full to see details of leaked memory
==441176==
==441176== Use --track-origins=yes to see where uninitialised values come from
==441176== For lists of detected and suppressed errors, rerun with: -s
==441176== ERROR SUMMARY: 318642 errors from 3 contexts (suppressed: 0 from 0)
Aborted (core dumped)

Godot 9856c8fda, release-debug tools, built with GCC 10.0.1 (10-20200411-0ubuntu1), running on Mac Pro 2013.
System:    Host: vmatest-MacPro Kernel: 5.4.0-42-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Gnome 3.36.3
           wm: gnome-shell dm: GDM3 Distro: Ubuntu 20.04.1 LTS (Focal Fossa)
CPU:       Topology: Quad Core model: Intel Xeon E5-1620 v2 bits: 64 type: MT MCP arch: Ivy Bridge rev: 4 L2 cache: 10.0 MiB
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 59201
           Speed: 1201 MHz min/max: 1200/3900 MHz Core speeds (MHz): 1: 1201 2: 1200 3: 1200 4: 1202 5: 1200 6: 1199 7: 1200
           8: 1202
Graphics:  Device-1: AMD Curacao XT / Trinidad XT [Radeon R7 370 / R9 270X/370X] vendor: Apple FirePro D300 driver: amdgpu
           v: kernel bus ID: 02:00.0 chip ID: 1002:6810
           Device-2: AMD Curacao XT / Trinidad XT [Radeon R7 370 / R9 270X/370X] vendor: Apple FirePro D300 driver: amdgpu
           v: kernel bus ID: 06:00.0 chip ID: 1002:6810
           Display: x11 server: X.Org 1.20.8 driver: amdgpu compositor: gnome-shell resolution: 3840x2160~30Hz, 2560x1440~60Hz
           OpenGL: renderer: AMD Radeon HD 8800 Series (PITCAIRN DRM 3.35.0 5.4.0-42-generic LLVM 10.0.1)
           v: 4.6 Mesa 20.2.0-devel (git-e2e89fb 2020-07-25 focal-oibaf-ppa) direct render: Yes

Godot is not crashing and not printing any errors, window is responding to events, but nothing except editor UI background color is displayed (after resizing window become black).

valgrind does seem to find some invalid reads:

Having the report valgrind errors, have you identified a root case of the crash?

I'm not very literate in valgrind but to me it seems to point to an invalid read in mesa, but that's about the same we know from the segfault already.

Here you create a command buffer:
https://github.com/godotengine/godot/blob/2efba270899b2852fa67cad05a55fc81decb24cd/drivers/vulkan/rendering_device_vulkan.cpp#L7186
maybe the buffer is in a bad state and Mesa than reads more that it ought to? I would dump its content at the place it crashes.

Thanks, I'll try that.
BTW, I just tried on a different computer with a Radeon RX Vega 56 (VEGA10) and it crashes in the same place. It has the exact same distro installed though so it doesn't exclude a distro-specific issue, though I think @RevoluPowered yesterday was experiencing the same crash with AMD on Linux with a different distro.

Thanks, I'll try that.
BTW, I just tried on a different computer with a Radeon RX Vega 56 (VEGA10) and it crashes in the same place. It has the exact same distro installed though so it doesn't exclude a distro-specific issue, though I think @RevoluPowered yesterday was experiencing the same crash with AMD on Linux with a different distro.

Yeah I received the same crash, definitely

@akien-mga I wonder if we can write some test for this logic?

I'm using a Radeon RX 5700 on Archlinux (Godot version via AUR: 4.0.dev.custom_build.de465c41d, GCC version: 10.2.0 and Mesa version: 20.1.7). I get these black windows too and if I click on them, it reacts like a GPU hangup I got more often when the Mesa drivers weren't stable for Navi. Everything freezes until the X-server restarts and after that the whole system doesn't respond except changing to another TTY to restart works. If I wait even longer the response to changing a TTY also gets denied.
Despite the reaction from trying to interact with the misrendered windows, I don't get any error output from Godot itself (even with verbose output).

@TheJackiMonster Try starting Godot editor with the --single-window command line argument. Make sure to open the editor directly when using it, as the project manager won't pass it on to the editor when opening a project. You can do this using godot --single-window /path/to/project/project.godot.

@Calinou Using the parameter gives me very similar results. It opens a project but the whole editor is black as well. The terminal which I used to run godot shows be a lot of error output (mostly: ERROR: Condition "O == nullptr" is true. Continuing.    at: build (core/math/quick_hull.cpp:382)).
Interacting with the window results in the GPU reset like before. I actually looked up the output from dmesg and found this:
[  222.800406] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
[  222.800513] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
[  227.931677] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, signaled seq=3773, emitted seq=3776
[  227.931773] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process godot pid 2267 thread godot pid 2267
[  227.931779] amdgpu 0000:0c:00.0: amdgpu: GPU reset begin!
[  231.932675] amdgpu 0000:0c:00.0: amdgpu: failed to suspend display audio
[  231.932949] ------------[ cut here ]------------
[  231.933010] WARNING: CPU: 4 PID: 271 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:3194 dcn20_validate_bandwidth_fp+0x7a/0xb0 [amdgpu]
[  231.933010] Modules linked in: fuse rfcomm hwmon_vid cmac algif_hash algif_skcipher af_alg bnep btusb uvcvideo btrtl btbcm btintel videobuf2_vmalloc videobuf2_memops bluetooth videobuf2_v4l2 videobuf2_common ecdh_generic videodev ecc input_leds nls_iso8859_1 nls_cp437 vfat fat eeepc_wmi asus_wmi battery sparse_keymap wmi_bmof mxm_wmi hid_steam snd_hda_codec_realtek rtw88_8822be rtw88_8822b snd_hda_codec_generic rtw88_pci ledtrig_audio rtw88_core snd_hda_codec_hdmi edac_mce_amd kvm_amd snd_hda_intel mousedev snd_intel_dspcfg mac80211 kvm snd_hda_codec snd_usb_audio snd_hda_core snd_usbmidi_lib snd_rawmidi snd_seq_device mc irqbypass snd_hwdep crct10dif_pclmul crc32_pclmul ghash_clmulni_intel cfg80211 hid_uclogic joydev snd_pcm aesni_intel blackmagic_io(POE) igb crypto_simd snd_timer cryptd ccp snd glue_helper rfkill sp5100_tco rapl pcspkr k10temp rng_core i2c_piix4 soundcore libarc4 dca evdev wmi mac_hid pinctrl_amd gpio_amdpt acpi_cpufreq vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE)
[  231.933027]  crypto_user ip_tables x_tables radeon hid_generic usbhid hid uas usb_storage ext4 crc32c_generic crc16 mbcache jbd2 crc32c_intel xhci_pci xhci_pci_renesas xhci_hcd amdgpu gpu_sched i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec rc_core ttm drm agpgart
[  231.933034] CPU: 4 PID: 271 Comm: kworker/4:2 Tainted: P           OE     5.8.8-arch1-1 #1
[  231.933035] Hardware name: System manufacturer System Product Name/ROG CROSSHAIR VI EXTREME, BIOS 7501 09/23/2019
[  231.933038] Workqueue: events drm_sched_job_timedout [gpu_sched]
[  231.933093] RIP: 0010:dcn20_validate_bandwidth_fp+0x7a/0xb0 [amdgpu]
[  231.933094] Code: 00 7b 35 22 85 a8 1e 00 00 75 2f 31 d2 f2 0f 11 85 d8 25 00 00 48 89 ee 4c 89 e7 e8 50 f6 ff ff 89 c2 22 95 a8 1e 00 00 75 2a <0f> 0b 48 89 9d d8 25 00 00 5b 5d 41 5c c3 75 c9 48 89 9d d8 25 00
[  231.933095] RSP: 0018:ffffbbc000acbc20 EFLAGS: 00010246
[  231.933096] RAX:<PHONE_NUMBER>000001 RBX:<PHONE_NUMBER>000000 RCX:<PHONE_NUMBER>61c404
[  231.933096] RDX:<PHONE_NUMBER>000000 RSI: 6dea001126d93bca RDI:<PHONE_NUMBER>0311a0
[  231.933096] RBP: ffffa30080820000 R08: ffffa300d6fd6000 R09: ffffa300ec150000
[  231.933097] R10: ffffa300d6fd6000 R11:<PHONE_NUMBER>000001 R12: ffffa300ec150000
[  231.933097] R13: ffffbbc000acbce0 R14: ffffa300efd98400 R15: ffffa30080820000
[  231.933098] FS:<PHONE_NUMBER>000000(0000) GS:ffffa300feb00000(0000) knlGS:0000000000000000
[  231.933099] CS:  0010 DS: 0000 ES: 0000 CR0:<PHONE_NUMBER>050033
[  231.933099] CR2: 000055d981e71088 CR3: 00000007a4e3a000 CR4:<PHONE_NUMBER>3406e0
[  231.933099] Call Trace:
[  231.933157]  dcn20_validate_bandwidth+0x24/0x40 [amdgpu]
[  231.933208]  dc_validate_global_state+0x2f2/0x390 [amdgpu]
[  231.933259]  ? dc_rem_all_planes_for_stream+0xcb/0x110 [amdgpu]
[  231.933314]  amdgpu_dm_commit_zero_streams+0xfe/0x140 [amdgpu]
[  231.933369]  dm_suspend+0x9a/0xb0 [amdgpu]
[  231.933407]  amdgpu_device_ip_suspend_phase1+0x83/0xe0 [amdgpu]
[  231.933446]  ? amdgpu_fence_process+0x4d/0x140 [amdgpu]
[  231.933483]  amdgpu_device_ip_suspend+0x1c/0x60 [amdgpu]
[  231.933535]  amdgpu_device_gpu_recover.cold+0x653/0xfd4 [amdgpu]
[  231.933584]  amdgpu_job_timedout+0x121/0x140 [amdgpu]
[  231.933586]  drm_sched_job_timedout+0x64/0xe0 [gpu_sched]
[  231.933589]  process_one_work+0x1da/0x3d0
[  231.933590]  worker_thread+0x4d/0x3d0
[  231.933591]  ? rescuer_thread+0x410/0x410
[  231.933592]  kthread+0x142/0x160
[  231.933593]  ? __kthread_bind_mask+0x60/0x60
[  231.933595]  ret_from_fork+0x22/0x30
[  231.933597] ---[ end trace 7c3dc8ab84e57f3c ]---

So maybe this helps somehow to fix it. ^^'

Because someone wrote it's a compilation specific problem I tried to compile everything with LLVM instead of GCC. Now I get a crash on startup:
[New Thread 0x7fffce0fc640 (LWP 6957)]
DisplayServer::_create_window 1 want rect: 709, 491, 501, 97 got rect 709, 491, 501, 97
[Thread 0x7fffe8be0640 (LWP 6938) exited]
[New Thread 0x7fffe8be0640 (LWP 6958)]
DisplayServer::_window_changed: 0 rect: 768, 457, 1024, 600

Thread 1 "godot.linuxbsd." received signal SIGSEGV, Segmentation fault.
0x00007ffff786dca8 in __memmove_avx_unaligned_erms () from /usr/lib/libc.so.6
(gdb) backtrace
#0  0x00007ffff786dca8 in __memmove_avx_unaligned_erms () from /usr/lib/libc.so.6
#1  0x00007ffff658f970 in ?? () from /usr/lib/libvulkan_radeon.so
#2  0x00007ffff658fad3 in ?? () from /usr/lib/libvulkan_radeon.so
#3  0x00007ffff659749c in ?? () from /usr/lib/libvulkan_radeon.so
#4  0x00007ffff659765e in ?? () from /usr/lib/libvulkan_radeon.so
#5  0x0000000001249b46 in draw_list_draw () at drivers/vulkan/rendering_device_vulkan.cpp:6228
#6  0x000000000318ab81 in _render_item () at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:919
#7  0x000000000318bb17 in _render_items () at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:1362
#8  0x000000000318c3b0 in canvas_render_items () at servers/rendering/rasterizer_rd/rasterizer_canvas_rd.cpp:1524
#9  0x00000000031738ea in _render_canvas_item_tree () at servers/rendering/rendering_server_canvas.cpp:71
#10 0x00000000031747f5 in render_canvas () at servers/rendering/rendering_server_canvas.cpp:265
#11 0x0000000002f94804 in _draw_viewport () at servers/rendering/rendering_server_viewport.cpp:257
#12 0x0000000002f95314 in draw_viewports () at servers/rendering/rendering_server_viewport.cpp:413
#13 0x0000000002f6b2d0 in draw () at servers/rendering/rendering_server_raster.cpp:112
#14 0x000000000049d130 in iteration () at main/main.cpp:2437
#15 0x0000000000466ec6 in run () at platform/linuxbsd/os_linuxbsd.cpp:240
#16 0x0000000000464c03 in main () at platform/linuxbsd/godot_linuxbsd.cpp:58

So I would assume the problem comes from the newer vulkan-device-drivers for Godot? Vulkan is also really susceptible to bugs on specifically AMD GPUs because other drivers (for example from Nvidia) don't report all types of wrong behavior regarding to the documentation.
I used scons platform=linuxbsd target=debug use_llvm=yes -j$(nproc) and scons platform=linuxbsd target=release_debug use_llvm=yes -j$(nproc) to compile. Both resulted in the same crash.

@TheJackiMonster Please open a dedicated bug report for this. This issue is specifically about a segfault that happens when using optimizations with GCC. Not with debug builds, and not with LLVM.


Pihole-Dark on Docker Version?

Hello,
Thanks for making such a lovely dark theme for the Pihole, but I wanted know is it compatible with Docker Version of Pihole?
If not can you somehow get in touch with my Pihole Devs so both of you can find a way to themes work natively so we can change them from the Admin CP.
Regards~

Just run docker exec -it <PIHOLE_CONTAINER_ID> bash and run the same commands from the README as you would if it were a local machine.

Alright I tried your above mentioned guide and this happened:
http://pastehere.xyz/iDD6WyXw/

That install.sh script you ran is for setting up the Pi-hole container when it is first started. It broke your Pi-hole container because it tried installing it from scratch (e.g. the installPihole line).
Restart your Docker container then follow the instructions from the README to first download the dark script (with the same name install.sh), then execute it.
docker exec -it bash

# From the README (you may or may not need sudo)
cd /var/www/html/
sudo wget https://raw.githubusercontent.com/lkd70/PiHole-Dark/master/install.sh
sudo chmod +x install.sh
sudo ./install.sh
# Follow the onscreen instructions!

I tried it, but now I ran into this issue
sudo wget https://raw.githubusercontent.com/lkd70/PiHole-Dark/master/install.sh
--2019-08-17 23:08:31--  https://raw.githubusercontent.com/lkd70/PiHole-Dark/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>, ::
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... failed: Connection refused.
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|::|:443... failed: Connection refused.

So now I did it the manual way:
docker exec - it <pihole container id> bash
cd /var/www/html
cp -f admin/style/vendor/AdminLTE.min.css admin/style/vendor/AdminLTE.min.bkp.css
git clone https://github.com/lkd70/PiHole-Dark.git temp
rm -f admin/style/vendor/AdminLTE.min.css
cp temp/admin/style/vendor/AdminLTE.min.css admin/style/vendor/AdminLTE.min.css
cp temp/admin/style/vendor/AdminLTE.css admin/style/vendor/AdminLTE.css
rm -rf temp/

Looks like it didn't work the first way because your Pi-hole container is blocking raw.githubusercontent.com, as you can't connect to that domain but can git clone from github.com. Perhaps query your pihole logs to see if is being blocked.

Ah, you're very correct. It was being blocked (face palm). All is working now. Thanks again

You’re welcome, feel free to close this issue now that it’s resolved


Unhandled Exception: Bad state: Cannot write to socket, it is closed

am using your package for standalone desktop application with mysql local database.
this works fine when mysql workbench is open but when pc is restarted i'll loose mysql instance and get the error listed above.
Is there any method to programmatically start Mysql connection?

i dont know how to use
var connection=await db1.createConnection();

 void testConnect() async {
    var res = await db.isConnectionAlive();
    print(res);
  }

  Timer.periodic(const Duration(seconds: 3), (timer) {
    testConnect();
  });

I don't know if it will help.
@mayur-16

package works perfectly fine only when if the MySql workbench is opened before this flutter app.
i dont know whether i have to configure any settings in Mysql in my machine to allow access to fetch data directly..
problem is whenenever have to use my application ,first i have to open Mysql through command line client. i dont want this extra task . is there any workaround?
here is my simple code..
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:mysql_utils/mysql1/src/single_connection.dart';
import 'package:mysql_utils/mysql_utils.dart';

class Homepage extends StatefulWidget {
  const Homepage({Key? key}) : super(key: key);

  @override
  _HomepageState createState() => _HomepageState();
}

class _HomepageState extends State<Homepage> {
  MysqlUtils? db;

  @override
  void initState() {
    super.initState();
    initializeDatabase();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(

      body: Center(
            child: TextButton.icon(
                onPressed: () {
                  log("pressed");
                  db!=null? getDatafromdatabase():ScaffoldMessenger.of(context)
                      .showSnackBar(const SnackBar(content: Text("Please wait a second..")));
                },
                icon: const Icon(Icons.get_app),
                label: const Text("get data!")),
          ),
    );
  }

  void getDatafromdatabase() async {

    log("getting data",name: "data");

	Results row = await db!.query('SELECT * FROM mydetails',[]);
    log(row.toString(), name: "results");

  }

  void initializeDatabase(){
    MysqlUtils(
        settings: ConnectionSettings(
          //host: '192.168.**.***',
          host: 'localhost',
          port: 3306,
          user: 'root',
          password: '*****',
          db: 'login',
          useCompression: false,
          useSSL: false,
          timeout: const Duration(seconds: 8),
        ),
        pool: true,
        errorLog: (error) {
          log("-----$error",name: "error");
        },
        sqlLog: (sql) {
          log("-----$sql",name:"sql");
        },
        connectInit: (MysqlUtils db1) async{
          log("complete",name:"connectInit");
          db=db1;
        });
  }

}

and here is the console output..
Syncing files to device Windows...
Restarted application in 735ms.
[connectInit] complete
[log] pressed
[data] getting data
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Error 1156 (08S01): Got packets out of order
#0      Handler.checkResponse (package:mysql_utils/mysql1/src/handlers/handler.dart:77:7)
#1      QueryStreamHandler.processResponse (package:mysql_utils/mysql1/src/query/query_stream_handler.dart:50:18)
#2      ReqRespConnection._handleData (package:mysql_utils/mysql1/src/single_connection.dart:350:32)
#3      ReqRespConnection._handleHeader (package:mysql_utils/mysql1/src/single_connection.dart:319:13)
<asynchronous suspension>
#4      ReqRespConnection._readPacket (package:mysql_utils/mysql1/src/single_connection.dart:304:7)
<asynchronous suspension>

some times i get this error ,other times i get bad state: cannot write to socket,it is closed error.
i dont know whether its the issue from package or local Mysql server side.
am new to local database concepts(MySql). it would be very helpful if you helped me to sort out this issue .. thank you so much.

class Common {
   MysqlUtils get mysqlAPP => MysqlUtils(
        settings: ConnectionSettings(
          //host: '192.168.**.***',
          host: 'localhost',
          port: 3306,
          user: 'root',
          password: '*****',
          db: 'login',
          useCompression: false,
          useSSL: false,
          timeout: const Duration(seconds: 8),
        ),
        pool: true,
        errorLog: (error) {
          log("-----$error",name: "error");
        },
        sqlLog: (sql) {
          log("-----$sql",name:"sql");
        },
        connectInit: (MysqlUtils db1) async{
          log("complete",name:"connectInit");
          db=db1;
        });
}

Results row = await Common.mysqlAPP!.query('SELECT * FROM mydetails',[]);

The code is not tested. This package is more suitable for server side.

@biner88
I had a similar issue with the "re"connection (let's better say after timeout I always needed to check if connection is alive).
I actually solved it by patching your code in two locations in this way
///query
Future query(String sql, List<Object?>? values,
{debug = false}) async {
var queryStr = '$sql  $values';
queryTimes++;
if (debug) _sqlLog(queryStr);
// BEGIN INSERT CODE
await isConnectionAlive();
// END INSERT CODE
var res = await (await conn).query(sql, values);
return res;
}
I did the same in queryMulti and for me know it always works because as you mentioned above the isConnectionAlive successfully reconnects in case the mysql connection has times out.

i cleared the issue using this step..
now app is working perfectly fine even without opening work bench to create local mysql instance.


[ISSUE #7941]Increase annotation

increase missing annotation

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

Project coverage is 42.86%. Comparing base (402d31a) to head (c0efcc9).
Report is 11 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #7959   +/-   ##
==========================================
  Coverage      42.85%   42.86%
- Complexity     10351    10354    +3
==========================================
  Files           1270     1270
  Lines          88597    88597
  Branches       11393    11393
==========================================
+ Hits           37969    37973    +4
+ Misses         45951    45945    -6
- Partials        4677     4679    +2

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


GPU type and OOM

Hi, Thank you for your great work!
In this code, batch_size is set to 4. But I encountered Out of Memory error. I couldn't find the hardware configuration for the experiment in the paper either. How many GPUs do you use to train for batch_size = 4? (I noticed that there is distributed training such as SLURM in the code) What type of GPU and how much memory they have?
Thank you.

I meet the same question, by changing the batch size to 2 on each GPU, it costs about 15.5G memory. I think a 32G GPU (v100) or 48G GPU (RTX 8000) is needed when using bs=4 or higher.


Support for native GCS artifact storage and retrieval

Currently, if you want to use Google Cloud Storage for artifact storage, you do it using the s3 artifact store type and googles "Interoperability keys" The problem with this approach is that googles implementation of the S3 API is quirky, and interoperability keys are associated with regular user accounts only, rather than service accounts.  This makes them cumbersome to use in production settings.
In this PR, I add native support for GCS using the google cloud storage library.  The new gcs artifact configuration takes a bucket name as its sole argument. GCS authorization is provided in the form of a json service account key file, which is mounted into the init and exec containers in the workflow pod from a k8s secret. The name of the k8s secret is provided to the workflow controller by setting the GOOGLE_CREDENTIALS_SECRET environment variable.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I've addressed the comments on this and tests are passing

FYI, Jesse is on vacation at the moment.

It would be nice to get this support merged.

Is there any reason why this is not merged?

Of related note -- the current use of Minio to list folders in GCS is incorrect, with a PR fix here:
https://github.com/argoproj/pkg/pull/6

This would be great :)

can you resolve the conflicts? I will review it

Looks like google has a new product offering using Argo under the hood. https://cloud.google.com/blog/products/ai-machine-learning/introducing-cloud-ai-platform-pipelines
@amygdala do you know if the team at google will be submitting anything related to improved GCS support? Or is it not using GCS?

Thanks all

Looks like google has a new product offering using Argo under the hood. https://cloud.google.com/blog/products/ai-machine-learning/introducing-cloud-ai-platform-pipelines
@amygdala do you know if the team at google will be submitting anything related to improved GCS support? Or is it not using GCS?

In fact CAIP Pipelines is using Kubeflow Pipelines under the hood.  Let me find out who is/was working on this issue at the KF end.

This is a popular feature. Would anyone like to take over?

Please review the new implementation at #2484

@whynowy can we close this PR?

@whynowy can we close this PR?

Yes.

See #2484


KOGITO-5685 RHPAM BDD tests with events

https://issues.redhat.com/browse/KOGITO-5685
Related PRs:

https://github.com/kiegroup/kogito-operator/pull/968
https://github.com/kiegroup/rhpam-kogito-operator/pull/63

Many thanks for submitting your Pull Request :heart:!
Please make sure your PR meets the following requirements:

[x] You have read the contributors' guide
[x] Pull Request title is properly formatted: [KOGITO-XYZ] Subject
[x] Pull Request contains a link to the JIRA issue
[x] Pull Request contains a description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket
[x] Your feature/bug fix has a unit test that verifies it
[x] You've ran make before-pr and everything is working accordingly
[ ] You've tested the new feature/bug fix in an actual OpenShift cluster
[ ] You've added a RELEASE_NOTES.md entry regarding this change

Need first https://github.com/kiegroup/kogito-operator/pull/966 to be merged

/jenkins test

@sutaakar the issue you fixed on the other PR about the headers, is related with the failure here?

@spolti Yes, it is related.

/jenkins test

/jenkins test

BDD tests failure is Grafana one (known issue)


Extend the policheck exclusion list to include dist

Just add DIST I don't think those other entries are needed.

Done.


Xamarin Android really working ?

I got compiler warning like:
"Found conflicts between different versions of the same dependent assembly that could not be resolved."
when adding Newtonsoft.Json via nuget to my solution (which is a pcl) library and an Android application.
It seems to be, that Newtonsoft.Json is referencing "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", but this could noit be found - instead a "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" found.
3>          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Microsoft.CSharp.dll", but its name "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" didn't match.
3>          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Microsoft.CSharp.exe", but it didn't exist.
3>          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\Microsoft.CSharp.winmd", but it didn't exist.
3>          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\Microsoft.CSharp.dll", but it didn't exist.
3>          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\Microsoft.CSharp.exe", but it didn't exist.
3>          For SearchPath "{AssemblyFolders}".
3>          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Microsoft.CSharp.winmd", but it didn't exist.
3>          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Microsoft.CSharp.dll", but it didn't exist.
3>          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Microsoft.CSharp.exe", but it didn't exist.
3>          For SearchPath "bin\Debug".
3>          Considered "bin\Debug\Microsoft.CSharp.winmd", but it didn't exist.
3>          Considered "bin\Debug\Microsoft.CSharp.dll", but it didn't exist.
3>          Considered "bin\Debug\Microsoft.CSharp.exe", but it didn't exist.
3>      Required by "C:\projects\webcati_cs\webcati_cs\bin\Debug\webcati.dll".
3>  There was a conflict between "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
3>      "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
3>      References which depend on "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Microsoft.CSharp.dll].
3>          C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Microsoft.CSharp.dll
3>            Project file item includes which caused reference "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Microsoft.CSharp.dll".
3>              Microsoft.CSharp
3>      References which depend on "Microsoft.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [].
3>          C:\projects\webcati_cs\webcati_cs\bin\Debug\Newtonsoft.Json.dll
3>            Project file item includes which caused reference "C:\projects\webcati_cs\webcati_cs\bin\Debug\Newtonsoft.Json.dll".

I don't know. I can't have Xamarin on my computer. Ask Xamarin guys.

A workaround is to download Newtonsoft.Json 7.0.1 from Xamarin directly and work with that version. I was able to deploy and execute my app at once on an Android device ... with that version.

The Portable40 assembly is back in 10.0.2. Use that.

How do I use the Portable40 assembly in Xamarin? It uses portable-net45+win8+wp8+wpa81\Newtonsoft.Json.dll by default.


test: Cypress | Replace static with Dynamic waits - Part II

Description

This PR removes hard wait from - cypress/e2e/Regression/Apps/ folder specs & fix as needed:
- /Apps/CommunityIssues_Spec.ts
- /Apps/[EchoApiCMS_spec.js
- /Apps/ImportExportForkApplication_spec.js
- /Apps/MongoDBShoppingCart_spec.ts
- /Apps/PgAdmin_spec.js
- /Apps/PromisesApp_spec.js
This PR also removes Users mock ds dependency from below specs (using TED instead)
- ClientSide/Widgets/ListV2/ListV2_PageNo_PageSize_spec.js
- ClientSide/Widgets/ListV2/Listv2_BasicServerSideData_spec.js
Fixes Sanity/Datasources/MockDBs_Spec.ts - for record count validation

Type of change

Script fix (non-breaking change which fixes an issue)

Testing
How Has This Been Tested?

[X] Cypress CI runs

Checklist:
QA activity:

[X] Added Test Plan Approved label after Cypress tests were reviewed

Summary by CodeRabbit
Summary by CodeRabbit

Tests

Optimized test execution by removing unnecessary wait times.
Streamlined test flows by replacing explicit waits with more efficient checks for element presence and visibility.
Updated test logic to reflect changes in data source creation and query execution.
Adjusted test configurations and paths for improved test management.

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit

/ci-test-limit


Add react controls from infinitered/ai-lab

We would like to support more controls, we currently only have support for a website control: https://github.com/hal9ai/hal9ai/blob/main/scripts/controls/website.txt.js -- Community members have suggested we add support for others advanced controls like: https://github.com/infinitered/ai-lab

Gonna leave this open for now, not sure if we should close this


Allow Accelerate linkage, deny veclibfort & lapack

Accelerate provides more than just BLAS and LAPACK functionality, see
https://developer.apple.com/documentation/accelerate

Veclibfort exists only to wrap Accelerate's BLAS/LAPACK

LAPACK is a slow, seldom updated reference implementation

Encourage usage of OpenBLAS

Reverts PR #6130

[X] Have you followed the guidelines in our Contributing document?

[X] Have you checked to ensure there aren't other open Pull Requests for the same change?

[X] Have you added an explanation of what your changes do and why you'd like us to include them?

[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

LMK if we want/need a unit test.
CC: @jonchang
Also, I'm really tempted to add -DBLA_VENDOR=OpenBLAS to std_cmake_args. There are some cases where formulae may want to remove this though, like if they depend on scalapack or similar. If the formula never calls find_package(BLAS) or find_package(LAPACK) (or they provide their own versions of these intrinsic CMake find modules) then a developer warning will be triggered, but which should be silenced because, IIRC, we pass -Wno-dev.

Could also set BLAS_ROOT and LAPACK_ROOT in the environment to point to OpenBLAS.

I didn’t know that Accelerate did all of that, so agree with the PR in principle. Though, are there separate dylibs for BLAS vs other functionality? On mobile so can’t check. If so we could narrow it to only warn links against Accelerate’s BLAS while permitting other uses.
My concern with setting the default BLAS vendor in std_cmake_args is that formula authors wont know to edit that if they want to use a different BLAS implementation. Perhaps an audit if eg someone depends on veclibfort on a cmake build?

This PR triggers audit failures whenever depends_on “veclibfort” || depends_on “lapack” for all formula.
I agree with your concerns about -DBLA_VENDOR=..., probably a bad idea, but it would be nice to try to force uniformity. ¯\_(ツ)_/¯
I can see if it’s possible to detect if packages are using Accelerate specifically for BLAS/LAPACK

Does anyone know how to find out which dylibs within a framework are linked against?
@jonchang @MikeMcQuaid I can see within the Accelerate Framework there are BLAS and LAPACK specific dylibs, but I'm not sure how to figure out what a dylib (e.g. from veclibfort) links to within a Framework. Any ideas?

Does brew linkage provide this information? I recall seeing specific libBLAS links but can’t confirm right now.

No, if something links w/ accelerate it just shows the framework.

I don’t think we should change the general CMake behaviour. Otherwise 👍🏻

Thanks both!


UnicodeDecodeError in urllib.quote() after call OAuth function in wechatpy

问题描述 (Description)
For Python 2.7, commit https://github.com/jxtech/wechatpy/commit/3610e8112fbee2d224c11b961ec73ea3ce65e0af introduce a new problem: cache pollution in quote(). It causes UnicodeDecodeError in subsequent calls to quote(..., safe='') with a non-ascii url parameter value, if any function in wechatpy which involves in calling quote(..., safe='') (the safe parameter is a unicode) gets called first in a Python process.
配置信息 (Environment/Version)

OS
macOS 10.13.5

Python
2.7

wechatpy
1.7.4

重现步骤 (Reproducing)
(This get discussed in https://github.com/jxtech/wechatpy/issues/183)
For example, after starting a Django dev server, first make an OAuth request in WeChat devtools which is handled by wechatpy, then make a fuzzy search with non-ascii characters in Django admin. A typical traceback would look like this:
  ...
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 1297, in quote
    if not s.rstrip(safe):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)

The corresponding interactive traceback view in Django would look like this:
...
/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py in quote
1290.         (quoter, safe) = _safe_quoters[cachekey]
1291.     except KeyError:
1292.         safe_map = _safe_map.copy()
1293.         safe_map.update([(c, c) for c in safe])
1294.         quoter = safe_map.__getitem__
1295.         safe = always_safe + safe
1296.         _safe_quoters[cachekey] = (quoter, safe)
1297.     if not s.rstrip(safe): ...
1298.         return s
1299.     return ''.join(map(quoter, s))
1300.
1301. def quote_plus(s, safe=''):
1302.     """Quote the query fragment of a URL; replacing ' ' with '+'"""
1303.     if ' ' in s:

Local vars
Variable | Value
      -- | --
cachekey | ('', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-')
  quoter | <built-in method __getitem__ of dict object at 0x10e5b4d70>
       s | '\xe4\xb8\xad'
    safe | u'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-'

As you can see, the safe variable from _safe_quoters dict (as a cache) becomes a unicode string, which ought to be a byte string.
If you make the fuzzy search in Django admin first, everything is fine.
The proper fix in wechatpy should be calling quote with byte strings, like this: quote(self.redirect_url, safe=b'') (because of the from __future__ import unicode_literals statement at the top of a file).
A temporary fix in an existing (Python 2.7) project would be calling the following code in a bootstrap script, so the quote() cache is filled with a proper value:
from urllib import quote

quote('non-empty-string', safe='')

A good place for a Django project would be <project_name>/__init__.py.

https://github.com/jxtech/wechatpy/pull/376


[Snyk] Security upgrade org.apache.kafka:kafka-clients from 1.1.1 to 3.5.1

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

kafka-1-0/pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

616/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.9
Integer Overflow or Wraparound SNYK-JAVA-ORGXERIALSNAPPY-5710959
org.apache.kafka:kafka-clients:  1.1.1 -> 3.5.1
Yes
Proof of Concept

696/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.5
Denial of Service (DoS) SNYK-JAVA-ORGXERIALSNAPPY-5710960
org.apache.kafka:kafka-clients:  1.1.1 -> 3.5.1
Yes
Proof of Concept

616/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.9
Integer Overflow or Wraparound SNYK-JAVA-ORGXERIALSNAPPY-5710961
org.apache.kafka:kafka-clients:  1.1.1 -> 3.5.1
Yes
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Denial of Service (DoS)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Use ADO feeds to install packages in CI builds

Description
Updates our pipeline's install template to use the feed configured by ado-feeds-primary-registry. For the public project (PR builds), this is still npmjs. For internal project (CI builds), this points to an ADO feed that upstreams npmjs. This puts us closer to Microsoft OSS guidance here, specifically:

Microsoft teams building production-grade software need to use Central Feed Services to pull their components from an Azure Artifacts feed that upstreams and protects Microsoft, instead of using publicly-available package managers.

with this section being the applicable one for microsoft/FluidFramework.
This PR also updates a number of inlined "install dependencies" commands to use this template instead.

prototyping a cleaner way to do this, going to close this for now to reduce noise.


guide: micronaut OAuth 2.0 Auth0

To generate the guide locally run:
./gradlew -Dmicronaut.guide=micronaut-oauth2-auth0 build
open build/dist/micronaut-oauth2-auth0-gradle-java.html

You might want to move java/src/main/resources to src/main/resources now so those files won't be duplicated when you add Groovy and Kotlin source

@wiesej @kroegerk I would like to merge this guide Please, find attach a PDF version for convenience.
Secure a Micronaut application with Auth0.pdf

I've attached a copy of the PDF with several minor corrections noted in the comments. Let me know if you have any questions.
Secure.a.Micronaut.application.with.Auth0-kk-edits.pdf

@kroegerk  Can you submit a PR with your comments or do a PR to this file with your suggested changes.
https://github.com/micronaut-projects/micronaut-guides/pull/500/files#diff-7cdc7503290deaa24152ab4d7f6b937acd4939f60a2133b5d1aecad723a9372d
thanks


Provide a cli

Would be nice to have a simple cli, possibly compatible with c++filt.

I believe that's handled by https://crates.io/crates/rustfilt!

Oh, I didn't notice it, probably it will need an update once the new mangling rules land :)


Upgrade to webpack 2

Karma is using webpack to bundle the source for testing.

Coverage remained the same at 100.0% when pulling 34048ade1ab1bd94171d6999e3b8bb15a484414b on gdub22:webpack2 into c4f3fb0e4c18bd502b9084a11149749fa6a08c9b on developit:master.

Coverage remained the same at 100.0% when pulling 8d29b0f2dac910403b97d8b229474729950f300a on gdub22:webpack2 into c4f3fb0e4c18bd502b9084a11149749fa6a08c9b on developit:master.

Coverage remained the same at 100.0% when pulling 145822ebdbd3380f104bf8f1e4be47f42c766dff on gdub22:webpack2 into abcdcdaa55200a98301e571cef6223b4ed50f565 on developit:master.

I'm surprised this works with Babel 5! haha

Ha yea, preact is still depending on babel-loader 5.x which uses babel 5.x.  Webpack is essentially just passing the options through.


NCTL: setup nightlies on feat-2.0

Changes:

utilize release-2.0.0 branch of casper-client-rs
rename second cron to match branch

Ticket: https://app.zenhub.com/workspaces/cn-sre-60d363546afb85000e491ff6/issues/casper-network/sre/436

bors try

bors try

bors r+


Relative file location seems to have issue

The link created like this does not work.
[The PDF Document](pdf/document.pdf)
So if .md file is at file:///C:/my-md-wiki/README.md, then the link should point to file:///C:/my-md-wiki/pdf/document.pdf, but that is not happening.

I'm having this same problem.

I have this problem as well. Also note that this is a duplicate of #73 . The bug is in the addon's link sanitizer logic.

I'm facing the same problem.
On Chrome you can disable "sanitizer", but here on firefox you don't.


Add option for color change over time

Option should include a time interval in seconds.

inb4 nyancat rainbow.


[FEATURE] Add Velero as an add on to the accelerator.

Is your feature request related to a problem? Please describe
A clear and concise description of what the problem is.
Having a tool to backup and restore your Kubernetes cluster resources and persistent volumes.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Adding valero as an add on to the accelerator.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Velero is a tool to backup and restore your Kubernetes cluster resources and persistent volumes. Velero lets you :

Take backups of your cluster and restore in case of loss.
Migrate cluster resources to other clusters.
Replicate your production cluster to development and testing clusters.

@greengangsta this will be a great addon to have. Please feel free to submit a PR for the addon along with a complete example documenting the use case.


Collapse all children in explorer tree?

VSCode Version: 1.10.0
OS Version: 10.12.3

It would be most convenient if I could right-click a folder in the explorer tree and choose "collapse all children".
Many times, over the course of the day, I have opened many folders and subfolders.  This makes it difficult to focus/locate what I am currently working on.  I need to close each folder and its parent(s) in turn.
MacOS' Finder has the ability to collapse a folder and all child folders by option-click on the disclosure
triangle, as in

As you can see when I re-open it, the child folder had been closed along with its parent.
I would love to be able to do this with my main "app" folder, and then open it and open the child module I need to actually work on.

Is https://github.com/Microsoft/vscode/issues/9456


[4.1][bug-fix] Fix upload fields name setup in wrapper.

This is the fix for: #2784

A new inspection was created.

The inspection completed: No new issues

Closing in favor of #2862


Can plugin response transformer support complicated json payload modification?

Summary
By reading the documentation and plugin code, it looks the current response transformer can only support simple key-value pair modification in JSON payload. When the payload is more complicated, e.g. nested JSON data structure, including array, the current plugin cannot handle it as expected.
As an example:
{
  "field1": "value1a",       // OK to change to value1b
  "field2": {
    "sub-field1": "value1a", // Can be changed to value1b?
    "sub-field2": "value2a"  // Can be changed to value2b?
  },
  "items": [
    {
      "field3": "value3a"    // Can be changed to value3b?
    }
  ]
}

Can it be improved, e.g. to use json path, to modify values as above.

Hi, that is not possible to do in the existing open source response transformer.
The advanced response transformer plugin, which is part of the Kong Enterprise offering, does provide a way to perform the kind of transformation you want (by using custom Lua code). If you don't want to move on to Kong Enterprise, you can always program a custom plugin which does the bespoke transformation you need.


Suggestion: Preserve JSDoc comments on class properties

I wanted to document some properties of a class, and be able to iterate over the properties to automatically produce help information documenting its use at runtime. I had something like
class Foo {
  /** JSDoc documentation here */
  public bar: string;
  /** more JSDoc Documentation here */
  public baz: number;
// [...]
}

When I compiled this file, the JSDoc documentation only made it into the .d.ts file. Unfortunately since I wanted to access this information at runtime I couldn't find any libraries like jsdoc-parse which can cope with .d.ts files, and the comments are missing from the compiled .js file.

When I compiled this file, the JSDoc documentation only made it into the .d.ts file.

JavaScript does not have property declaration, nor classes. so what is the proposed emit for the above code sample?

Unfortunately since I wanted to access this information at runtime I couldn't find any libraries like jsdoc-parse which can cope with .d.ts files

you can use the typescript compiler to parse your .d.ts, it is javascript :D see using the compiler API wiki page  for more details.


Property 'payload' is missing in type 'AnyAction'

Minimum reproducible code snip:
import { Reducer, AnyAction } from 'redux'

type MyAction = {
  payload: number,
  type: 'TAP',
}

const f: Reducer<any, MyAction> = (s: any, ..._: any[]) => s
const r: Reducer<any, AnyAction> = f
// r is NOT ok.
void r

The error message of  r is:
Type 'Reducer<any, MyAction>' is not assignable to type 'Reducer<any, AnyAction>'.
  Types of parameters 'action' and 'action' are incompatible.
    Type 'AnyAction' is not assignable to type 'MyAction'.ts(2322)

However,
const a1: MyAction = {
  payload: 42,
  type: 'TAP',
}
const a2: AnyAction = a1
// a2 is OK
void a2

To be fixed.
Related Issues

Redux Reducer type error https://github.com/microsoft/TypeScript/issues/17154
Regression: 2.4.1 Generic type mismatch https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314863889

import { Reducer } from 'redux'

const count: Reducer<number> = (state: number) => {
  return state
}

void count

The above code will yield the following error message:
error TS2322: Type '(state: number) => number' is not assignable to type 'Reducer<number, AnyAction>'.
  Types of parameters 'state' and 'state' are incompatible.
    Type 'number | undefined' is not assignable to type 'number'.
      Type 'undefined' is not assignable to type 'number'.

3 const count: Reducer<number> = (state: number) => {

It turns out that we are declaring a function that can accept the state as the undefined | number type, however, the implemented function can only accept the number type of the argument, which can not satisfy the declaration.


Integrate repository with SonarCloud

In order to analyse the quality of the code and check if the quality is high, it is needed to integrate Sonarcloud into the project.
Moreover, add a summary of the code quality result at the top of the README page

The issue has been implemented


Wavelet transform analysis of 1-D signals using Python

Wavelet transform analysis of 1-D signals using Python
Introduction
A wavelet is a mathematical function useful in digital signal processing and image compression. A wavelet transform is a way of breaking down (“transforming”) a high-resolution signal into two parts. These parts are the low-resolution approximation part and a part that shows the details about what changed (“detail coefficients”). Very importantly, it does this in a way that allows us to recover the original from the approximation.
In this tutorial, we will see how to perform the wavelet transform of the 1-D signal. Also, we will look at the various packages used for this analysis. The commands and a sample of how to use such commands in an application.
Key takeaways

Distribution of Anaconda with Spyder IDE.
PyWavelet package of Anaconda.
Proper understanding of dwt, idwt, wavedec and waverec Python commands with example codes.
Sample wavelet transform of audio signals.

Article quality
This article covers into detail the wavelet transform with the various python packages and commands involved. It also give an example on how to implement these commands.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Sounds like a helpful topic - let's please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it). @collince777
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting it for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double-check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved


updated details for League of Legends

Details for deleting League of Legends account are outdated. In the past, it was possible to only deactivate an account but not delete it. Today, however, it's possible to completely delete an account, as described in the new link.

Hello @TamerShlash ,
This repo is not being maintained anymore, but we are trying to keep it alive on a fork here, would you kindly submit your PR there and close this one here? :)


Inject: Support lists

Closes: #1733

Hi @jwendell. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/ok-to-test

Kuat do you mind reviewing?
/assign @kyessenov

@jwendell: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
6def90ba81befac39926bb72bff371d8363cc50e
link
/test istio-pilot-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Usergroup detail section

Currently, in the stream detail section, we display information about the creator of the stream and the date when the stream was created. We would like to implement a similar feature to show the same information (creator and creation date) for user groups as well.

The date_created and creator fields may contain null values. This is intentional, as we do not have data for older user groups or those that have been imported.

When a null value is encountered, we will handle it in the same manner as we do in the stream section: if the creator is set to null, it will not be displayed.

CZO

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[x] Highlights technical choices and bugs encountered.
[x] Calls out remaining decisions and concerns.
[x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[x] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

@zulipbot  add "buddy review"

@zulipbot remove "buddy review"
@zulipbot add "mentor review"

@yogesh-sirsat can you look :)

made the changes what @adnan-td has suggested

@alya is this PR ready for sahil to review?

Sorry for the delay. Yes, please ping @sahil839 once conflicts are resolved.

@sahil839 made the changes according to your feedback and replied to a comment kindly check :)

Posted a handful of comments, otherwise this lgtm.

@timabbott Thanks for the review,  replied to your comments above kindly check :)

@timabbott, I’ve added backfill logic for the creator and date_created fields. Could you please review it?
When I ran the ./tools/provision command, it executed without showing any changes. To verify the backfill, I had to run it manually in the Django shell. Am I missing something regarding how to check the backfill automatically?

Since we’re frequently updating the user group, shouldn’t we have a substantial amount of related data in the dev environment, similar to what we have for channels?

Yeah running the backfill in the development environment should mostly just work.

@timabbott is PR required any other changes ?

I pushed here fixing several things:

Renumbered the migration and API feature level.
Split the migration into two migrations.
Fixed is_creator not being passed into the template. (So (you) was never displayed)
Used the canonical name for NamedUserGroup in the backfill migration.
Added import_realm.py code for handling the new fields in zulip=>zulip data import. I'd appreciate your testing this by exporting an organization where you've created a new group and importing the realm into another subdomain on your Zulip server and seeing if the data translated correctly.


VVenC 1.12 4:0:0 monochome

I was wondering why 4:0:0 was added in VVenC 1.12 as it's possible to encode monochome in 4:2:0 mode with very little difference in filesize. Maybe it's to stop synthetic grain from being created in the UV fields when FGS support becomes available.
I was looking at the Intel Xe GPU decode capability and realised that Intel Xe can only decode AV1 4:2:0 at present so they must have got around the problem of preventing synthetic grain from being created in the UV fields when monochrome content is used. It's possible that the AV1 film grain is re-constituted by the graphics driver and not the GPU.
If the UV fields are blank then FGS only applies to the Y field but the problem is how do you know the UV fields are blank if 4:0:0 mode isn't available. I was wondering how they got around this problem with AV1 film grain. The same problem effects VVenC except you now have 4:0:0 mode.

Monochrome support was always present in VVenC, but not in the app interface, and also buggy. We just had someone need it so we fixed the two minor issues. It has nothing to do with FGS.


[Task] Add nspect scans for all repos

Currently nspect scans only check the NVTabular repo. The other repos like Core, Systems, Models etc. must be added as well.

Duplicate of https://github.com/NVIDIA-Merlin/Merlin/issues/531


Chrome not closing?

Brilliant package! It simplifies things greatly :)
However after running any script with this package chrome refuses to close. Below is an example script I'm currently working on that produces this issue. Am I doing something wrong?
Chrome Version: 59.0.3071.109
const fs = require('fs')
const HeadlessChrome = require('simple-headless-chrome')

const browser = new HeadlessChrome({
	headless: true
})

async function printToPDF(url, params = {}) {
	await browser.init()
	await browser.goTo(url)

	var pdf = await browser.printToPDF(params)
	fs.writeFile('./output.pdf', pdf, 'base64',()=> {})

	await browser.close()
        // process.exit(0) // closes node process but not chrome
}

printToPDF('http://google.com')

Pass true
await browser.close(true)

All is working well now. Cheers @wuvluv! :)

I'm seeing the same behavior where chrome does not close. Passing true to close seemingly makes no difference.
Chrome version: 59.0.3071.115
Same script as posted by 7ammer

Hmm thats odd. Just an fyi I I'm using macOs.

@JarrodCTaylor, what OS are you using?

I am on macOS Sierra 10.12.5
Upon closer inspection the browser is closing. It hangs because the process never closes without an explicit process.exit. Is that expected behavior?

@JarrodCTaylor, I believe process.exit is not supposed to be used to end a task. In my case above I tried using it in the hope that ending the node session would also end chrome. However this was not the case hence I commented it out.

@JarrodCTaylor, do you still have the issue?
Cheers!
Luciano

This can be closed. Thanks


Add new config.Name helper to convert to NamespacedName

This is a common operation (more common on ambient branch) which is fairly verbose and easy to mix up the 2 string fields. Add a small helper
Please provide a description of this PR:

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster_istio
8d669c7aaa8859eb2963494bc29be0434d728fa7
link
true
/test integ-security-multicluster

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Repeatable templates are inefficient with changes to observable lists

 Issue by danschultz
Originally opened as dart-lang/sdk#18254

Attachment:
polymer_repeat_elements.zip (449.65 KB)

 Comment by jmesserly

i'm guessing this is polymer expressions, because core template_binding will not tear down everything & has unit tests for that behavior.

Removed Pkg-Polymer label.
Added Pkg-PolymerExpressions label.

 Comment by sethladd

Added Type-Defect, Area-Polymer, Triaged labels.

 Comment by sigmundch

Added this to the 1.6 milestone.
Added Priority-Medium label.

 Comment by jmesserly

Removed Area-Polymer label.
Added Pkg-Polymer, Area-Pkg labels.

 Comment by sigmundch

Removed this from the 1.6 milestone.
Added Polymer-P-1 label.

 Comment by sigmundch

Added PolymerMilestone-Next label.

 Comment by sigmundch

Removed Polymer-Milestone-Next label.

 Comment by sigmundch

Removed Polymer-P-1 label.
Added Polymer-Milestone-Next label.


[LinearProgress] Migrate to emotion

[x] I have followed (at least) the PR section of the contributing guide.

#24405

@mngu Well done


bug in 0.6.1 if i go to custom credits

Describe your bug here.
Paths.hx (line 352)
AttachedSprite.hx (line 27)
CreditsState.hx (line 133)
flixel/FlxGame.hx (line 637)
flixel/FlxGame.hx (line 724)
flixel/FlxGame.hx (line 677)
flixel/FlxGame.hx (line 545)
openfl/events/EventDispatcher.hx (line 402)
openfl/display/DisplayObject.hx (line 1399)
Uncaught Error: Null Object Reference
Please report this error to the GitHub page: https://github.com/ShadowMario/FNF-PsychEngine

Crash Handler written by: sqirra-rng

Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
yes, like lua scripts

bruh no, this will with clear psych enigne

Ok i fixed this. just no edits files of main game

Not a bug, you are missing credit icons


nitter: unstable-2023-03-28 -> unstable-2023-04-21

Description of changes
Motivation : Fix https://github.com/zedeus/nitter/issues/840 by updating Nitter (commit https://github.com/zedeus/nitter/commit/1ac389e7c75ced1762aa9c698ca2899cde668424).
Also updates karax as it is required to compile this new version.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 228279 run on x86_64-linux 1

2 packages built:

nimPackages.karax
nitter

Result of nixpkgs-review pr 228279 run on x86_64-linux 1

2 packages built:

nimPackages.karax
nitter


Unable to retrain an ssd-mobilenet model using voc format input

I have successfully managed to re-train the fruit example in the tutorial but when I try to retrain the picture example with voc files
the training runs OK but when I then try to convert the model using onnx_export.py I get the following errors.
RuntimeError: Error(s) in loading state_dict for SSD:
size mismatch for classification_headers.0.weight: copying a param with shape torch.Size([30, 512, 3, 3]) from checkpoint, the shape in current model is torch.Size([24, 512, 3, 3]).
size mismatch for classification_headers.0.bias: copying a param with shape torch.Size([30]) from checkpoint, the shape in current model is torch.Size([24]).
This seems to indicate that the mobilenet model I have trained is not the same layer format as the mobilnet model the utility is trying to generate. I have run this example in a docker container and outside a docker container and get the same results. I am not sure what the problem is due to. When I do the training I am using the correct mobilenet base model so I would expect it to generate the new model in the same format, which I would then expect to be in the required format for the onnx utility.
Any help would be appreciated.

Charles

P.S I have asked this question in the NVIDIA developers forum as well but I thought this might be a better place to ask it.

Can you check that you don't have a trailing newline (blank line) at the end of your labels.txt file?    Check both the labels.txt with your dataset and the one with your PyTorch model.

From: Charles Brain<EMAIL_ADDRESS>Sent: Saturday, November 28, 2020 3:56:12 AM
To: dusty-nv/jetson-inference<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [dusty-nv/jetson-inference] Unable to retrain an ssd-mobilenet model using voc format input (#820)
I have successfully managed to re-train the fruit example in the tutorial but when I try to retrain the picture example with voc files
the training runs OK but when I then try to convert the model using onnx_export.py I get the following errors.
RuntimeError: Error(s) in loading state_dict for SSD:
size mismatch for classification_headers.0.weight: copying a param with shape torch.Size([30, 512, 3, 3]) from checkpoint, the shape in current model is torch.Size([24, 512, 3, 3]).
size mismatch for classification_headers.0.bias: copying a param with shape torch.Size([30]) from checkpoint, the shape in current model is torch.Size([24]).
This seems to indicate that the mobilenet model I have trained is not the same layer format as the mobilnet model the utility is trying to generate. I have run this example in a docker container and outside a docker container and get the same results. I am not sure what the problem is due to. When I do the training I am using the correct mobilenet base model so I would expect it to generate the new model in the same format, which I would then expect to be in the required format for the onnx utility.
Any help would be appreciated.

Charles

P.S I have asked this question in the NVIDIA developers forum as well but I thought this might be a better place to ask it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/820, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADVEGKZZOTBBQRQDFJOJAUDSSC3KZANCNFSM4UFVEB7Q.

Thanks Dusty, you are a star, that fixed it.
What I have actually done is to modify camera-capture to input images directy from an SDR (Software Defined Radio) which I can then manually label. Eventually I am going to have to figure out how to do the training on my Linux machine which has an RTX3090 and probably train the model from scratch rather than using transfer learning.
Thanks again.

Charles

OK great, glad you got it to work.  Can you add a reply to the forum thread linking to this GitHub issue?
BTW you can run the PyTorch SSD code on a Linux PC.  It is a git submodule - https://github.com/dusty-nv/pytorch-ssd

From: Charles Brain<EMAIL_ADDRESS>Sent: Saturday, November 28, 2020 8:21:18 AM
To: dusty-nv/jetson-inference<EMAIL_ADDRESS>Cc: Dustin Franklin<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [dusty-nv/jetson-inference] Unable to retrain an ssd-mobilenet model using voc format input (#820)
Thanks Dusty, you are a star, that fixed it.
What I have actually done is to modify camera-capture to input images directy from an SDR (Software Defined Radio) which I can then manually label. Eventually I am going to have to figure out how to do the training on my Linux machine which has an RTX3090 and probably train the model from scratch rather than using transfer learning.
Thanks again.

Charles

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/820#issuecomment-735230501, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADVEGK4532AYALMYDUN5DSTSSD2M5ANCNFSM4UFVEB7Q.

OK will do and thanks again.


keepassxc vs. clipmenu

Hello,
I am trying out clipmenu. I encountered one problem. I am using keepassxc to manage my passwords. Sometimes, I have to manually copy paste the password. Keepassxc, to the best of knowledge, cleans the clipboard after sometime, but the password is always being recorded by clipmenud.

How can I get rid of recorded password? Where are the clips stored?
Is there any other solution other than clipctl enable/disable to prevent the passwords being recorded.

Thanks in advance

clipmenu doesn't hold the selection unless you have CM_OWN_SELECTIONS=1. Are you running with that? Can you show me the output of /proc/$(pgrep clipmenud)/environ?

Hello,
I am sorry to respond you late.  I have installed clipmenud via arch aur package. It installs a systemd user service. The service file is as follows.
[Unit]
Description=Clipmenu daemon

[Service]
ExecStart=/usr/bin/clipmenud
Restart=always
RestartSec=500ms

MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
ProtectControlGroups=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=
RestrictRealtime=yes

# We don't need to do any clean up, so if something hangs (borked xclip, etc),
# it's going to stay that way.
TimeoutStopSec=2

[Install]
WantedBy=default.target

I am using i3wm. I open up menu via following command.
bindsym $mod+c exec CM_LAUNCHER=rofi clipmenu -i -fn Terminus:size=8 -nb '#002b36' -nf '#839496' -sb '#073642' -sf '#93a1a1'

I did not do any other configuration. I believe  I am NOT running with CM_OWN_SELECTIONS=1 unless it is default setting to the best of my knowledge.
However I want clipmenu to record primary selection in addition to secondary as it does now.  I just want to understand, is there a way to prevent it not to track passwords from special applications etc.

You can also use CM_IGNORE_WINDOW, see clipmenud --help.

Hello,
I have checked window name with xprop.  xprop output is as follows. (I put XX in place of database name)
_NET_WM_USER_TIME(CARDINAL) = 80290238
_NET_WM_STATE(ATOM) =
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 7
_NET_WM_ICON(CARDINAL) =
_NET_WM_ICON_NAME(UTF8_STRING) =
XdndAware(ATOM) = BITMAP
WM_NAME(STRING) = "xx - KeePassXC"
_NET_WM_NAME(UTF8_STRING) = "xx - KeePassXC"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x3000008
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		window id # of group leader: 0x3000008
WM_CLIENT_MACHINE(STRING) = "xxxxxx"
_NET_WM_PID(CARDINAL) = 929
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 50331655
WM_CLASS(STRING) = "keepassxc", "KeePassXC"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		user specified location: 2562, 53
		user specified size: 1196 by 1865
		program specified minimum size: 800 by 500
		window gravity: Static

Based on that I have added following directive to systemd unit file under service section
Environment=CM_IGNORE_WINDOW=".*KeePassXC.*"

This is supposed to work based on your input.  I have made sure daemons are reloaded. I restarted the service. However clipmenud captures everthing from Keepassxc.
I also would like to point out, that help messages are just very terse. There are no examples. There is no man page. Github page is also has not much information. For example,  what type of regular expressions are valid, basic, extended, perl etc. It will be very helpful if you can improve the help messages along with github page.

@benibilme Its working for me.
I added this line in the shell environment file which in my case is zshenv
export CM_IGNORE_WINDOW="KeePassXC"

Closing as this applies to the old bash version, please feel free to resurface if it's a problem in clipmenu 7.


enhance error message for VM console already opened by other user

When user wants to open console that was already opened by other user, error appears.
Failed to retrieve VM console details
Forbidden
That's not much informative. It should tell the user that console is opened already by somebody else.

@leistnerova - Is this still an issue?  After #860 / #861 I think this should be all sorted out correctly.

Closing per @sjd78 's comment


Make a best effort to generate IDs without redirect

Attempt to generate IDs within dt.html and the DigiTrust.identity.request event without rewriting links through a redirect.
Make a best effort to only return a valid identity object when we have reason to believe third party cookies are actually supported.

Fixed in 1.2.0


Small update to response.js to make compatible with node-logging.

I noticed that restify isn't compatible out of the box with node-logging https://github.com/HerdHound/node-logging. This is because the response wrapper is missing the function that captures the finish event and re-emits it.

Thanks!


pos reg ATPase PMID:32204793

abolished positive regulation of ATPase activity
decreased positive regulation of ATPase activity

decreased positive regulation of ATPase activity FYPO:0007360
abolished positive regulation of ATPase activity FYPO:0007361
edit file: 9ed85f6cef4b306272a5cfd92e86f761e14d3063
release: b4d5fb5497d27d46cdb600d1ed2f9b79399fd932


[BUG]: drizzle-kit doesn't support ESM

Describe what you want
#here is my drizzle.config.ts
import { type Config } from "drizzle-kit";
export default {
  schema: "./src/agency-database/dbSchema",
  dialect: "postgresql",
  out: "./.dbscripts",
  dbCredentials: {
    url: process.env.DATABASE_URL,
  },
} satisfies Config;

under dbSchema folder there are two files:
- first.ts
- second.ts
export const mySchema = pgSchema("myschema");
export const agent = mySchema.table("agent", {
  email: text("email").primaryKey().notNull(),
  firstName: text("firstName"),
  lastName: text("lastName"),
});

import { mySchema } from "./schema.js";

export const myTable = mySchema.table(
  "my_table",
  {
    id: uuid("id").primaryKey(),
    name: text("name").notNull(),
    createdDate: timestamp("created_date").notNull(),
  }
);

When I start the project I had only one schema.ts file, which was configured under the drizzle-config with:

schema: "./src/agency-database/dbSchema/schema.ts"

Now, I'm trying to split it to two different files, in the second file there is an import to the first.js file.
In this case I'm getting the following error:
Error: Cannot find module './first.js'
attached is the project with the error file(The_Error)
example.zip

I believe this is currently being tracked in https://github.com/drizzle-team/drizzle-orm/issues/819

Closing in favor of #819.