Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fluxbox style menu crash
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
goffee
n00b
n00b


Joined: 20 Aug 2002
Posts: 4

PostPosted: Mon Aug 26, 2002 8:15 pm    Post subject: Fluxbox style menu crash Reply with quote

Hello all,

I'm using Fluxbox, built from the 0.1.10 ebuild. I have an Athlon-1200 system compiled with the default i686-only flags. I've built a custom menu which includes [stylesmenu] entries for both the default /usr/share/commonbox/styles directory, and a styles directory in my home directory.

Upon selecting a new style from my own styles directory, the submenu listing those styles remains on the screen, in the old style, while everything else changes to the new style. This submenu remains stuck: the rest of the root menu will close, but the one submenu remains. Trying to move it or do anything to it causes Fluxbox to dump core. The odd thing is, this doesn't happen with the included directory of styles.

Thanks in advance for any help!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Aug 26, 2002 8:20 pm    Post subject: Reply with quote

What do the two sections look like (working & non-working)?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
goffee
n00b
n00b


Joined: 20 Aug 2002
Posts: 4

PostPosted: Mon Aug 26, 2002 8:50 pm    Post subject: Re: Reply with quote

kanuslupus wrote:
What do the two sections look like (working & non-working)?


I don't think there's a problem here, but I suppose I could be missing something obvious. Here it is:

Code:

   [submenu] (Configuration)
      [submenu] (Styles)
         [stylesmenu] (Included styles) {/usr/share/commonbox/styles}
         [stylesmenu] (User styles) {/home/ncg/.commonbox/styles}
      [end]
      [config] (Options)
      [reconfig] (Reconfigure)      
   [end]


As far as I can see, there's no difference between the two. (The bracketing is right---it seemed to do something funky when posted between BBCode's code blocks).

This works fine in OpenBox. It could be a bug in FluxBox, but I haven't found any mention of it elsewhere on these forums or on Google.

Thanks!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Aug 26, 2002 9:14 pm    Post subject: Reply with quote

Here's how I just did it without problems:
Code:
      [submenu] (User Styles) {Choose a style...}
         [stylesdir] (/home/user/.fluxbox/styles)
      [end]
      [submenu] (System Styles) {Choose a style...}
         [stylesdir] (/usr/share/commonbox/styles)
      [end]

_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
goffee
n00b
n00b


Joined: 20 Aug 2002
Posts: 4

PostPosted: Mon Aug 26, 2002 11:52 pm    Post subject: Bafflement! Reply with quote

Hmm...I tried it, as you suggested, using a [stylesdir] command inside a submenu, and it still crashes. (I have tried re-emerging fluxbox, BTW.) Out of curiosity, I switched the order of the two menus, and now the one for the included styles breaks. It seems that the first styles directory works, and the second one doesn't.

I'll mess with it a little bit, maybe try compiling with different optimizations. I could look through the source code a bit, too, maybe comparing it with that of OpenBox or BlackBox.

Has anyone else been able to duplicate this crash?

Thanks again.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Aug 27, 2002 12:14 am    Post subject: Reply with quote

Do you have read permissions on the directories?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
goffee
n00b
n00b


Joined: 20 Aug 2002
Posts: 4

PostPosted: Tue Aug 27, 2002 10:53 pm    Post subject: Now we're getting somewhere... Reply with quote

Hello, and thanks for your help so far.

I started with a new menu file copied directly from /usr/share/commonbox/menu. This didn't crash. So I started transforming it into something similar to the one that did crash, one step at a time. I added a second directory full of styles; still no crash.

What did cause a crash was adding more levels of hierarchy. In other words, whereas in the stock menu file I would have selected:

Root menu->Configure->User Styles->SomeStyle

Adding a new level, so that I have to select:

Root menu->Configure->Styles->User Styles->SomeStyle

...causes the crash to reoccur.

So at least I have a workaround now. OpenBox and BlackBox are nice enough, but tabs are even nicer.

With this added bit of detail, would you mind seeing if you can duplicate this behavior? Here's the entire menu, with just enough added to cause the crash on my system:

Code:


[begin] (Box)
   [exec] (xterm) {xterm -fg white -bg black}

[submenu] (Browsers)
   [exec] (netscape) {netscape}
   [exec] (galeon) {galeon}
   [exec] (mozilla) {mozilla}
   [exec] (konqueror) {konqueror}
   [exec] (lynx) {xterm -title lynx -fg white -bg black -e lynx}
[end]


[submenu] (Editors)
   [exec] (vim) {vim -g}
   [exec] (emacs) {emacs}
   [exec] (gedit) {gedit}
   [exec] (xedit) {xedit}
   [exec] (kwrite) {kwrite}
[end]


[submenu] (Net)
   [exec] (gaim) {gaim}
   [exec] (evolution) {evolution}
[end]


[submenu] (Graphics)
   [exec] (gimp) {gimp}
   [exec] (xv) {xv}
   [exec] (kpaint) {kpaint}
   [exec] (kiconedit) {kiconedit}
   [exec] (xscreensaver-demo) {xscreensaver-demo}
[end]


[submenu] (Music)
   [exec] (kmix) {kmix}
   [exec] (kmidi) {kmidi}
[end]


[submenu] (Terminals)
   [exec] (xterm) {xterm -fg white -bg black}
   [exec] (gnome-terminal) {gnome-terminal}
   [exec] (Eterm) {Eterm}
   [exec] (konsole) {konsole}
   [exec] (aterm) {aterm}
   [exec] (rxvt) {rxvt}
[end]


[submenu] (Misc)
   [exec] (kcalc) {kcalc}
   [exec] (kpackage) {kpackage}
   [exec] (tail access_log) {xterm -fg white -bg black -title access_log -e tail -f /var/log/access_log}
[end]


[submenu] (X-utils)
   [exec] (xcalc) {xcalc}
   [exec] (xfontsel) {xfontsel}
   [exec] (xman) {xman}
   [exec] (xload) {xload}
   [exec] (xfig) {xfig}
   [exec] (xbiff) {xbiff}
   [exec] (editres) {editres}
   [exec] (viewres) {viewres}
   [exec] (xclock) {xclock}
[end]


[submenu] (Gnome-menus)

[submenu] (Applications)
   [exec] (Ximian Evolution)    {evolution}
[end]


[submenu] (Internet)
   [exec] (Gaim)    {gaim }
   [exec] (Galeon)    {galeon}
   [exec] (Gnobog)    {gnobog}
[end]


[submenu] (Settings)
   [exec] (File Types and Programs)    {file-types-capplet}
   [exec] (GNOME Control Center)    {gnomecc}
[end]

[end]


[submenu] (KDE-menus)

[submenu] (Applications)
   [exec] (Ximian Evolution)    {evolution}
[end]

[end]


[submenu] (Settings)
   [workspaces]   (Workspace List)
[submenu] (Styles)
[submenu] (System Styles) {Choose a style...}
   [stylesdir] (/usr/share/commonbox/styles)
[end]
[submenu] (User Styles) {Choose a style...}
   [stylesdir] (/home/ncg/.commonbox/styles)
[end]
[end]

   [config] (Configure)
   [reconfig] (Reload config)
[end]

   [restart] (Restart)
   [exit] (Exit)
[end]


Thanks!
Back to top
View user's profile Send private message
Wedge_
Advocate
Advocate


Joined: 08 Aug 2002
Posts: 3614
Location: Scotland

PostPosted: Tue Aug 27, 2002 11:07 pm    Post subject: Reply with quote

I tried your menu just now, and it produced the same crash as you described. I'm using 0.1.11, so it's not just a problem with the 0.1.10 version. This is the styles section from my menu, which works fine.
Code:

[submenu] (FB-Settings)
   [workspaces]   (Workspace List)
[submenu] (Styles) {Choose a style...}
   [stylesdir] (/usr/share/commonbox/styles)
   [stylesdir] (~/.fluxbox/styles)
[end]
   [config] (Configure)
   [reconfig] (Reload config)
[end]
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Aug 27, 2002 11:58 pm    Post subject: Reply with quote

Try this:
Code:
[begin] (Box)
   [exec] (xterm) {xterm -fg white -bg black}

   [submenu] (Browsers)
      [exec] (netscape) {netscape}
      [exec] (galeon) {galeon}
      [exec] (mozilla) {mozilla}
      [exec] (konqueror) {konqueror}
      [exec] (lynx) {xterm -title lynx -fg white -bg black -e lynx}
   [end]


   [submenu] (Editors)
      [exec] (vim) {vim -g}
      [exec] (emacs) {emacs}
      [exec] (gedit) {gedit}
      [exec] (xedit) {xedit}
      [exec] (kwrite) {kwrite}
   [end]


   [submenu] (Net)
      [exec] (gaim) {gaim}
      [exec] (evolution) {evolution}
   [end]


   [submenu] (Graphics)
      [exec] (gimp) {gimp}
      [exec] (xv) {xv}
      [exec] (kpaint) {kpaint}
      [exec] (kiconedit) {kiconedit}
      [exec] (xscreensaver-demo) {xscreensaver-demo}
   [end]


   [submenu] (Music)
      [exec] (kmix) {kmix}
      [exec] (kmidi) {kmidi}
   [end]


   [submenu] (Terminals)
      [exec] (xterm) {xterm -fg white -bg black}
      [exec] (gnome-terminal) {gnome-terminal}
      [exec] (Eterm) {Eterm}
      [exec] (konsole) {konsole}
      [exec] (aterm) {aterm}
      [exec] (rxvt) {rxvt}
   [end]


   [submenu] (Misc)
      [exec] (kcalc) {kcalc}
      [exec] (kpackage) {kpackage}
      [exec] (tail access_log) {xterm -fg white -bg black -title access_log -e tail -f /var/log/access_log}
   [end]


   [submenu] (X-utils)
      [exec] (xcalc) {xcalc}
      [exec] (xfontsel) {xfontsel}
      [exec] (xman) {xman}
      [exec] (xload) {xload}
      [exec] (xfig) {xfig}
      [exec] (xbiff) {xbiff}
      [exec] (editres) {editres}
      [exec] (viewres) {viewres}
      [exec] (xclock) {xclock}
   [end]


   [submenu] (Gnome-menus)

      [submenu] (Applications)
         [exec] (Ximian Evolution)    {evolution}
      [end]


      [submenu] (Internet)
         [exec] (Gaim)    {gaim }
         [exec] (Galeon)    {galeon}
         [exec] (Gnobog)    {gnobog}
      [end]


      [submenu] (Settings)
         [exec] (File Types and Programs)    {file-types-capplet}
         [exec] (GNOME Control Center)    {gnomecc}
      [end]

   [end]


   [submenu] (KDE-menus)

      [submenu] (Applications)
         [exec] (Ximian Evolution)    {evolution}
      [end]

   [end]


   [submenu] (Settings)
      [workspaces]   (Workspace List)
      [submenu] (Styles)
         [submenu] (System Styles) {Choose a style...}
            [stylesdir] (/usr/share/commonbox/styles)
         [end]
      [submenu] (User Styles) {Choose a style...}
            [stylesdir] (/home/ncg/.commonbox/styles)
         [end]
      [end]

      [config] (Configure)
      [reconfig] (Reload config)
   [end]

   [restart] (Restart)
   [exit] (Exit)
[end]

_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum