! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
browsing for file crashes on too long name (longer than 23)
Status:
RESOLVED: INVALID
Product:
Xfdesktop
Component:
General

Comments

Description Krzysztof Trzcinski 2005-02-22 22:42:25 CET
When I try to brwose for a file (i.e. background image or non-standard icon) and
I open folder in which I have with name longer than 23 characters and I scroll
to position where it should be and it crashes. In case of panel and browsing for
i.e. mentioned above icon the whole panel crashes and I have to re-run it from
console.

Reproducible: Always
Steps to Reproduce:
1. cd ~/tmp
2. tmpvar=""
3. for i in `seq 1 25`; do tmpvar=$tmpvar"a"; done;
4. touch $var
5. Settings->Desktop and try to browse for image (this little folder near file
path) and enter the ~/tmp and scroll to see file a[x25]

Actual Results:  
Browsing window closed and all the styles were gone (they return after opening
the  Setting panel)

Expected Results:  
Not crash ;]
Comment 1 Brian J. Tarricone (not reading bugmail) 2005-02-22 22:46:52 CET
Just to be clear: the crash occurs just due to the act of scrolling in the file
picker window, or after you click OK to open the file?

If it's the former, this sounds like a problem with your setup (not
xfce-related).  What version of gtk are you using?
Comment 2 Krzysztof Trzcinski 2005-02-22 23:30:15 CET
On scrolling. No ok button being clicked.
And a little correction, 'cos now it showed a file with 25 characters, make in
this seq the bigger value to about 50.
And how to check which gtk is being used by Xfce? I have installed both 1.2 and
2.0 (Gentoo user if this helps).
Comment 3 Brian J. Tarricone (not reading bugmail) 2005-02-22 23:44:59 CET
It's very unlikely that this is an Xfce bug, so closing.  You can find your gtk
version by issuing "pkg-config gtk+-2.0 --modversion" from a terminal.
Comment 4 Krzysztof Trzcinski 2005-02-22 23:50:17 CET
(In reply to comment #3)
> It's very unlikely that this is an Xfce bug, so closing.  You can find your gtk
> version by issuing "pkg-config gtk+-2.0 --modversion" from a terminal.
2.6.2
But still don't know how to get rid of this problem. In KDE I didn't have any
problems with gtk (and I still don't).
Comment 5 Krzysztof Trzcinski 2005-02-23 18:09:55 CET
After w hile playing with Xfce I'm almost sure the issue is Xfce related. When I
try to run Bluefish on Xfce I get the same error while I got before whilst
browsing. Effect is like that I cannot start Bluefish in Xfce, but in KDE I can.
Error message:
(bluefish:9305): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT
(object)' failed

(bluefish:9305): Pango-CRITICAL **: _pango_engine_shape_covers: assertion
`PANGO_IS_FONT (font)' failed

(bluefish:9305): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT
(object)' failed

(bluefish:9305): Pango-CRITICAL **: _pango_engine_shape_shape: assertion
`PANGO_IS_FONT (font)' failed

Pango-ERROR **: file shape.c: line 75 (pango_shape): assertion failed:
(glyphs->num_glyphs > 0)

Only difference is the part in braces, because before it was not bluefish, but
xfce-mcs-manager.
I know I can be a bit annoying, but I really liked what I saw until know and I
would like to change KDE to Xfce.
Comment 6 Brian J. Tarricone (not reading bugmail) 2005-02-23 19:04:13 CET
The fact that it occurs in another app is further proof that it *isn't* related
to Xfce, not that it is.  Generally, if you change environments and the bug goes
away, it's because of some other weird triggering condition.  Since the bug
appears to be pango-related, it's possible that your fonts are set up
differently in KDE.  Or maybe KDE sets G_BROKEN_FILENAMES or some other env var
that allows gtk to fudge its charset handling when filenames are concerned.  I
really don't know what your particular problem is, but it's almost certain that
this isn't Xfce-related.
Comment 7 Krzysztof Trzcinski 2005-02-25 14:36:08 CET
I still am after that it is Xfce problem. Though maybe not bug (so please
forgive bothering again here, but maybe someone will have the same or similiar
problem). I found out that when I start Xfce as root everything works fine. When
I compiled Bluefish with debugging info I got (above all other, in this case,
useless info):

(bluefish:1879): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified
are supported and host-based authentication failed.

When I run as root Bluefish (starting Xfce as normal user) it worked as well. If
you know what and where to change I would really appreciate.
Comment 8 Krzysztof Trzcinski 2005-02-25 19:10:58 CET
At last I found what was the cause. The font I used. When I changed it to
another everything workde perfectly.

Bug #800

Reported by:
Krzysztof Trzcinski
Reported on: 2005-02-22
Last modified on: 2009-07-15

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Additional information