WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tint2 Segmentation Fault  (Read 2397 times)

Offline NinjaCowboy

  • Newbie
  • *
  • Posts: 36
tint2 Segmentation Fault
« on: January 09, 2019, 06:41:00 PM »
I decided to set up an Openbox environment with tint2 as a panel. However, tint2 always crashes when I try to run it. I've created a blank config file at .config/tint2 to test it. Running 'tint2 -c .config/tint2' produces this output.
Code: [Select]
real transparency off.... depth: 24
xRandr: Found crtc's: 3
xRandr: Linking output LVDS1 with crtc 0
tint2 : nb monitor 1, nb monitor used 1, nb desktop 4
Segmentation fault
Is anyone else able to run tint2 on Tiny Core 9.0?

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: tint2 Segmentation Fault
« Reply #1 on: January 10, 2019, 01:16:21 AM »
Hi
How did you compile it ?
This is my method: (TC64 9.0)
Code: [Select]
# build dependencies
tce-load -i git compiletc cmake Xorg-7.7-dev pango-dev imlib2-dev librsvg-dev startup-notification-dev gtk2-dev squashfs-tools
# TC compile flags
FLAGS_i686='-march=i486 -mtune=i686 '
FLAGS_x86_64='-mtune=generic '
eval CFLAGS="\$FLAGS_${ARCH}"
eval CXXFLAGS="\$FLAGS_${ARCH}"
CFLAGS="${CFLAGS}-Os -pipe -fno-exceptions -flto -fuse-linker-plugin"
CXXFLAGS="${CXXFLAGS}-Os -pipe -fno-exceptions -flto -fuse-linker-plugin -fno-rtti"
LDFLAGS="-Wl,-O1"
export CFLAGS CXXFLAGS LDFLAGS
# source code
git clone https://gitlab.com/o9000/tint2.git
cd tint2
git checkout 16.6.1
# Adjustment to source code
find . -type f -exec sed -i 's:/usr/share:/usr/local/share:g' {} +
# compile
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr/local
make
# pack up extensions
make DESTDIR=/tmp/tint-root install
mksquashfs /tmp/tint-root tint2-full.tcz
# load and test
tce-load -i tint2-full.tcz
tint2

Note that I already have my openbox running beforehand.
The build dependencies I list above may be incomplete if you boot as core only.

Online neonix

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 406
Re: tint2 Segmentation Fault
« Reply #2 on: January 10, 2019, 11:03:53 AM »
1) You get "Segmentation fault" because config file is blank or incorrect.
2) tint2 from TC 9.0 don't generate .config/tint2/tint2rc
3) If you compile tint2 from git and run it will generate correct config file in .config/tint2/tint2rc
4) If you don't want to compile it, try this file generated from git version.

Code: [Select]
#---- Generated by tint2conf 2641 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Panel
rounded = 0
border_width = 0
background_color = #000000 60
border_color = #000000 30
background_color_hover = #000000 60
border_color_hover = #000000 30
background_color_pressed = #000000 60
border_color_pressed = #000000 30

# Background 2: Default task, Iconified task
rounded = 4
border_width = 1
background_color = #777777 20
border_color = #777777 30
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44

# Background 3: Active task
rounded = 4
border_width = 1
background_color = #777777 20
border_color = #ffffff 40
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44

# Background 4: Urgent task
rounded = 4
border_width = 1
background_color = #aa4400 100
border_color = #aa7733 100
background_color_hover = #cc7700 100
border_color_hover = #aa7733 100
background_color_pressed = #555555 4
border_color_pressed = #aa7733 100

# Background 5: Tooltip
rounded = 1
border_width = 1
background_color = #ffffaa 100
border_color = #000000 100
background_color_hover = #ffffaa 100
border_color_hover = #000000 100
background_color_pressed = #ffffaa 100
border_color_pressed = #000000 100

#-------------------------------------
# Panel
panel_items = LTSC
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 2 0 2
panel_background_id = 1
wm_menu = 1
panel_dock = 0
panel_position = bottom center horizontal
panel_layer = top
panel_monitor = all
primary_monitor_first = 0
autohide = 0
autohide_show_timeout = 0
autohide_hide_timeout = 0.5
autohide_height = 2
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 1
mouse_effects = 1
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0

#-------------------------------------
# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 0 0 2
taskbar_background_id = 0
taskbar_active_background_id = 0
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 4 2
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font_color = #e3e3e3 100
taskbar_name_active_font_color = #ffffff 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left

#-------------------------------------
# Task
task_text = 1
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 100000
task_maximum_size = 150 35
task_padding = 2 2 4
task_tooltip = 1
task_font_color = #ffffff 100
task_background_id = 2
task_active_background_id = 3
task_urgent_background_id = 4
task_iconified_background_id = 2
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#-------------------------------------
# System tray (notification area)
systray_padding = 0 4 2
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 24
systray_icon_asb = 100 0 0
systray_monitor = 1

#-------------------------------------
# Launcher
launcher_padding = 2 4 2
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 24
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 1
launcher_tooltip = 1
launcher_item_app = /usr/share/applications/tint2conf.desktop
launcher_item_app = /usr/local/share/applications/tint2conf.desktop
launcher_item_app = /usr/share/applications/firefox.desktop
launcher_item_app = /usr/share/applications/iceweasel.desktop
launcher_item_app = /usr/share/applications/chromium-browser.desktop
launcher_item_app = /usr/share/applications/google-chrome.desktop

#-------------------------------------
# Clock
time1_format = %H:%M
time2_format = %A %d %B
time1_timezone =
time2_timezone =
clock_font_color = #ffffff 100
clock_padding = 2 0
clock_background_id = 0
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command =
clock_rclick_command = orage
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =

#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_font_color = #ffffff 100
battery_padding = 1 0
battery_background_id = 0
battery_hide = 101
battery_lclick_command =
battery_rclick_command =
battery_mclick_command =
battery_uwheel_command =
battery_dwheel_command =
ac_connected_cmd =
ac_disconnected_cmd =

#-------------------------------------
# Tooltip
tooltip_show_timeout = 0.5
tooltip_hide_timeout = 0.1
tooltip_padding = 2 2
tooltip_background_id = 5
tooltip_font_color = #222222 100

Offline NinjaCowboy

  • Newbie
  • *
  • Posts: 36
Re: tint2 Segmentation Fault
« Reply #3 on: January 11, 2019, 12:31:59 PM »
I compiled the latest Git version and it no longer crashes. Someone should update the tint2.tcz in the repository to a newer version that isn't broken.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: tint2 Segmentation Fault
« Reply #4 on: January 12, 2019, 03:04:14 AM »
Since you've compiled a new version, it would be much appreciated if you could submit it as an extension  :)