Bug#940536: dhex: hangs on keyboard config screen

2020-03-20 Thread nabijaczleweli
Hello,

I'm attaching an updated cpu-load patch, based on 0.69-1; it enables
nodelay() for the duration of keyboardsetup() only – keyboard setup
still takes 100% CPU but at least it works, and normal view behaves as
with the current patch.

Regards,
nabijaczleweli
Description: 
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 dhex (0.69-1) unstable; urgency=medium
 .
   * New upstream version.
   * debian/control: drop Vcs fields.
   * Bump standards version to 4.2.1.
   * debian/copyright: updated years.
   * debian/install and manpages: added.
   * debian/rules: disabled install target.
Author: Gürkan Myczko 

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: , 
Bug: 
Bug-Debian: https://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Forwarded: 
Reviewed-By: 
Last-Update: 2020-03-20

--- dhex-0.69.orig/main.c
+++ dhex-0.69/main.c
@@ -530,8 +530,12 @@ int main(int argc,char** argv)
output->win=initscr();
pairsinit(output);
noecho();
-   nodelay(output->win,1);
-   if (keyboardsetupreq) keyboardsetup(output,configfile);
+   if (keyboardsetupreq)
+   {
+   nodelay(output->win,1);
+   keyboardsetup(output,configfile);
+   nodelay(output->win,0);
+   }
if (bhexcalc)
{
hexcalc(output,hHexCalc);


signature.asc
Description: PGP signature


Bug#940536: dhex: hangs on keyboard config screen

2020-01-28 Thread Linux-Fan

Hello,

this bug is also known for the Ubuntu package:
https://bugs.launchpad.net/ubuntu/+source/dhex/+bug/1814478

There, it is mentioned that the `cpu-load` patch is causing this bug. I just
verified this: Compiling the original (unmodified, unpatched) dhex-0.69
source code does not expose this buggy behaviour. However, if the line from
the `cpu-load` patch is applied (even without the other patches), the setup
screen does not react to keyboard input as described in the respective bug
reports.

I would thus suggest that the `cpu-load` patch be removed or fixed?

Thanks in advance
Linux-Fan


pgpvtF1QsxVrj.pgp
Description: PGP signature


Bug#940536: dhex: hangs on keyboard config screen

2019-09-16 Thread Ricardo Mones
Package: dhex
Version: 0.69-1
Severity: important

Hi,

As described the program hangs on what it looks like some keyboard
configuration screen, which only can be exited by Ctrl-C. I tried also
pressing ESC as advertised, but is ignored:


Please press the following keys
(Press ESC if your keyboard does not have them)

Config file:/home/mones/.dhexrc

KEYESC:















The standard cancel key


Nothing else can be done with it, so this is completely useless.

Looking also at #889956 makes me wonder if this stuff wouldn't be better
removed from the archive.

regards,

-- System Information:
Debian Release: 10.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dhex depends on:
ii  libc62.28-10
ii  libncurses6  6.1+20181013-2+deb10u1
ii  libtinfo66.1+20181013-2+deb10u1

dhex recommends no packages.

dhex suggests no packages.

-- no debconf information