Bug 209280 - x11/cool-retro-term: issues on start and high CPU utilization
Summary: x11/cool-retro-term: issues on start and high CPU utilization
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-05 10:42 UTC by Matthias Apitz
Modified: 2018-01-16 08:12 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Apitz 2016-05-05 10:42:51 UTC
The cool X11 terminal hast two issues:

1.
It starts only with env LANG=C, with LANG=es_ES.UTF-8, for example, it gets stuck during start;

2.
It comes up with 'LANG=C export LANG' and starts with the following messages:

$ uname -a
FreeBSD r292778 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r292778: Tue Dec 29 14:38:12 UTC 2015     guru@:/usr/local/r292778/obj/usr/local/r292778/src/sys/GENERIC  amd64

$ cool-retro-term --verbose --default-settings
default KB_LAYOUT_DIR:  "/usr/local/lib/qt5/qml/QMLTermWidget/kb-layouts"
QObject::connect: No such slot Konsole::TerminalDisplay_QML_133::close()
loadAllColorSchemes
Session::run() - program: "/bin/sh"
Session::run() - arguments: ("")
started!
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
QSqlQuery::prepare: database not open
qrc:/Storage.qml:35: Error: Driver not loaded Driver not loaded

but then goes to very high CPU usage in a permanent syscall loop as:

writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
poll({ 3/POLLIN|POLLOUT },1,-1)			 = 1 (0x1)
writev(0x3,0x7fffffffd690,0x2)			 = 8192 (0x2000)
...
Comment 1 Alexey Dokuchaev freebsd_committer 2016-05-05 14:26:34 UTC
Per what I see here locally, it requires LC_NUMERIC=C, not the full-blown LC_ALL or LANG.  I think I've mentioned this earlier in our brief email exchange, did it not work for you so you'd have to set LANG rather than just LC_NUMERIC?
Comment 2 Matthias Apitz 2016-05-05 14:41:34 UTC
(In reply to Alexey Dokuchaev from comment #1)
As I wrote in our off-list exchange, it worked with LANG=C; perhaps it works too with LC_NUMERIC=C, I have not tested it; will do tomorrow;

I think the problem number 2 is the mayor issue, which makes this cool terminal useless on my installation; the problem 1 is not a big issue;
Comment 3 Matthias Apitz 2016-05-06 07:50:20 UTC
LC_NUMERIC=C makes it start too, but as well with 100++ % CPU utilization;
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-16 07:06:16 UTC
Is this still an issue?
Comment 5 Matthias Apitz 2018-01-16 07:26:19 UTC
I'm now on:

root@c720-r314251:/home/guru # uname -a
FreeBSD c720-r314251 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r314251M: Fri Jun 30 08:50:03 CEST 2017     guru@c720-r314251:/usr/obj/usr/src/sys/GENERIC  amd64

with cool-retro-term-1.0.0_1, which now works when started, for example, with LANG=C