Bug 466497 - Windows on ARM builds do not identify the OS architecture
Summary: Windows on ARM builds do not identify the OS architecture
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.1.5
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-27 00:52 UTC by Hernan Martinez
Modified: 2023-03-24 18:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Syslog (13.80 KB, text/plain)
2023-02-27 04:12 UTC, Hernan Martinez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hernan Martinez 2023-02-27 00:52:54 UTC
SUMMARY
***
The OS architecture is not identified in the `Submit Bug Report` dialog when running in Windows ARM64
***


STEPS TO REPRODUCE
1. Build Krita for Windows on ARM using MSYS's CLANGARM64 envrionment
2. Open the Submit Bug Report dialog


OBSERVED RESULT
The OS shows `(unknown architecture)`

EXPECTED RESULT
The OS shows `(ARM64)`

SOFTWARE/OS VERSIONS
Windows:  Windows 11 22H2
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.103.0
Qt Version:  5.15.8

ADDITIONAL INFORMATION
Comment 1 amyspark 2023-02-27 01:38:07 UTC
Hi! ARM64 Windows is uncharted lands for us. Can you send us the system log, so that we can tell which bit needs patching?

It's more likely than not that this will be needed in Qt itself, since 5.15 (and maybe even 6.4, from the looks of it) doesn't know about Windows on Arm at all.
Comment 2 Hernan Martinez 2023-02-27 04:08:43 UTC
@amyspark. I already have a patch for it
https://invent.kde.org/graphics/krita/-/merge_requests/1759
I create a bug here because this is my first time ever contributing to Krita and I don't know if there's policy to always create a bug to track a PR :-)
Comment 3 Hernan Martinez 2023-02-27 04:12:57 UTC
Created attachment 156774 [details]
Syslog
Comment 4 Hernan Martinez 2023-02-27 14:32:29 UTC
> ADDITIONAL INFORMATION

Krita

 Version: 5.1.5 (git a6721a5)
 Installation type: installer / portable package
 Hidpi: true

Qt

  Version (compiled): 5.15.8
  Version (loaded): 5.15.8

OS Information

  Build ABI: arm64-little_endian-llp64
  Build CPU: arm64
  CPU: arm64
  Kernel Type: winnt
  Kernel Version: 10.0.22621
  Pretty Productname: Windows 11 Version 2009
  Product Type: windows
  Product Version: 11

Locale

  Languages: en_US, en, en_Latn_US
  C locale: C
  QLocale current: en
  QLocale system: en
  QTextCodec for locale: UTF-8
  Process ACP: 65001 (UTF-8)
  System locale default ACP: 1252  (ANSI - Latin I)

OpenGL Info
 
  Vendor:  "Microsoft Corporation" 
  Renderer:  "D3D12 (Qualcomm(R) Adreno(TM) 8cx Gen 3)" 
  Version:  "4.1 (Compatibility Profile) Mesa 23.1.0-devel (git-fbc637faa5)" 
  Shading language:  "4.10" 
  Requested format:  QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
  Current format:  QSurfaceFormat(version 4.1, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
     Version: 4.1
     Supports deprecated functions true 
     is OpenGL ES: false 
  supportsBufferMapping: true 
  supportsBufferInvalidation: true 
  forceDisableTextureBuffers: false 
  Extensions: 
     "GL_EXT_blend_subtract" 
     "GL_S3_s3tc" 
     "GL_ARB_arrays_of_arrays" 
     "GL_EXT_texture_sRGB" 
     "GL_ARB_robustness" 
     "GL_ARB_texture_env_dot3" 
     "GL_ARB_texture_cube_map_array" 
     "GL_EXT_gpu_shader4" 
     "GL_EXT_timer_query" 
     "GL_EXT_texture_cube_map" 
     "GL_ARB_shader_objects" 
     "GL_ARB_fragment_program_shadow" 
     "GL_ARB_instanced_arrays" 
     "GL_ARB_clip_control" 
     "GL_SGIS_texture_lod" 
     "GL_EXT_texture_shared_exponent" 
     "GL_NV_fog_distance" 
     "GL_KHR_texture_compression_astc_ldr" 
     "GL_ARB_color_buffer_float" 
     "GL_ARB_draw_instanced" 
     "GL_ATI_draw_buffers" 
     "GL_ARB_shader_subroutine" 
     "GL_ARB_shader_precision" 
     "GL_EXT_provoking_vertex" 
     "GL_INGR_blend_func_separate" 
     "GL_ARB_point_parameters" 
     "GL_ARB_texture_gather" 
     "GL_ARB_multisample" 
     "GL_MESA_shader_integer_functions" 
     "GL_ARB_debug_output" 
     "GL_ARB_compatibility" 
     "GL_ARB_separate_shader_objects" 
     "GL_NV_packed_depth_stencil" 
     "GL_AMD_multi_draw_indirect" 
     "GL_ARB_draw_buffers_blend" 
     "GL_NV_texture_rectangle" 
     "GL_ARB_shading_language_420pack" 
     "GL_IBM_texture_mirrored_repeat" 
     "GL_ARB_buffer_storage" 
     "GL_EXT_separate_specular_color" 
     "GL_SGIS_generate_mipmap" 
     "GL_IBM_multimode_draw_arrays" 
     "GL_IBM_rasterpos_clip" 
     "GL_ARB_framebuffer_no_attachments" 
     "GL_ARB_vertex_attrib_binding" 
     "GL_EXT_texture_env_combine" 
     "GL_EXT_texture_env_dot3" 
     "GL_ARB_direct_state_access" 
     "GL_ARB_parallel_shader_compile" 
     "GL_AMD_draw_buffers_blend" 
     "GL_ARB_occlusion_query2" 
     "GL_ARB_multi_bind" 
     "GL_ARB_vertex_type_2_10_10_10_rev" 
     "GL_ARB_shader_texture_lod" 
     "GL_ARB_seamless_cube_map" 
     "GL_EXT_fog_coord" 
     "GL_ARB_ES3_compatibility" 
     "GL_EXT_texture" 
     "GL_EXT_texture_lod_bias" 
     "GL_ARB_half_float_pixel" 
     "GL_EXT_texture_compression_s3tc" 
     "GL_ARB_vertex_array_object" 
     "GL_ARB_texture_rectangle" 
     "GL_EXT_memory_object" 
     "GL_EXT_rescale_normal" 
     "GL_ARB_map_buffer_alignment" 
     "GL_ARB_vertex_array_bgra" 
     "GL_NV_half_float" 
     "GL_EXT_texture_sRGB_decode" 
     "GL_EXT_point_parameters" 
     "GL_EXT_texture_buffer_object" 
     "GL_EXT_texture_compression_dxt1" 
     "GL_EXT_texture_object" 
     "GL_NV_blend_square" 
     "GL_ARB_framebuffer_sRGB" 
     "GL_EXT_multi_draw_arrays" 
     "GL_EXT_gpu_program_parameters" 
     "GL_EXT_texture3D" 
     "GL_EXT_texture_array" 
     "GL_ARB_point_sprite" 
     "GL_ARB_texture_stencil8" 
     "GL_ARB_texture_compression" 
     "GL_AMD_shader_stencil_export" 
     "GL_EXT_texture_env_add" 
     "GL_ARB_internalformat_query" 
     "GL_ARB_sampler_objects" 
     "GL_MESA_texture_signed_rgba" 
     "GL_ATI_separate_stencil" 
     "GL_EXT_framebuffer_blit" 
     "GL_EXT_texture_integer" 
     "GL_ARB_viewport_array" 
     "GL_ARB_fragment_shader" 
     "GL_ARB_occlusion_query" 
     "GL_ARB_indirect_parameters" 
     "GL_ATI_texture_float" 
     "GL_EXT_texture_rectangle" 
     "GL_EXT_shadow_funcs" 
     "GL_MESA_window_pos" 
     "GL_ARB_texture_storage_multisample" 
     "GL_ARB_fragment_coord_conventions" 
     "GL_SUN_multi_draw_arrays" 
     "GL_ARB_multi_draw_indirect" 
     "GL_ARB_shader_atomic_counter_ops" 
     "GL_EXT_vertex_array_bgra" 
     "GL_ARB_texture_env_add" 
     "GL_ARB_transform_feedback2" 
     "GL_ARB_sync" 
     "GL_ARB_transform_feedback3" 
     "GL_MESA_pack_invert" 
     "GL_ARB_shader_bit_encoding" 
     "GL_EXT_packed_float" 
     "GL_EXT_direct_state_access" 
     "GL_EXT_framebuffer_sRGB" 
     "GL_ARB_internalformat_query2" 
     "GL_EXT_packed_depth_stencil" 
     "GL_ARB_draw_elements_base_vertex" 
     "GL_ARB_texture_border_clamp" 
     "GL_EXT_vertex_array" 
     "GL_ARB_texture_env_crossbar" 
     "GL_EXT_memory_object_win32" 
     "GL_ARB_gpu_shader_fp64" 
     "GL_ARB_half_float_vertex" 
     "GL_EXT_bgra" 
     "GL_ARB_robust_buffer_access_behavior" 
     "GL_EXT_shader_integer_mix" 
     "GL_NV_light_max_exponent" 
     "GL_NV_texgen_reflection" 
     "GL_ARB_map_buffer_range" 
     "GL_NV_conditional_render" 
     "GL_EXT_draw_range_elements" 
     "GL_EXT_blend_minmax" 
     "GL_EXT_blend_func_separate" 
     "GL_ARB_conditional_render_inverted" 
     "GL_AMD_shader_trinary_minmax" 
     "GL_ARB_depth_clamp" 
     "GL_ARB_texture_buffer_object_rgb32" 
     "GL_ARB_base_instance" 
     "GL_ARB_texture_multisample" 
     "GL_ARB_shading_language_include" 
     "GL_EXT_debug_label" 
     "GL_ARB_texture_float" 
     "GL_ARB_explicit_attrib_location" 
     "GL_ARB_depth_buffer_float" 
     "GL_EXT_texture_filter_anisotropic" 
     "GL_ARB_vertex_attrib_64bit" 
     "GL_ARB_texture_rgb10_a2ui" 
     "GL_ARB_texture_filter_anisotropic" 
     "GL_KHR_texture_compression_astc_sliced_3d" 
     "GL_ARB_get_texture_sub_image" 
     "GL_EXT_abgr" 
     "GL_EXT_texture_edge_clamp" 
     "GL_ARB_texture_rg" 
     "GL_ARB_vertex_program" 
     "GL_ARB_vertex_type_10f_11f_11f_rev" 
     "GL_EXT_blend_equation_separate" 
     "GL_SGIS_texture_border_clamp" 
     "GL_NV_primitive_restart" 
     "GL_ARB_program_interface_query" 
     "GL_EXT_blend_color" 
     "GL_EXT_draw_instanced" 
     "GL_KHR_parallel_shader_compile" 
     "GL_ARB_draw_indirect" 
     "GL_ARB_multitexture" 
     "GL_ARB_texture_query_lod" 
     "GL_APPLE_packed_pixels" 
     "GL_EXT_EGL_image_storage" 
     "GL_ARB_shader_draw_parameters" 
     "GL_ARB_shader_atomic_counters" 
     "GL_EXT_draw_buffers2" 
     "GL_ARB_texture_compression_bptc" 
     "GL_ARB_draw_buffers" 
     "GL_ARB_gpu_shader5" 
     "GL_ARB_sample_shading" 
     "GL_ARB_timer_query" 
     "GL_EXT_framebuffer_object" 
     "GL_ARB_compressed_texture_pixel_storage" 
     "GL_KHR_debug" 
     "GL_ARB_texture_buffer_object" 
     "GL_ARB_shader_storage_buffer_object" 
     "GL_ATI_texture_env_combine3" 
     "GL_KHR_robust_buffer_access_behavior" 
     "GL_ARB_texture_compression_rgtc" 
     "GL_ARB_fragment_layer_viewport" 
     "GL_NV_copy_image" 
     "GL_OES_EGL_image" 
     "GL_OES_read_format" 
     "GL_ARB_pixel_buffer_object" 
     "GL_NV_texture_env_combine4" 
     "GL_KHR_no_error" 
     "GL_ARB_invalidate_subdata" 
     "GL_ARB_copy_buffer" 
     "GL_EXT_copy_texture" 
     "GL_ARB_vertex_shader" 
     "GL_EXT_texture_compression_rgtc" 
     "GL_ARB_fragment_program" 
     "GL_EXT_semaphore" 
     "GL_EXT_secondary_color" 
     "GL_ARB_window_pos" 
     "GL_EXT_texture_swizzle" 
     "GL_ARB_texture_buffer_range" 
     "GL_AMD_texture_texture4" 
     "GL_ARB_get_program_binary" 
     "GL_ATI_blend_equation_separate" 
     "GL_EXT_stencil_two_side" 
     "GL_ARB_texture_storage" 
     "GL_ARB_tessellation_shader" 
     "GL_ARB_shading_language_packing" 
     "GL_EXT_texture_snorm" 
     "GL_KHR_robustness" 
     "GL_EXT_semaphore_win32" 
     "GL_EXT_stencil_wrap" 
     "GL_NV_ES1_1_compatibility" 
     "GL_ARB_transform_feedback_instanced" 
     "GL_EXT_framebuffer_multisample" 
     "GL_EXT_EGL_sync" 
     "GL_EXT_vertex_attrib_64bit" 
     "GL_ATI_fragment_shader" 
     "GL_ARB_texture_cube_map" 
     "GL_ARB_framebuffer_object" 
     "GL_EXT_framebuffer_multisample_blit_scaled" 
     "GL_EXT_subtexture" 
     "GL_ARB_shader_stencil_export" 
     "GL_ARB_texture_swizzle" 
     "GL_ARB_vertex_buffer_object" 
     "GL_ARB_texture_non_power_of_two" 
     "GL_ARB_ES2_compatibility" 
     "GL_ARB_depth_texture" 
     "GL_ARB_clear_buffer_object" 
     "GL_EXT_compiled_vertex_array" 
     "GL_NV_depth_clamp" 
     "GL_ARB_shading_language_100" 
     "GL_ARB_shadow" 
     "GL_EXT_packed_pixels" 
     "GL_ARB_transpose_matrix" 
     "GL_ARB_texture_query_levels" 
     "GL_ARB_conservative_depth" 
     "GL_ARB_uniform_buffer_object" 
     "GL_ANGLE_texture_compression_dxt3" 
     "GL_ARB_gpu_shader_int64" 
     "GL_ARB_provoking_vertex" 
     "GL_ANGLE_texture_compression_dxt5" 
     "GL_SGIS_texture_edge_clamp" 
     "GL_ARB_texture_env_combine" 
     "GL_KHR_context_flush_control" 
     "GL_AMD_conservative_depth" 
     "GL_ARB_stencil_texturing" 
     "GL_EXT_transform_feedback" 
     "GL_ARB_blend_func_extended" 
     "GL_EXT_pixel_buffer_object" 
     "GL_ARB_explicit_uniform_location" 
     "GL_ARB_texture_mirrored_repeat" 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsAngleD3D11: false 
  isQtPreferAngle: true 

useBufferInvalidation (config option): false


Hardware Information

  GPU Acceleration: auto
  Memory: 2000 Mb
  Number of Cores: 8
  Swap Location: C:/Users/herna/AppData/Local/Temp
  Built for: arm64+neon
  Base instruction set: arm64+neon
  Supported instruction sets: arm64+neon arm32+neon avx512bw avx512dq avx512cd avx512f fma3+avx2 avx2 fma3+avx avx fma4 fma3+sse4.2 sse4.2 sse4.1 ssse3 sse3 sse2 

Current Settings

  Current Swap Location: C:/Users/herna/AppData/Local/Temp
  Current Swap Location writable: true
  Undo Enabled: true
  Undo Stack Limit: 200
  Use OpenGL: true
  Use OpenGL Texture Buffer: true
  Disable Vector Optimizations: false
  Disable AVX Optimizations: false
  Canvas State: OPENGL_SUCCESS
  Autosave Interval: 420
  Use Backup Files: true
  Number of Backups Kept: 1
  Backup File Suffix: ~
  Backup Location: Same Folder as the File
  Backup Location writable: false
  Resource Location: 
  Use Win8 Pointer Input: false
  Use RightMiddleTabletButton Workaround: false
  Levels of Detail Enabled: false
  Use Zip64: false


Display Information
Number of screens: 1
	Screen: 0
		Name: \\.\DISPLAY1
		Depth: 32
		Scale: 2
		Physical DPI135.467
		Logical DPI96
		Physical Size: 270, 180
		Position: 0, 0
		Resolution in pixels: 1440x960
		Manufacturer: 
		Model: 
		Refresh Rate: 120


---------------------
================================================================================
SESSION: 26 Feb 2023 14:11:39 -0700. Executing C:\msys64\clangarm64\bin\krita.exe

Krita Version: 5.1.5 (git a6721a5), Qt version compiled: 5.15.8, loaded: 5.15.8. Process ID: 10720
-- -- -- -- -- -- -- --
26 Feb 2023 14:11:39 -0700: Style: fusion. Available styles: windowsvista, Windows, Fusion
26 Feb 2023 14:11:40 -0700: Creating database from scratch (database didn't exist, new schema version: 0.0.17).
26 Feb 2023 14:11:40 -0700: Non-store package - creating updater
26 Feb 2023 14:12:03 -0700: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2
26 Feb 2023 14:13:40 -0700: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2
26 Feb 2023 14:15:52 -0700: CLOSING SESSION
================================================================================
SESSION: 26 Feb 2023 14:17:06 -0700. Executing C:\msys64\clangarm64\bin\krita.exe

Krita Version: 5.1.5 (git a6721a5), Qt version compiled: 5.15.8, loaded: 5.15.8. Process ID: 17680
-- -- -- -- -- -- -- --
26 Feb 2023 14:17:06 -0700: Style: fusion. Available styles: windowsvista, Windows, Fusion
26 Feb 2023 14:17:06 -0700: Database is up to date. Version: 0.0.17, created by Krita 5.1.5, at Sun Feb 26 14:11:40 2023
26 Feb 2023 14:17:07 -0700: Non-store package - creating updater
26 Feb 2023 14:35:19 -0700: CLOSING SESSION
================================================================================
SESSION: 26 Feb 2023 14:38:27 -0700. Executing C:\msys64\clangarm64\bin\krita.exe

Krita Version: 5.1.5 (git a6721a5), Qt version compiled: 5.15.8, loaded: 5.15.8. Process ID: 9968
-- -- -- -- -- -- -- --
26 Feb 2023 14:38:27 -0700: Style: fusion. Available styles: windowsvista, Windows, Fusion
26 Feb 2023 14:38:28 -0700: Database is up to date. Version: 0.0.17, created by Krita 5.1.5, at Sun Feb 26 14:11:40 2023
26 Feb 2023 14:38:28 -0700: Non-store package - creating updater

---------------------
Comment 5 Bug Janitor Service 2023-02-28 03:45:32 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 6 amyspark 2023-03-24 18:15:56 UTC
Git commit adf92901b643390a5d708ae8aa60551d1498453d by L. E. Segovia, on behalf of Hernan Martinez.
Committed on 01/03/2023 at 17:16.
Pushed by merge-service into branch 'master'.

Update systeminformation_p.h to handle ARM64 on Windows

Part-of: <https://invent.kde.org/graphics/krita/-/merge_requests/1759>

M  +3    -0    libs/widgetutils/xmlgui/systeminformation_p.h

https://invent.kde.org/graphics/krita/commit/adf92901b643390a5d708ae8aa60551d1498453d