Провисание системы при запуске ubinstall-gtk #111

Closed
opened 1 week ago by rodion.n · 3 comments
Collaborator

При запуске программы, происходит около +-100 запросов о раскладках клавиатуры на каждый язык, из-за чего данный процесс забивает систему в 100% и она она на несколько секунд провисает

xkbcli list --load-exotic | awk "layout && /description:/ {match(\$0,/: *(.*)/,matches);description=matches[1];printf \"%s|%s\n\",layout,description;layout=\"\"} /layout:/ {match(\$0, /: *'([^']+)'/,matches);l=matches[1];if (layouts[l]) next;layout=layouts[l]=l}" | sort -u
[Detaching after vfork from child process 21352]
xkbcli list --load-exotic | awk -v layout="af" "BEGIN {layout_pattern = sprintf(\"^ *- *layout: *'%s'\",layout);matched=0} matched && /variant:/ {match(\$0, /: *'([^']+)'/, matches);variant = matches[1]} matched && /description:/ {match(\$0, /: *(.+)/, matches);description = matches[1]} matched && /^ *-/{matched=0; if (variant) printf \"%s|%s\n\",variant,description} \$0 ~ layout_pattern {matched=1;variant=\"\";description=\"\";next}" | sort -u
[Detaching after vfork from child process 21356]

Это не критическая ошибка, но ощутимая, условный Celeron думаю от этого случае может сделать "бум". 💯

При запуске программы, происходит около +-100 запросов о раскладках клавиатуры на каждый язык, из-за чего данный процесс забивает систему в 100% и она она на несколько секунд провисает ``` xkbcli list --load-exotic | awk "layout && /description:/ {match(\$0,/: *(.*)/,matches);description=matches[1];printf \"%s|%s\n\",layout,description;layout=\"\"} /layout:/ {match(\$0, /: *'([^']+)'/,matches);l=matches[1];if (layouts[l]) next;layout=layouts[l]=l}" | sort -u [Detaching after vfork from child process 21352] xkbcli list --load-exotic | awk -v layout="af" "BEGIN {layout_pattern = sprintf(\"^ *- *layout: *'%s'\",layout);matched=0} matched && /variant:/ {match(\$0, /: *'([^']+)'/, matches);variant = matches[1]} matched && /description:/ {match(\$0, /: *(.+)/, matches);description = matches[1]} matched && /^ *-/{matched=0; if (variant) printf \"%s|%s\n\",variant,description} \$0 ~ layout_pattern {matched=1;variant=\"\";description=\"\";next}" | sort -u [Detaching after vfork from child process 21356] ``` Это не критическая ошибка, но ощутимая, условный Celeron думаю от этого случае может сделать "бум". 💯
rodion.n added the улучшение неисправно labels 1 week ago
rodion.n self-assigned this 1 week ago
YanTheKaller was assigned by rodion.n 1 week ago
Collaborator

что-то я не вижу чтобы шесть дней назад могло такое случиться, вроде я сильно раньше ещё переделывал

что-то я не вижу чтобы шесть дней назад могло такое случиться, вроде я сильно раньше ещё переделывал
Collaborator

сейчас один раз выполняется эта команда

xkbcli list --load-exotic | awk "layout && /description:/ {    match(\$0, /: *(.*)/, matches);    description = matches[1];    printf \"%s|%s|%s\\n\", layout, variant, description;    layout = \"\"; variant = \"\";}/layout:/ {    match(\$0, /: *'([^']+)'/, matches);    l = matches[1];    layout = layouts[l] = l;}/variant:/ {    match(\$0, /: *'([^']+)'/, matches);    variant = matches[1];}" | sort -u
sed '/<\/modelList>/q' /usr/share/X11/xkb/rules/base.xml | grep -E '^ {8,8}<name>|^ {8,8}<description>'|sed -e 's/  *<name>//g' -e 's,</name>,,g' -e 's/  *<description>//g' -e 's,</description>,,g'

и из неё сразу и получаются все значения

сейчас один раз выполняется эта команда ``` xkbcli list --load-exotic | awk "layout && /description:/ { match(\$0, /: *(.*)/, matches); description = matches[1]; printf \"%s|%s|%s\\n\", layout, variant, description; layout = \"\"; variant = \"\";}/layout:/ { match(\$0, /: *'([^']+)'/, matches); l = matches[1]; layout = layouts[l] = l;}/variant:/ { match(\$0, /: *'([^']+)'/, matches); variant = matches[1];}" | sort -u sed '/<\/modelList>/q' /usr/share/X11/xkb/rules/base.xml | grep -E '^ {8,8}<name>|^ {8,8}<description>'|sed -e 's/ *<name>//g' -e 's,</name>,,g' -e 's/ *<description>//g' -e 's,</description>,,g' ``` и из неё сразу и получаются все значения
Poster
Collaborator

Значит я увидел это из старой версии программы. По факту перепроверил, так оно и есть. Чтож, тогда вопрос закрыт.

Значит я увидел это из старой версии программы. По факту перепроверил, так оно и есть. Чтож, тогда вопрос закрыт.
rodion.n closed this issue 2 days ago
Sign in to join this conversation.
No Milestone
No project
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Applications/ubinstall-gtk#111
Loading…
There is no content yet.