Bug 1161442

Summary: yast2-storage-ng incompatible character encodings: UTF-8 and ASCII-8BIT
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dead Mozay <dead_mozay>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: ancor, dead_mozay, egdfree, lilicenco.work, notepad2, strm.50, virdignus, virex, vitalykorotkov, werwolf131313
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs

Description Dead Mozay 2020-01-21 15:36:16 UTC
Created attachment 827933 [details]
y2logs

When opening yast2-storage-ng program crashes, 
_Caller: /usr/share/YaST2/lib/y2partitioner/widgets/description_section/partition.rb:48:in `format'_
in rare cases crashes when a disk volume is selected.

all users of RU locale confirmed this error, as people wrote that a similar error occurs in the installer of the distribution at the stage of detecting disks, even with an EN locale.
Comment 1 Lilicenco Ilia 2020-01-21 15:53:26 UTC
And with French locale also
Comment 2 Ancor Gonzalez Sosa 2020-01-21 16:36:32 UTC
The error happens when trying to show the ID of a partition.

We recently unified the handling of IDs between libstorage-ng and yast2-storage-ng. In the past, the (internationalized) name of such IDs were maintained (duplicated) in both projects, but now they are always coming from libstorage-ng. See https://github.com/yast/yast-storage-ng/pull/1016

This seems related to that change. Maybe some inconsistency in the packages. Which versions of the following packages do you have in your system?

yast2-storage-ng
yast2-trans
libstorage-ng-ruby
libstorage-ng-lang
Comment 3 Dead Mozay 2020-01-21 16:46:34 UTC
(In reply to Ancor Gonzalez Sosa from comment #2)
> The error happens when trying to show the ID of a partition.
> 
> We recently unified the handling of IDs between libstorage-ng and
> yast2-storage-ng. In the past, the (internationalized) name of such IDs were
> maintained (duplicated) in both projects, but now they are always coming
> from libstorage-ng. See https://github.com/yast/yast-storage-ng/pull/1016
> 
> This seems related to that change. Maybe some inconsistency in the packages.
> Which versions of the following packages do you have in your system?
> 
> yast2-storage-ng
> yast2-trans
> libstorage-ng-ruby
> libstorage-ng-lang

yast2-storage-ng - 4.2.72
yast2-trans - 84.87.20200104.ad092ae8df
libstorage-ng-ruby - 4.2.55
libstorage-ng-lang - 4.2.55
Comment 4 Ancor Gonzalez Sosa 2020-01-23 15:54:22 UTC
I finally managed to reproduce this. A fix will come shortly
Comment 5 Dead Mozay 2020-01-23 15:57:50 UTC
(In reply to Ancor Gonzalez Sosa from comment #4)
> I finally managed to reproduce this. A fix will come shortly

Good news, thanks
Comment 6 Ancor Gonzalez Sosa 2020-01-23 16:17:59 UTC
This is fixed in yast2-storage-ng 4.2.77. See details at
https://github.com/yast/yast-storage-ng/pull/1032

This is the submit request to Factory/Tumbleweed:
https://build.opensuse.org/request/show/766664
Comment 7 Andrey Karepin 2020-01-26 07:39:52 UTC
*** Bug 1161830 has been marked as a duplicate of this bug. ***