lxpanel 0.4 + menu-cache 0.2.4 but no main menu on lxpanel

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
Locked
swyear
Posts: 8
Joined: Sun Feb 01, 2009 6:43 am

lxpanel 0.4 + menu-cache 0.2.4 but no main menu on lxpanel

Post by swyear »

OS: opensuse 11.0
upgrade lxpanel and menu-cache then re-login LXDE
main menu in lxpanel only shows "logout" and "run"
Try
killall lxpanel then run lxpanel in terminal:
lxpanel
** (lxpanel:3882): DEBUG: cache file_name = /home/steven/.cache/menus/76c8e959aa352b9cd359e956b201372d
lxpanel : X error: BadAlloc (insufficient resources for operation)
lxpanel : X error: BadDrawable (invalid Pixmap or Window parameter)
lxpanel : X error: BadPixmap (invalid Pixmap parameter)

No luck!

try
menu-cache-gen -i /etc/xdg/menus/lxde-applications.menu

(menu-cache-gen:3818): GLib-CRITICAL **: g_path_get_dirname: assertion `file_name != NULL' failed
程式記憶體區段錯誤

got a segment fault!

Now I have to downgrade to menu-cache-0.2.2
then main menu show up again
(lxpanel-0.4.0)
mstibs
Posts: 3
Joined: Mon Sep 15, 2008 7:19 pm

Re: lxpanel 0.4 + menu-cache 0.2.4 but no main menu on lxpanel

Post by mstibs »

Same here with Debian Lenny.

Actually I've never succeeded yet to get the new menu (w/ menu-cache) running when compiling from sources. Neither in Debian nor Slackware. It was just empty in any case.

The old version has been much more reliable. Maybe it was buggy but at least it worked.

Not nice, really =(

I'm just trying to write an article about LXDE this weekend for a german Linux mag but that's really a showstopper. Maybe downgrading to menu-cache 0.2.2 works like the former poster recommends. I'll try that next.

STIBS
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: lxpanel 0.4 + menu-cache 0.2.4 but no main menu on lxpanel

Post by Marty Jack »

The latest releases work for many people, so it is something unusual with your system. We are of course anxious to get the problem solved.

Kindly confirm if you have lxmenu-data installed, which you need.

If someone is able to get a backtrace of the segment fault, it would be helpful.
mstibs
Posts: 3
Joined: Mon Sep 15, 2008 7:19 pm

Re: lxpanel 0.4 + menu-cache 0.2.4 but no main menu (solved)

Post by mstibs »

I recompiled it all a third time, this time removing the Debian packages first. It works now (except some disappearing menu entries which I wrote myself - probably w/ bugs like Categories=System; instead Categories=Application;System;).

So, if somebody stumbles about a not appearing menu, try removing original packages first and then compile everything from scratch.

One thing is important too: Against the usual routine, don't forget to compile lxmenu-data with ./configure --prefix=/usr --sysconfdir=/etc!

Best
STIBS
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: lxpanel 0.4 + menu-cache 0.2.4 but no main menu on lxpanel

Post by Marty Jack »

Is something wrong with the Debian and/or Suse packages? If there is, we need to get that worked out.
idee
Posts: 1
Joined: Fri May 01, 2009 11:00 pm

Re: lxpanel 0.4 + menu-cache 0.2.4 but no main menu on lxpanel

Post by idee »

I am using openSuSE 11.1 on a 64bit system. I would like to get LXDE working, but the Panel loads and freezes immediately. Once or twice I was able to get it to work for one selection, then it would freeze. Right mouse clicking on the desktop to bring up applications only lists the filemanager, a terminal and one other app I can't remember right now.

I would like to get this working. I looks like a great gui. I can't program, but I can provide data if it helps. You will need to tell me what you need. I haven't installed the debug apps yet, but can if needed.

Should I uninstall the 64 bit and just drop back to the i586 version? Would that help? Would that even work?

Another minor thing is that I am running dual screens but the desktop is wrong. The screen is stretched, but both are showing only the left screen. When I logout the right screen (with the logo) is visible for a second, just before it closes LXDE.

thanks and please let me know if I can help or if there is an easy answer.
idee,

below is the message log showing the start up.

Code: Select all

May  6 16:40:32 linux-rsqf syslog-ng[2123]: syslog-ng starting up; version='2.0.9'
May  6 16:40:35 linux-rsqf ifup:     lo        
May  6 16:40:35 linux-rsqf ifup:     lo        
May  6 16:40:35 linux-rsqf ifup: IP address: 127.0.0.1/8  
May  6 16:40:35 linux-rsqf ifup:  
May  6 16:40:35 linux-rsqf ifup:               
May  6 16:40:35 linux-rsqf ifup: IP address: 127.0.0.2/8  
May  6 16:40:35 linux-rsqf ifup:  
May  6 16:40:35 linux-rsqf ifup:     eth0      device: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
May  6 16:40:36 linux-rsqf ifup-dhcp:     eth0      Starting DHCP4 client
May  6 16:40:36 linux-rsqf dhcpcd[2751]: eth0: dhcpcd 3.2.3 starting
May  6 16:40:36 linux-rsqf dhcpcd[2751]: eth0: hardware address = 00:19:db:4a:4c:e9
May  6 16:40:36 linux-rsqf dhcpcd[2751]: eth0: broadcasting for a lease
May  6 16:40:37 linux-rsqf kernel: klogd 1.4.1, log source = /proc/kmsg started.
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.199:2): operation="profile_load" name="/bin/ping" name2="default" pid=1959
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.239:3): operation="profile_load" name="/sbin/klogd" name2="default" pid=1960
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.359:4): operation="profile_load" name="/sbin/syslog-ng" name2="default" pid=1964
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.515:5): operation="profile_load" name="/sbin/syslogd" name2="default" pid=1979
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.591:6): operation="profile_load" name="/usr/sbin/avahi-daemon" name2="default" pid=1990
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.655:7): operation="profile_load" name="/usr/sbin/identd" name2="default" pid=1995
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.731:8): operation="profile_load" name="/usr/sbin/mdnsd" name2="default" pid=2001
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.831:9): operation="profile_load" name="/usr/sbin/nscd" name2="default" pid=2009
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.931:10): operation="profile_load" name="/usr/sbin/ntpd" name2="default" pid=2022
May  6 16:40:37 linux-rsqf kernel: type=1505 audit(1241646030.991:11): operation="profile_load" name="/usr/sbin/traceroute" name2="default" pid=2029
May  6 16:40:37 linux-rsqf kernel: powernow-k8: Found 1 AMD Athlon(tm) 64 Processor 3800+ processors (1 cpu cores) (version 2.20.00)
May  6 16:40:37 linux-rsqf kernel: powernow-k8:    0 : fid 0x2 (1000 MHz), vid 0x12
May  6 16:40:37 linux-rsqf kernel: powernow-k8:    1 : fid 0xa (1800 MHz), vid 0xc
May  6 16:40:37 linux-rsqf kernel: powernow-k8:    2 : fid 0xc (2000 MHz), vid 0xa
May  6 16:40:37 linux-rsqf kernel: powernow-k8:    3 : fid 0xe (2200 MHz), vid 0x8
May  6 16:40:37 linux-rsqf kernel: powernow-k8:    4 : fid 0x10 (2400 MHz), vid 0x6
May  6 16:40:37 linux-rsqf kernel: CPUFREQ: ondemand sampling rate set to 300 ms
May  6 16:40:37 linux-rsqf kernel: Clocksource tsc unstable (delta = -291608382 ns)
May  6 16:40:37 linux-rsqf kernel: NET: Registered protocol family 10
May  6 16:40:37 linux-rsqf kernel: lo: Disabled Privacy Extensions
May  6 16:40:37 linux-rsqf kernel: r8169: eth0: link down
May  6 16:40:37 linux-rsqf kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
May  6 16:40:37 linux-rsqf kernel: NET: Registered protocol family 17
May  6 16:40:37 linux-rsqf ifup-dhcp: . 
May  6 16:40:39 linux-rsqf kdm_config[2785]: Multiple occurrences of key 'UseTheme' in section [X-*-Greeter] of /usr/share/kde4/config/kdm/kdmrc
May  6 16:40:39 linux-rsqf ifup-dhcp: . 
May  6 16:40:41 linux-rsqf kernel: agpgart-amd64 0000:00:00.0: AGP 3.0 bridge
May  6 16:40:41 linux-rsqf kernel: agpgart-amd64 0000:00:00.0: putting AGP V3 device into 8x mode
May  6 16:40:41 linux-rsqf kernel: nvidia 0000:01:00.0: putting AGP V3 device into 8x mode
May  6 16:40:42 linux-rsqf ifup-dhcp: . 
May  6 16:40:44 linux-rsqf ifup-dhcp: . 
May  6 16:40:46 linux-rsqf ifup-dhcp: . 
May  6 16:40:48 linux-rsqf ifup-dhcp: . 
May  6 16:40:50 linux-rsqf ifup-dhcp: . 
May  6 16:40:52 linux-rsqf ifup-dhcp: . 
May  6 16:40:54 linux-rsqf ifup-dhcp:  
May  6 16:40:54 linux-rsqf ifup-dhcp:     eth0      DHCP4 continues in background
May  6 16:40:56 linux-rsqf dhcpcd[2751]: eth0: timed out
May  6 16:40:56 linux-rsqf dhcpcd[2751]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
May  6 16:40:56 linux-rsqf dhcpcd[2751]: eth0: broadcasting for a lease
May  6 16:40:59 linux-rsqf pulseaudio[3333]: pid.c: Stale PID file, overwriting.
May  6 16:41:00 linux-rsqf pulseaudio[3333]: alsa-util.c: Device front:0 doesn't support 44100 Hz, changed to 48000 Hz.
May  6 16:41:09 linux-rsqf auditd[3907]: Started dispatcher: /sbin/audispd pid: 3909
May  6 16:41:09 linux-rsqf audispd: priority_boost_parser called with: 4
May  6 16:41:09 linux-rsqf auditd[3907]: Init complete, auditd 1.7.7 listening for events (startup state disable)
May  6 16:41:09 linux-rsqf audispd: af_unix plugin initialized
May  6 16:41:09 linux-rsqf audispd: audispd initialized with q_depth=80 and 1 active plugins
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Found user 'avahi' (UID 103) and group 'avahi' (GID 104).
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Successfully dropped root privileges.
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: avahi-daemon 0.6.23 starting up.
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Loading service file /etc/avahi/services/sftp-ssh.service.
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Loading service file /etc/avahi/services/ssh.service.
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Network interface enumeration completed.
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Registering HINFO record with values 'X86_64'/'LINUX'.
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Server startup complete. Host name is linux-rsqf.local. Local service cookie is 849250992.
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Service "linux-rsqf" (/etc/avahi/services/ssh.service) successfully established.
May  6 16:41:09 linux-rsqf avahi-daemon[3926]: Service "SFTP File Transfer on linux-rsqf" (/etc/avahi/services/sftp-ssh.service) successfully established.
May  6 16:41:11 linux-rsqf ifup:     modem0    name: PANTECH USB MODEM
May  6 16:41:11 linux-rsqf ifup:     modem0    Startmode is 'manual'
May  6 16:41:13 linux-rsqf /usr/sbin/cron[4399]: (CRON) STARTUP (V5.0)
May  6 16:41:13 linux: smartd 5.39 2008-10-24 22:33 [x86_64-suse-linux-gnu] (openSUSE RPM) Copyright (C) 2002-8 by Bruce Allen, [url=http://smartmontools.sourceforge.net]smartmontools Home Page (last updated $Date: 2009/03/27 17:14:37 $)[/url]
May  6 16:41:13 linux: Opened configuration file /etc/smartd.conf
May  6 16:41:13 linux: Drive: DEVICESCAN, implied '-a' Directive on line 26 of file /etc/smartd.conf
May  6 16:41:13 linux: Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices
May  6 16:41:13 linux: Device: /dev/sda, type changed from 'scsi' to 'sat'
May  6 16:41:13 linux: Device: /dev/sda [SAT], opened
May  6 16:41:13 linux: Device: /dev/sda [SAT], found in smartd database.
May  6 16:41:14 linux: Device: /dev/sda [SAT], appears to lack SMART Self-Test log; disabling -l selftest (override with -T permissive Directive)
May  6 16:41:14 linux: Device: /dev/sda [SAT], appears to lack SMART Error log; disabling -l error (override with -T permissive Directive)
May  6 16:41:14 linux: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
May  6 16:41:14 linux-rsqf smpppd[4430]: smpppd version 1.59_SVN31 started
May  6 16:41:14 linux: Device: /dev/sda [SAT], state read from /var/lib/smartmontools/smartd.IBM_DJNA_351520-G80GLW4M080.ata.state
May  6 16:41:14 linux: Device: /dev/sdb, type changed from 'scsi' to 'sat'
May  6 16:41:14 linux: Device: /dev/sdb [SAT], opened
May  6 16:41:14 linux: Device: /dev/sdb [SAT], found in smartd database.
May  6 16:41:14 linux-rsqf sshd[4462]: Server listening on 0.0.0.0 port 22.
May  6 16:41:14 linux-rsqf sshd[4462]: Server listening on :: port 22.
May  6 16:41:15 linux: Device: /dev/sdb [SAT], is SMART capable. Adding to "monitor" list.
May  6 16:41:15 linux: Device: /dev/sdb [SAT], state read from /var/lib/smartmontools/smartd.WDC_WD307AA_00BAA0-WD_WMA2F3090670.ata.state
May  6 16:41:15 linux: Device: /dev/sdc, type changed from 'scsi' to 'sat'
May  6 16:41:15 linux: Device: /dev/sdc [SAT], opened
May  6 16:41:16 linux: Device: /dev/sdc [SAT], found in smartd database.
May  6 16:41:16 linux-rsqf dhcpcd[2751]: eth0: timed out
May  6 16:41:17 linux: Device: /dev/sdc [SAT], is SMART capable. Adding to "monitor" list.
May  6 16:41:17 linux-rsqf dhcpcd[2751]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
May  6 16:41:17 linux-rsqf dhcpcd[2751]: eth0: broadcasting for a lease
May  6 16:41:17 linux: Device: /dev/sdc [SAT], state read from /var/lib/smartmontools/smartd.Hitachi_HDS721616PLA380-PVF904Z23A71RN.ata.state
May  6 16:41:17 linux: Device: /dev/sdd, opened
May  6 16:41:17 linux: Device: /dev/sdd, NO MEDIUM present; skip device
May  6 16:41:17 linux: Device: /dev/sde, opened
May  6 16:41:17 linux: Device: /dev/sde, NO MEDIUM present; skip device
May  6 16:41:17 linux: Device: /dev/sdf, opened
May  6 16:41:17 linux: Device: /dev/sdf, NO MEDIUM present; skip device
May  6 16:41:17 linux: Device: /dev/sdg, opened
May  6 16:41:17 linux: Device: /dev/sdg, NO MEDIUM present; skip device
May  6 16:41:17 linux: Monitoring 3 ATA and 0 SCSI devices
May  6 16:41:17 linux: Device: /dev/sda [SAT], SMART Usage Attribute: 231 Temperature_Celsius changed from 127 to 196
May  6 16:41:18 linux: Device: /dev/sdb [SAT], SMART Usage Attribute: 3 Spin_Up_Time changed from 104 to 102
May  6 16:41:19 linux: Device: /dev/sdc [SAT], 3 Currently unreadable (pending) sectors
May  6 16:41:19 linux: Device: /dev/sdc [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 93 to 92
May  6 16:41:19 linux: Device: /dev/sdc [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 130 to 206
May  6 16:41:19 linux: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.IBM_DJNA_351520-G80GLW4M080.ata.state
May  6 16:41:19 linux: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD307AA_00BAA0-WD_WMA2F3090670.ata.state
May  6 16:41:19 linux: Device: /dev/sdc [SAT], state written to /var/lib/smartmontools/smartd.Hitachi_HDS721616PLA380-PVF904Z23A71RN.ata.state
May  6 16:41:19 linux-rsqf smartd[4487]: smartd has fork()ed into background mode. New PID=4487.
May  6 16:41:19 linux-rsqf kernel: bootsplash: status on console 0 changed to on
majic_user
Posts: 1
Joined: Tue Jun 09, 2009 1:56 pm

Re: lxpanel 0.4 + menu-cache 0.2.4 but no main menu on lxpanel

Post by majic_user »

swyear: I tried the to generate the cache using the command line you posted and got the same error. I found that you must specify and output file. If not you get the segmentation fault.

I am running Debian 5.0.1, lxpanel 0.4.1 and menu-cache 0.2.5. I am still missing the main menu. Has anyone resolved this yet?
psfblair
Posts: 1
Joined: Sun Jul 26, 2009 6:02 am

Re: lxpanel 0.4 + menu-cache 0.2.4 but no main menu on lxpanel

Post by psfblair »

mstibs wrote:I recompiled it all a third time, this time removing the Debian packages first. It works now (except some disappearing menu entries which I wrote myself - probably w/ bugs like Categories=System; instead Categories=Application;System;).

So, if somebody stumbles about a not appearing menu, try removing original packages first and then compile everything from scratch.

One thing is important too: Against the usual routine, don't forget to compile lxmenu-data with ./configure --prefix=/usr --sysconfdir=/etc!

Best
STIBS
I was having similar problems and the above two measures fixed them for me as well:

1. Remove already installed lxpanel &c. before compiling the new one, and
2. Use --prefix=/usr and --sysconfdir=/etc with configure. (Not having the sysconfdir was what got me.)

I am now running successfully with lxpanel 0.4.1 and menu-cache 0.2.5
Locked