Jump to content

Recommended Posts

Posted
10 hours ago, Sigge said:

munmap_chunk(): invalid pointer

This is a classical memory corruption.

 

Htop has possibly crashed. During a crash Htop emits a backtrace with some info.  If you have the backtrace info, please post here with your Htop version.

 

You can also try a few things:

* Remove every meter, F2 and delete all the meters, exit. Start again and add one cpu bar. If it is Ok then proceed with the rest.

* If you have some skills build Htop with debug info, the backtrace will show the function previous to the free() memory.

Posted

Ok, thanks.

 

So it seems like the bars and meters work. The problem is saving the settings.

 

I am doing it both as user and with sudo. F10 "Done" results in invalid pointer.

 

Thanks

Posted

Try  removing the config file with Htop closed:

 

sudo rm /root/.config/htop/htoprc

 

Start Htop and make your changes.

Posted

Thanks, removning it does not help.

 

However, creating a new one works. But htop seems not to save any changes. But no crash.

 

Could you post the armbian default or whatever you have?

 

Thanks

 

 

Posted
 ____      _     _      _                         _   ____  
 / ___|   _| |__ (_) ___| |__   ___   __ _ _ __ __| | |___ \ 
| |  | | | | '_ \| |/ _ \ '_ \ / _ \ / _` | '__/ _` |   __) |
| |__| |_| | |_) | |  __/ |_) | (_) | (_| | | | (_| |  / __/ 
 \____\__,_|_.__/|_|\___|_.__/ \___/ \__,_|_|  \__,_| |_____|
                                                             
Welcome to Armbian 20.08.1 Focal with Linux 5.8.5-sunxi

No end-user support: community creations

System load:   0.27 0.62 0.34      Up time:       5 min        
Memory usage:  8 % of 990MB      IP:            192.168.254.71
CPU temp:      44°C               
Usage of /:    4% of 29G        

Last login: Wed Nov 25 15:45:51 2020 from 192.168.254.253
root@cubieboard2:~# htop
root@cubieboard2:~# htop --version
htop 2.2.0 - (C) 2004-2020 Hisham Muhammad
Released under the GNU GPL.

root@cubieboard2:~# 

 

a20.png

a20_config.png

a20_restart.png

Posted

That is neat! Shell in a box, have to look into that.

 

For anyone with the same problem I had, here is a htoprc to start with:

 

# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=0
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=1
highlight_megabytes=1
highlight_threads=1
tree_view=0
header_margin=1
detailed_cpu_time=0
cpu_count_from_zero=0
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=0
delay=15
left_meters=AllCPUs Swap CPU Memory
left_meter_modes=1 1 1 1
right_meters=Hostname Tasks LoadAverage Uptime
right_meter_modes=2 2 2 2
# SBC hardware and Kernel specific path.
# Editable manually.
BoardName=
CpuFreq_handler=
CpuTemp_handler=
CpuVCore_l_handler=
CpuVCore_b_handler=
GpuVCore_handler=
GpuTemp_handler=
# Wlan / Eth alias
eth0_alias=
eth1_alias=
wlan0_alias=
wlan1_alias=

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines