https://bugs.kde.org/show_bug.cgi?id=521716

--- Comment #31 from Robin <[email protected]> ---
(In reply to Zamundaaa from comment #30)
> Created attachment 193859 [details]

❯ journalctl -b 0 | grep -i "copying"
jun 30 00:53:57 robin kwin_wayland[968]: copying QSize(2560, 1440) to
0x200000018937b03
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(1920, 1080) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(32, 32) to
0x200000440517901
jun 30 00:54:00 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:54:01 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:54:35 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:54:35 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:54:35 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:56:44 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:58:15 robin steam[3469]: Proton: Error while copying to
"/home/robin/.local/share/Steam/steamapps/compatdata/0/pfx/drive_c/windows/system32/amdxcffx64.dll":
No such file or directory
jun 30 00:58:21 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:58:21 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:58:21 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:58:24 robin steam[3469]: Proton: Error while copying to
"/home/robin/.local/share/Steam/steamapps/compatdata/0/pfx/drive_c/windows/system32/amdxcffx64.dll":
No such file or directory
jun 30 00:59:02 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 00:59:03 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:00:32 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:01:35 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:01:35 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:01:35 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:02:05 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:02:06 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:02:09 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:02:57 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:03:56 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:04:51 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:04:53 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:05:16 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:06:02 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0
jun 30 01:06:02 robin kwin_wayland[1314]: copying QSize(256, 256) to 0x0


First try

cd ~/gpucopybug && meson setup build && meson compile -C build &&
./build/gpucopybug
The Meson build system
Version: 1.11.1
Source dir: /home/robin/gpucopybug
Build dir: /home/robin/gpucopybug/build
Build type: native build
Project name: gpucopybug
Project version: 1.0.0
C++ compiler for the host machine: c++ (gcc 16.1.1 "c++ (GCC) 16.1.1 20260625")
C++ linker for the host machine: c++ ld.bfd 2.46.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/usr/bin/pkg-config) 2.5.1
Run-time dependency vulkan found: YES 1.4.350
Run-time dependency gbm found: YES 26.2.0-devel
Run-time dependency libdrm found: YES 2.4.134
Build targets in project: 1

Found ninja-1.13.2 at /usr/bin/ninja
INFO: autodetecting backend as ninja                                            
INFO: calculating backend command to run: /usr/bin/ninja -C
/home/robin/gpucopybug/build
ninja: Entering directory `/home/robin/gpucopybug/build'
[1/2] Compiling C++ object gpucopybug.p/main.cpp.o
FAILED: [code=1] gpucopybug.p/main.cpp.o 
c++ -Igpucopybug.p -I. -I.. -I/usr/include/libdrm -fdiagnostics-color=always
-D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17
-O0 -g -MD -MQ gpucopybug.p/main.cpp.o -MF gpucopybug.p/main.cpp.o.d -o
gpucopybug.p/main.cpp.o -c ../main.cpp
../main.cpp: In function ‘auto
createDevice(std::vector<vk::raii::PhysicalDevice>&, bool)’:
../main.cpp:24:20: error: ‘std::ranges’ no se ha declarado
   24 |     auto it = std::ranges::find_if(devices,
[type](vk::raii::PhysicalDevice &device) {
      |                    ^~~~~~
../main.cpp:31:35: error: ‘std::ranges’ no se ha declarado
   31 |     const bool hasTransfer = std::ranges::any_of(queueProperties,
[](const vk::QueueFamilyProperties &props) {
      |                                   ^~~~~~
../main.cpp: In function ‘void write(gbm_bo*)’:
../main.cpp:78:23: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   78 |     for (int y = 0; y < gbm_bo_get_height(buffer); y++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:79:27: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   79 |         for (int x = 0; x < gbm_bo_get_width(buffer); x++) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:80:45: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   80 |             dataPtr[y * stride / 4 + x] = x <
gbm_bo_get_width(buffer)/2 ? 0xFFAABBCC : 0x00000000;
      |                                          
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp: In function ‘bool check(gbm_bo*)’:
../main.cpp:91:23: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   91 |     for (int y = 0; y < gbm_bo_get_height(buffer); y++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:92:27: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   92 |         for (int x = 0; x < gbm_bo_get_width(buffer); x++) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:93:40: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   93 |             const uint32_t correct = x < gbm_bo_get_width(buffer)/2 ?
0xFFAABBCC : 0x00000000;
      |                                      ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp: En el ámbito global:
../main.cpp:122:6: error: ‘optional’ in namespace ‘std’ does not name a
template type
  122 | std::optional<uint32_t> findMemoryType(vk::raii::PhysicalDevice
&physicalDevice, uint32_t typeBits, vk::MemoryPropertyFlags
memoryPropertyFlags)
      |      ^~~~~~~~
../main.cpp:8:1: note: ‘std::optional’ is defined in header ‘<optional>’; this
is probably fixable by adding ‘#include <optional>’
    7 | #include <iostream>
  +++ |+#include <optional>
    8 | 
../main.cpp: In function ‘auto importDmabuf(vk::raii::PhysicalDevice&,
vk::raii::Device&, uint32_t, vk::ImageUsageFlags, gbm_bo*, vk::Format)’:
../main.cpp:136:26: warning: comparison of integer expressions of different
signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  136 |     for (size_t i = 0; i < gbm_bo_get_plane_count(buffer); i++) {
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:198:34: error: ‘findMemoryType’ was not declared in this scope; did
you mean ‘VkMemoryType’?
  198 |         const auto memoryIndex = findMemoryType(physicalDevice,
memRequirements.memoryRequirements.memoryTypeBits &
memoryFdProperties.memoryTypeBits, {});
      |                                  ^~~~~~~~~~~~~~
      |                                  VkMemoryType
../main.cpp: In function ‘int main(int, char**)’:
../main.cpp:253:25: error: ‘std::ranges’ no se ha declarado
  253 |     auto queueIt = std::ranges::find_if(integratedQueueProperties,
[](const VkQueueFamilyProperties &props) {
      |                         ^~~~~~
../main.cpp:261:14: error: ‘println’ no es un miembro de ‘std’
  261 |         std::println(std::cerr, "Fail here");
      |              ^~~~~~~
../main.cpp:261:14: note: ‘std::println’ is only available from C++23 onwards
../main.cpp:327:14: error: ‘println’ no es un miembro de ‘std’
  327 |         std::println("test passed");
      |              ^~~~~~~
../main.cpp:327:14: note: ‘std::println’ is only available from C++23 onwards
../main.cpp:330:14: error: ‘println’ no es un miembro de ‘std’
  330 |         std::println(std::cerr, "Buffer copy went wrong");
      |              ^~~~~~~
../main.cpp:330:14: note: ‘std::println’ is only available from C++23 onwards
ninja: build stopped: subcommand failed.




Second try





~/gpucopybug master*
❯ cd ~/gpucopybug && rm -rf build && meson setup build -Dcpp_std=c++23 && meson
compile -C build && ./build/gpucopybug
The Meson build system
Version: 1.11.1
Source dir: /home/robin/gpucopybug
Build dir: /home/robin/gpucopybug/build
Build type: native build
Project name: gpucopybug
Project version: 1.0.0
C++ compiler for the host machine: c++ (gcc 16.1.1 "c++ (GCC) 16.1.1 20260625")
C++ linker for the host machine: c++ ld.bfd 2.46.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/usr/bin/pkg-config) 2.5.1
Run-time dependency vulkan found: YES 1.4.350
Run-time dependency gbm found: YES 26.2.0-devel
Run-time dependency libdrm found: YES 2.4.134
Build targets in project: 1

gpucopybug 1.0.0

  User defined options
    cpp_std: c++23

Found ninja-1.13.2 at /usr/bin/ninja
INFO: autodetecting backend as ninja                                            
INFO: calculating backend command to run: /usr/bin/ninja -C
/home/robin/gpucopybug/build
ninja: Entering directory `/home/robin/gpucopybug/build'
[1/2] Compiling C++ object gpucopybug.p/main.cpp.o
../main.cpp: In function ‘void write(gbm_bo*)’:
../main.cpp:78:23: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   78 |     for (int y = 0; y < gbm_bo_get_height(buffer); y++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:79:27: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   79 |         for (int x = 0; x < gbm_bo_get_width(buffer); x++) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:80:45: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   80 |             dataPtr[y * stride / 4 + x] = x <
gbm_bo_get_width(buffer)/2 ? 0xFFAABBCC : 0x00000000;
      |                                          
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp: In function ‘bool check(gbm_bo*)’:
../main.cpp:91:23: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   91 |     for (int y = 0; y < gbm_bo_get_height(buffer); y++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:92:27: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   92 |         for (int x = 0; x < gbm_bo_get_width(buffer); x++) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp:93:40: warning: comparison of integer expressions of different
signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
   93 |             const uint32_t correct = x < gbm_bo_get_width(buffer)/2 ?
0xFFAABBCC : 0x00000000;
      |                                      ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../main.cpp: In function ‘auto importDmabuf(vk::raii::PhysicalDevice&,
vk::raii::Device&, uint32_t, vk::ImageUsageFlags, gbm_bo*, vk::Format)’:
../main.cpp:136:26: warning: comparison of integer expressions of different
signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  136 |     for (size_t i = 0; i < gbm_bo_get_plane_count(buffer); i++) {
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2/2] Linking target gpucopybug
Buffer copy went wrong

Hope this clarify the bug

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to