konrad
Junior Member
Offline
I love YaBB 1G - SP1!
Posts: 53
|
I added some more printf statements to this function to see what was happening, and bizarrely this caused the program behaviour to change. It now continues running ScanDirectoryForFileNames for the directories UserAddins, TreeAddIns, GeneticCodes and SubstitutionModels (all items have d_type = 0). It then opens the HYPHY Console with text "Loaded 12 genetic code tables from /home/konrad/HyPhy/HYPHY_Source/GeneticCodes" and pops up a warning "The following error occurred: Bad symbols in expression". In my xterm it prints: ** (HYPHY_GTK:7785): WARNING **: Invalid UTF8 string passed to pango_layout_set_text() This warning occurs 3 times when I keep clicking "Skip further messages". It then prints: "I couldn't find any valid model templates in '/home/konrad/HyPhy/HYPHY_Source/SubstitutionModels'. Please check your installation of HYPHY for missing files. Please cite S.L. Kosakovsky Pond, S. D. W. Frost and S.V. Muse. (2005) HyPhy: hypothesis testing using phylogenies. Bioinformatics 21: 676-679 if you use HyPhy in a publication" in the HYPHY Console. After this I am able to operate the menus in the HYPHY Console. On attempting to open the p51.nex example file, the console disappears and the output to the xterm is: ** (HYPHY_GTK:7785): WARNING **: Invalid borders specified for theme pixmap: /home/konrad/HyPhy/HYPHY_Source/GTKResources/theme/entry1.png, borders don't fit within the image
(HYPHY_GTK:7785): Gdk-CRITICAL **: file gdkdraw.c: line 265 (gdk_drawable_set_colormap): assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed
(HYPHY_GTK:7785): Gdk-CRITICAL **: file gdkdraw.c: line 265 (gdk_drawable_set_colormap): assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed
(HYPHY_GTK:7785): Gdk-CRITICAL **: file gdkdraw.c: line 265 (gdk_drawable_set_colormap): assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed
(HYPHY_GTK:7785): Gdk-CRITICAL **: file gdkdraw.c: line 265 (gdk_drawable_set_colormap): assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed
(HYPHY_GTK:7785): Gdk-CRITICAL **: file gdkdraw.c: line 265 (gdk_drawable_set_colormap): assertion `cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed
(HYPHY_GTK:7785): Gdk-WARNING **: Using Xft rendering requires the drawable argument to have a specified colormap. All windows have a colormap, however, pixmaps only have colormap by default if they were created with a non-NULL window argument. Otherwise a colormap must be set on them with gdk_drawable_set_colormap Segmentation fault
Here is the final part of the function containing all statements I added (the "not a directory item" statement is output every time, the others never): [code]
if (curEntry->d_type == DT_DIR) // a directory { #ifdef KONRAD_DEBUG printf ("ScanDirectoryForFileNames::%s detected as directory item.\n", childDir.sData); #endif if (recurse) #ifdef KONRAD_DEBUG printf ("Recursing.\n"); #endif ScanDirectoryForFileNames (childDir,rec,true); } else #ifdef KONRAD_DEBUG printf ("ScanDirectoryForFileNames::%s not a directory item.\n", childDir.sData); #endif if (curEntry->d_type == DT_REG) #ifdef KONRAD_DEBUG printf ("ScanDirectoryForFileNames::%s detected as DT_REG item.\n", childDir.sData); #endif rec && & childDir; } } closedir (dirPntr); } #ifdef KONRAD_DEBUG else printf ("ScanDirectoryForFileNames::Failed to open %s with opendir\n", source.sData); #endif return '/'; }
[/code]
|