Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Crash due to "syntax error: operand expected (error token is "/")" when CPU usage high (~90%) #176

Open
ardunn opened this issue Jul 22, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ardunn
Copy link

ardunn commented Jul 22, 2020

Describe the bug

Crashes on OSX when CPU usage is high.

Checking the $HOME/.config/bashtop/error.log:

New instance of bashtop version: 0.9.25 Pid: 86837
-bash: ((: Pid: Program:       Arguments:Threads: User:    Mem%       Cpu%: syntax error in expression (error token is ": Program:       Arguments:Threads: User:    Mem%       Cpu%")
-bash: ((: Pid: Program:       Arguments:Threads: User:    Mem%       Cpu%: syntax error in expression (error token is ": Program:       Arguments:Threads: User:    Mem%       Cpu%")
-bash: ((: /Library: syntax error: operand expected (error token is "/Library")
-bash: ((: /Library: syntax error: operand expected (error token is "/Library")
-bash: /: syntax error: operand expected (error token is "/")
[1]+  Done                    coproc pycoproc ( python3 ${pywrapper} )

To Reproduce

Same as the last issue I posted, I'll just copy that info here:

Installation of depedencies was exactly as under the README section Dependencies installation OSX

Then:

git clone https://github.com/aristocratos/bashtop
cd bashtop
source bashtop

Expected behavior

Bashtop should not crash.

Screenshots

N/a

Info (please complete the following information):

  • Bashtop version: 0.9.25
  • (OSX/FreeBSD) Os release version: Catalina 10.15.4
  • Terminal used: iTerm 3.3.12
  • Font used: Ubuntu Mono
  • Bash version, "bash --version" (version 4.4 or above is required): 5.0.17(1)-release (x86_64-apple-darwin19.4.0)
  • Locales: "en_US.UTF-8"

Additional context

N/a, error.log is already given above

@ardunn ardunn added the bug Something isn't working label Jul 22, 2020
@ardunn ardunn changed the title [BUG] Crash due to [BUG] Crash due to "syntax error: operand expected (error token is "/")" when CPU usage high (~90%) Jul 22, 2020
@aristocratos
Copy link
Owner

@q9f
Copy link

q9f commented Sep 30, 2020

Having the same on Archlinux with ZSH and bashtop 0.9.25 on high CPU usage:

New instance of bashtop version: 0.9.25 Pid: 353606
/usr/bin/bashtop: line 1334: ((: Pid: Program:       Arguments:                 Threads: User:    Mem%       Cpu%: syntax error in expression (error token is ": Program:       Arguments:                 Threads: User:    Mem%       Cpu%")
/usr/bin/bashtop: line 1334: ((: Pid: Program:       Arguments:                 Threads: User:    Mem%       Cpu%: syntax error in expression (error token is ": Program:       Arguments:                 Threads: User:    Mem%       Cpu%")
/usr/bin/bashtop: line 1465: ((: /usr/bin/yarn: syntax error: operand expected (error token is "/usr/bin/yarn")
/usr/bin/bashtop: line 1466: ((: /usr/bin/yarn: syntax error: operand expected (error token is "/usr/bin/yarn")
/usr/bin/bashtop: line 1468: /: syntax error: operand expected (error token is "/")

BpyTOP seems to run smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants