Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

How often to you use stonesense?

I consider it an essential part of Dwaf Fortress, and can't play without it.
- 119 (18.4%)
I use it for pretty screenshots, but otherwise don't use it during play.
- 211 (32.7%)
I only try it occasionally.
- 174 (27%)
I have no idea why I'm even in this thread, I don't use it.
- 141 (21.9%)

Total Members Voted: 642


Pages: 1 ... 34 35 [36] 37 38 ... 85

Author Topic: Stonesense: Usage Poll!  (Read 737552 times)

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #525 on: December 24, 2012, 12:29:54 pm »

Stonesense is crashing on startup for me on Linux.
Here is a bactrace of the crash.
Code: [Select]
[DFHack]# stonesense
[New Thread 0xf12ffb70 (LWP 28331)]
[New Thread 0xf0afeb70 (LWP 28332)]
Stonesense launched
Using allegro version 5.0.5 r1
[DFHack]#
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf0afeb70 (LWP 28332)]
0xf484a4ff in _al_xglx_config_select_visual ()
   from ./stonesense/deplibs/liballegro.so.5.0
(gdb) bt full
#0  0xf484a4ff in _al_xglx_config_select_visual ()
   from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#1  0xf4847fcb in xdpy_create_display ()
   from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#2  0xf4804f8e in al_create_display ()
   from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#3  0xf48de489 in stonesense_thread(ALLEGRO_THREAD*, void*) ()
   from /media/Linux_Data/Dwarf_Fortress/Test_Fortress/0.34.X/df_34_11_linux/df_linux/hack/plugins/stonesense.plug.so
No symbol table info available.
#4  0xf481028f in thread_func_trampoline ()
   from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#5  0xf48439b6 in thread_proc_trampoline ()
   from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#6  0xf7316c39 in start_thread (arg=0xf0afeb70) at pthread_create.c:304
        __res = <optimized out>
        __ignore1 = <optimized out>
        __ignore2 = <optimized out>
        pd = 0xf0afeb70
        now = <optimized out>
---Type <return> to continue, or q <return> to quit---
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-147689484, 0, 4001536,
                -256908248, -1941553587, -1319588798}, mask_was_saved = 0}},
          priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0,
              cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#7  0xf74019ce in clone () from /lib32/libc.so.6
No symbol table info available.
Any idea why this is happening?
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

Caldfir

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #526 on: December 24, 2012, 01:57:28 pm »

Stonesense is crashing on startup for me on Linux.
[snip]
Any idea why this is happening?

At first glance that looks like allegro isn't there or isn't running.  That's the graphics library stonesense uses.  I know windows versions come with a prepackaged version of those libraries, but I'm not sure if the linux version does (and if it does, it might not match your distribution for some reason).  If that's the problem then you need to get ahold of a set of the allegro library compatible with your system. 

Also try to check stonesense.log, stdout.log and stderr.log - something useful might be in there (though if there was, it should also have appeared in the DFHack console, but it doesn't hurt to check). 

Also did a quick forum search to see if anyone else has had similar issues, only thing I could find (apart form your post in the DFHack thread ages ago) was this post which may or may not be related to your issue (something to do with a crash caused by system graphics libraries being incompatible). 

If none of that is helpful, I'd suggest going and squatting in the DFHack irc channel and asking for help from someone who has stonesense running on linux (since I'm on windows, and I don't know the potential issues intimately enough to provide detailed advice). 

Also, if you DO figure it out, be sure to post the solution here for future reference :)
Logged
where is up?

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: Stonesense: New official thread.
« Reply #527 on: December 24, 2012, 02:06:11 pm »

Also, if you DO figure it out, be sure to post the solution here for future reference :)

Nah, the cool kid thing to do is to edit your post to just say "Nevermind, got it working."
Logged

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #528 on: December 24, 2012, 02:17:49 pm »

Stonesense is crashing on startup for me on Linux.
[snip]
Any idea why this is happening?

At first glance that looks like allegro isn't there or isn't running.  That's the graphics library stonesense uses.  I know windows versions come with a prepackaged version of those libraries, but I'm not sure if the linux version does (and if it does, it might not match your distribution for some reason).  If that's the problem then you need to get ahold of a set of the allegro library compatible with your system. 
Yes the Linux version includes allegro libraries since many Linux distros don't have a new enough allegro package to install them.
Allegro is definitely there and loaded, the backtrace is saying that allegro was involved in what went wrong in some way.
Before stonesense was moved to dfhack you had to build stonesense yourself on Linux and I had to build allegro for that back then.
This actually looks like it is a bug in allegro or the way allegro is being used since it is crashing when it tries to split of into another thread.
I don't know if changing to a newer version would help but I would have to build a new version of allegro and dfhack myself to do that.
I have a VM setup to build dfhack and stonesense but I am not sure how I would tell it to use a different version of allegro than the one in the stonesense repository.

Also try to check stonesense.log, stdout.log and stderr.log - something useful might be in there (though if there was, it should also have appeared in the DFHack console, but it doesn't hurt to check). 
The logs don't tell me anything other than stonesense had been started, it crashes silently.
The only way I knew it had crashed was by running dfhack through gdb to determine if it crashed or failed in some other way.

stderr.log
Code: [Select]
Command: [stonesense]
Adding command to history
Saving history
Running command
Invoking: stonesense

stdout.log
Code: [Select]
New window size: 1920x1061
Font size: 8x12
Resizing grid to 240x88
Resizing font to 8x12

Please note, these keywords are case sensitive for now.

--Interface--

Sets the width and height of the application in pixels.
[WIDTH:800]
[HEIGHT:600]

To launch the application in windowed mode, set this to YES.
Setting it to NO makes the program attempt to launch fullscreen mode,
using WIDTH and HEIGHT for resolution. Try and use resolutions compatible
with your drivers, or the program will still load in window mode.
[WINDOWED:YES]

These two options set how large the cube loaded from Dwarf Fortress is.
Each entry expects the number of tiles to load.
[SEGMENTSIZE_XY:70]
[SEGMENTSIZE_Z:4]

Change this to off to skip the intro.
[INTRO:OFF]

Changes the interface font size.
[FONTSIZE:10]

Changes the fontfile to use.
[FONT:DejaVuSans.ttf]

Lifts the segment up to the top off the screen, equivalent to a given
number of z levels.
Use this with a large segment size to get blocks covering the entire screen.
[LIFTSEGMENT:12]

Follow DF window is on when Stonesense launches. (Toggle with 'f')
[FOLLOW_DF_SCREEN:YES]

Follow the center of the DF window, rather than scale to the edges.
[TRACK_CENTER:YES]

Sets an initial x/y/z offset for follow mode
[FOLLOW_OFFSET_X:-15]
[FOLLOW_OFFSET_Y:0]
[FOLLOW_OFFSET_Z:0]

Shows building graphics for zones. (Toggle with 'i')
[SHOW_ZONES:NO]

Shows building graphics for stockpiles. (Toggle with 'u')
[SHOW_STOCKPILES:NO]

Sets weather screenshots should have transparent backgrounds
[TRANSPARENT_SCREENSHOTS:NO]

Fog color, and alpha at the bottom z-level.
Setting the alpha to 0, or SHOW_FOG to NO disables fog, for a slight performance increase.
Color and alpha ranges are 0 (min) to 255 (max)
[SHOW_FOG:YES]
[FOG_RED:128]
[FOG_GREEN:158]
[FOG_BLUE:177]
[FOG_ALPHA:30]

Background color. setting this the same as the fog color produces a nice effect.
[BACK_RED:128]
[BACK_GREEN:158]
[BACK_BLUE:177]

Sets weather Stonesense should use a day/night effect
[NIGHT:NO]

This value, in milliseconds, is how long Stonesense waits between
reloading the map. If zero, the autoreload will be disabled until
set with Numpad+. Note that this will only work if a DF map is
ready when Stonesense loads.
[AUTO_RELOAD_TIME:50]

Amount to change the auto reload time with each press of Numpad+/-
[AUTO_RELOAD_STEP:50]

Amount of time, in milliseconds, before the animation swaps to the next frame.
Now independant of map refresh.
[ANIMATION_RATE:196]

--Debug Mode--

Sets Stonesense in debug mode. Adds additional information to displays.
[DEBUGMODE:NO]

Set's the debug cursor to follow the cursor from DF when it is there.
[FOLLOW_DF_CURSOR:YES]

Shows creatures names floating above their sprites. (Toggle with 'n')
[SHOW_CREATURE_NAMES:YES]

Options to control how names are displayed (if SHOW_CREATURE_NAMES is set)
[NAMES_USE_NICKNAME:YES]
[NAMES_USE_SPECIES:YES]

Enables or disables the entire on-screen-display overlay (Toggle with F2)
[SHOW_OSD:YES]

Shows all creatures, for debugging. Living, dead, kidnapped, caged, EVERY single one.
[ALLCREATURES:NO]

Adds more logging information to what is written to stonesense.log. May be useful
if trying having issues with sprite configuration tweaking.
[VERBOSE_LOGGING:NO]

--Troubleshooting--

Stonesense will try to merge all loaded sprites into a single texture, for performance reasons.
if your videocard has low memory, you may want to disable this.
[CACHE_IMAGES:NO]

This set's the preferred size of the internal image cache. If your videocard does not support it,
a smaller size is used.
[IMAGE_CACHE_SIZE:4096]

If this is set to YES, Stonesense will save a copy of the image cache each time something is added to it.
Dot NOT turn this on unless something is going very wonky. this will slow loading times considerably,
and possibly quickly fill up yout hard-drive.
[LOG_IMAGECACHE:NO]

Set the preferred renderer. Valid values are SOFTWARE, OPENGL, DIRECTX, and ANY. SOFTWARE has the highest
compatibility, but is very slow.
[RENDERER:ANY]

--Colors--

Stonesense can use the colors from DF for various purposes. these are set here the same way as in DF

[BLACK_R:0]
[BLACK_G:0]
[BLACK_B:0]
[BLUE_R:13]
[BLUE_G:103]
[BLUE_B:196]
[GREEN_R:68]
[GREEN_G:158]
[GREEN_B:53]
[CYAN_R:86]
[CYAN_G:163]
[CYAN_B:205]
[RED_R:151]
[RED_G:26]
[RED_B:26]
[MAGENTA_R:255]
[MAGENTA_G:110]
[MAGENTA_B:187]
[BROWN_R:120]
[BROWN_G:94]
[BROWN_B:47]
[LGRAY_R:185]
[LGRAY_G:192]
[LGRAY_B:162]
[DGRAY_R:88]
[DGRAY_G:83]
[DGRAY_B:86]
[LBLUE_R:145]
[LBLUE_G:202]
[LBLUE_B:255]
[LGREEN_R:131]
[LGREEN_G:212]
[LGREEN_B:82]
[LCYAN_R:176]
[LCYAN_G:223]
[LCYAN_B:215]
[LRED_R:255]
[LRED_G:34]
[LRED_B:34]
[LMAGENTA_R:255]
[LMAGENTA_G:167]
[LMAGENTA_B:246]
[YELLOW_R:255]
[YELLOW_G:218]
[YELLOW_B:90]
[WHITE_R:255]
[WHITE_G:255]
[WHITE_B:255]


Source: http://df.magmawiki.com/index.php/Color_scheme#ixzz0nnC90qXc

No stonesense.log was created.

Also did a quick forum search to see if anyone else has had similar issues, only thing I could find (apart form your post in the DFHack thread ages ago) was this post which may or may not be related to your issue (something to do with a crash caused by system graphics libraries being incompatible). 
No that is just a missing library problem I already know about that.
It was my first guess but that was not it.

If none of that is helpful, I'd suggest going and squatting in the DFHack irc channel and asking for help from someone who has stonesense running on linux (since I'm on windows, and I don't know the potential issues intimately enough to provide detailed advice). 

Also, if you DO figure it out, be sure to post the solution here for future reference :)
If I go on irc it won't be until late today or some time tomorrow since I am cooking for a family dinner right now.
If I figure it out I will let you know what I had to do to make it work.
« Last Edit: December 24, 2012, 02:44:27 pm by arclance »
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #529 on: December 24, 2012, 04:45:48 pm »

Also, if you DO figure it out, be sure to post the solution here for future reference :)
If I go on irc it won't be until late today or some time tomorrow since I am cooking for a family dinner right now.
If I figure it out I will let you know what I had to do to make it work.
Building with allegro 5.0.8 works on my 32bit Debian Testing (with allegro from Unstable) VM.
Debian has no gcc-4.5 so I used gcc-4.7 and deleted the conflicting library included in Dwarf Fortress.
It starts on my 64bit Host (mostly Debian Unstable) if I add the deplibs folder manually using the 32bit allegro libs from the build machine but I just get a window filled with a light blue color.

With VERBOSE_LOGGING on this is where it stops working.
Code: [Select]
[DFHack]# stonesense
[New Thread 0xd52ffb70 (LWP 4790)]
[New Thread 0xd4afeb70 (LWP 4791)]
Stonesense launched
Using allegro version 5.0.8 r1
New image: stonesense/objects.png
New image: stonesense/creatures.png
New image: stonesense/ramps.png
New image: stonesense/SSStatusIcons.png
New image: stonesense/SSProfIcons.png
New image: stonesense/SSJobIcons.png
New image: stonesense/gibs.png
New image: stonesense/engravings_floor.png
New image: stonesense/engravings_left.png
New image: stonesense/engravings_right.png
New image: stonesense/Sir_Henry's_32x32.png
[DFHack]# [New Thread 0xd42fdb70 (LWP 4802)]
flushing images...
New image: stonesense/objects.png
New image: stonesense/creatures.png
New image: stonesense/ramps.png
New image: stonesense/SSStatusIcons.png
New image: stonesense/SSProfIcons.png
New image: stonesense/SSJobIcons.png
New image: stonesense/gibs.png
New image: stonesense/engravings_floor.png
New image: stonesense/engravings_left.png
New image: stonesense/engravings_right.png
New image: stonesense/Sir_Henry's_32x32.png
Reading index at stonesense/index.txt...
Reading index stonesense/grasses/index.txt...
Reading index at stonesense/grasses/index.txt...
Reading xml stonesense/grasses/grasses.xml...
New image: stonesense/grasses/grasses.png
New image: stonesense/grasses/grasses_gray.png
Reading index stonesense/terrain/index.txt...
Reading index at stonesense/terrain/index.txt...
Reading xml stonesense/terrain/NuGlass.xml...
New image: stonesense/terrain/Nuglass.png
Reading xml stonesense/terrain/NuGlass_Walls.xml...
New image: stonesense/terrain/Nuglass_walls.png
Reading xml stonesense/terrain/block_walls.xml...
New image: stonesense/terrain/block_walls.png
New image: stonesense/terrain/block_floors.png
Reading xml stonesense/terrain/grass.xml...
New image: stonesense/terrain/grass.png
Reading xml stonesense/terrain/MaterialFloors.xml...
New image: stonesense/terrain/floors.png
Reading xml stonesense/terrain/MaterialWalls.xml...
New image: stonesense/terrain/blocks.png
New image: stonesense/terrain/ramps.png
Reading xml stonesense/terrain/Walls.xml...
Reading xml stonesense/terrain/Floors.xml...
Reading xml stonesense/terrain/DefaultWalls.xml...
Reading xml stonesense/terrain/DefaultFloors.xml...
Reading index stonesense/creatures/index.txt...
Reading index at stonesense/creatures/index.txt...
Reading index stonesense/creatures/large_128/index.txt...
Reading index at stonesense/creatures/large_128/index.txt...
Reading xml stonesense/creatures/large_128/jabber.xml...
New image: stonesense/creatures/large_128/jabber.png
Reading xml stonesense/creatures/large_128/crundle.xml...
New image: stonesense/creatures/large_128/crundle.png
Reading xml stonesense/creatures/large_128/wild.xml...
New image: stonesense/creatures/large_128/wild.png
Reading xml stonesense/creatures/large_128/domestic.xml...
New image: stonesense/creatures/large_128/domestic.png
Reading xml stonesense/creatures/large_128/dwarf.xml...
New image: stonesense/creatures/large_128/dwarfm.png
New image: stonesense/creatures/large_128/dwarff.png
Reading xml stonesense/creatures/caravan_animals.xml...
New image: stonesense/creatures/caravan_animals.png
Reading xml stonesense/creatures/beefmo_large_ocean.xml...
New image: stonesense/creatures/beefmo_large_ocean.png
Reading xml stonesense/creatures/beefmo_subterranean.xml...
New image: stonesense/creatures/beefmo_subterranean.png
Reading xml stonesense/creatures/humans.xml...
New image: stonesense/creatures/humans.png
Reading xml stonesense/creatures/elfs.xml...
New image: stonesense/creatures/elfs.png
New image: stonesense/creatures/elves.png
New image: stonesense/creatures/elves_hair.png
New image: stonesense/creatures/elves_skin.png
Reading xml stonesense/creatures/wild_animals.xml...
New image: stonesense/creatures/wild_animals.png
Reading xml stonesense/creatures/gobbos.xml...
New image: stonesense/creatures/gobbos.png
Reading xml stonesense/creatures/beefmo_domestics.xml...
New image: stonesense/creatures/beefmo_dog.png
New image: stonesense/creatures/beefmo_cat.png
New image: stonesense/creatures/beefmo_domestics.png
Reading xml stonesense/creatures/Wildlife.xml...
Reading xml stonesense/creatures/color_Dwarves.xml...
New image: stonesense/creatures/color_dwarves.png
Reading index stonesense/buildings/index.txt...
Reading index at stonesense/buildings/index.txt...
Reading xml stonesense/buildings/Press.xml...
New image: stonesense/buildings/workshop.png
Reading xml stonesense/buildings/caravan_1.xml...
New image: stonesense/buildings/caravan_1.png
Reading xml stonesense/buildings/Soapmakers.xml...
New image: stonesense/buildings/include/../workshop.png
Reading xml stonesense/buildings/Road.xml...
New image: stonesense/buildings/bgibs.png
Reading xml stonesense/buildings/Restraint.xml...
Reading xml stonesense/buildings/Statue.xml...
Reading xml stonesense/buildings/Table.xml...
Reading xml stonesense/buildings/Cabinet.xml...
Reading xml stonesense/buildings/Chair.xml...
Reading xml stonesense/buildings/Chest.xml...
Reading xml stonesense/buildings/Bed.xml...
Reading xml stonesense/buildings/WeaponRack.xml...
Reading xml stonesense/buildings/ArmorStand.xml...
Reading xml stonesense/buildings/Quern.xml...
Reading xml stonesense/buildings/Millstone.xml...
Reading xml stonesense/buildings/Cage.xml...
Reading xml stonesense/buildings/Coffin.xml...
Reading xml stonesense/buildings/Hatch.xml...
New image: stonesense/buildings/DoorsAndFloodgates.png
Reading xml stonesense/buildings/Target.xml...
Reading xml stonesense/buildings/Wagon.xml...
Reading xml stonesense/buildings/FloorGrate.xml...
Reading xml stonesense/buildings/FloorBars.xml...
Reading xml stonesense/buildings/Well.xml...
Reading xml stonesense/buildings/Stockpile.xml...
Reading xml stonesense/buildings/Zone.xml...
Reading xml stonesense/buildings/AnimalTrap.xml...
Reading xml stonesense/buildings/WeaponTrap.xml...
Reading xml stonesense/buildings/StonefallTrap.xml...
Reading xml stonesense/buildings/CageTrap.xml...
Reading xml stonesense/buildings/PressurePlate.xml...
Reading xml stonesense/buildings/Spikes.xml...
Reading xml stonesense/buildings/Door.xml...
Reading xml stonesense/buildings/VerticalBars.xml...
New image: stonesense/buildings/VerticalBars.png
Reading xml stonesense/buildings/WallGrate.xml...
Reading xml stonesense/buildings/Floodgate.xml...
Reading xml stonesense/buildings/WindowGlass.xml...
New image: stonesense/buildings/Windows.png
Reading xml stonesense/buildings/WindowGem.xml...
Reading xml stonesense/buildings/Kitchen.xml...
Reading xml stonesense/buildings/Carpenter.xml...
Reading xml stonesense/buildings/Smelter.xml...
Reading xml stonesense/buildings/MagmaSmelter.xml...
Reading xml stonesense/buildings/WoodFurnace.xml...
Reading xml stonesense/buildings/Forge.xml...
Reading xml stonesense/buildings/MagmaForge.xml...
Reading xml stonesense/buildings/Masons.xml...
Reading xml stonesense/buildings/Craftsdwarfs.xml...
Reading xml stonesense/buildings/Mechanics.xml...
Reading xml stonesense/buildings/Butchers.xml...
Reading xml stonesense/buildings/Loom.xml...
Reading xml stonesense/buildings/Clothiers.xml...
Reading xml stonesense/buildings/Tannery.xml...
Reading xml stonesense/buildings/Still.xml...
Reading xml stonesense/buildings/Leatherworks.xml...
Reading xml stonesense/buildings/MagmaGlassFurnace.xml...
Reading xml stonesense/buildings/GlassFurnace.xml...
Reading xml stonesense/buildings/Kiln.xml...
Reading xml stonesense/buildings/MagmaKiln.xml...
Reading xml stonesense/buildings/Ashery.xml...
Reading xml stonesense/buildings/FarmersWorkshop.xml...
Reading xml stonesense/buildings/Jewelers.xml...
Reading xml stonesense/buildings/Fishery.xml...
Reading xml stonesense/buildings/Bowyers.xml...
Reading xml stonesense/buildings/Dyers.xml...
Reading xml stonesense/buildings/TradeDepot.xml...
Reading xml stonesense/buildings/SiegeWorkshop.xml...
Reading xml stonesense/buildings/Kennels.xml...
Reading xml stonesense/buildings/Shop.xml...
stonesense/buildings/Shop.xml: <building> Is generic - game_subtype missing.: building (Line 5)
Reading xml stonesense/buildings/Pump.xml...
New image: stonesense/buildings/mechanics.png
Reading xml stonesense/buildings/Support.xml...
Reading xml stonesense/buildings/Blueprint.xml...
stonesense/buildings/Blueprint.xml: <building> Is generic - game_subtype missing.: building (Line 5)
Reading xml stonesense/buildings/Lever.xml...
Reading xml stonesense/buildings/Farm.xml...
Reading xml stonesense/buildings/HorizontalAxle.xml...
Reading xml stonesense/buildings/Gear.xml...
Reading xml stonesense/buildings/VerticalAxle.xml...
Reading xml stonesense/buildings/Waterwheel.xml...
Reading xml stonesense/buildings/Windmill.xml...
Reading xml stonesense/buildings/Bridge.xml...
Reading index stonesense/vegetation/index.txt...
Reading index at stonesense/vegetation/index.txt...
Reading xml stonesense/vegetation/DT_trees/dt_trees.xml...
New image: stonesense/vegetation/DT_trees/trees.png
Reading xml stonesense/vegetation/shrubs.xml...
New image: stonesense/vegetation/shrubs.png
Reading index stonesense/colors/index.txt...
Reading index at stonesense/colors/index.txt...
Reading xml stonesense/colors/Colors_Wood.xml...
Reading xml stonesense/colors/Colors_Grass.xml...
Reading xml stonesense/colors/Colors_Stone_Layer.xml...
Reading xml stonesense/colors/Colors_Stone_Mineral.xml...
Reading xml stonesense/colors/Colors_Stone_Gem.xml...
Reading xml stonesense/colors/Colors_Metal.xml...
Reading xml stonesense/colors/Colors_Stone_Soil.xml...
Reading xml stonesense/Colors.xml...
Reading index stonesense/Fluids/index.txt...
Reading index at stonesense/Fluids/index.txt...
Reading xml stonesense/Fluids/Fluids.xml...
Reading index stonesense/items/index.txt...
Reading index at stonesense/items/index.txt...
Reading xml stonesense/items/greiger items/Grei_items.xml...
New image: stonesense/items/greiger items/Grei_items.png
Reading xml stonesense/items/items.xml...
New image: stonesense/items/items.png
[DFHack]# [New Thread 0xd3afcb70 (LWP 4818)]
Edit: [RENDERER:SOFTWARE] works but is glacially slow.

I get this crash if I start stonesense stop it and start it again in the same dfhack instance using [RENDERER:OPENGL].
Code: [Select]
stonesense
[New Thread 0xd3bfcb70 (LWP 32175)]
Stonesense launched
Using allegro version 5.0.8 r1
New image: stonesense/objects.png
New image: stonesense/creatures.png
New image: stonesense/ramps.png
New image: stonesense/SSStatusIcons.png
New image: stonesense/SSProfIcons.png
New image: stonesense/SSJobIcons.png
New image: stonesense/gibs.png
New image: stonesense/engravings_floor.png
New image: stonesense/engravings_left.png
New image: stonesense/engravings_right.png
New image: stonesense/Sir_Henry's_32x32.png
flushing images...
New image: stonesense/objects.png
New image: stonesense/creatures.png
New image: stonesense/ramps.png
New image: stonesense/SSStatusIcons.png
New image: stonesense/SSProfIcons.png
New image: stonesense/SSJobIcons.png
New image: stonesense/gibs.png
New image: stonesense/engravings_floor.png
New image: stonesense/engravings_left.png
New image: stonesense/engravings_right.png
New image: stonesense/Sir_Henry's_32x32.png
Reading index at stonesense/index.txt...
Reading index stonesense/grasses/index.txt...
Reading index at stonesense/grasses/index.txt...
Reading xml stonesense/grasses/grasses.xml...
New image: stonesense/grasses/grasses.png
New image: stonesense/grasses/grasses_gray.png
Reading index stonesense/terrain/index.txt...
Reading index at stonesense/terrain/index.txt...
Reading xml stonesense/terrain/NuGlass.xml...
New image: stonesense/terrain/Nuglass.png
Reading xml stonesense/terrain/NuGlass_Walls.xml...
New image: stonesense/terrain/Nuglass_walls.png
Reading xml stonesense/terrain/block_walls.xml...
New image: stonesense/terrain/block_walls.png
New image: stonesense/terrain/block_floors.png
Reading xml stonesense/terrain/grass.xml...
New image: stonesense/terrain/grass.png
Reading xml stonesense/terrain/MaterialFloors.xml...
New image: stonesense/terrain/floors.png
Reading xml stonesense/terrain/MaterialWalls.xml...
New image: stonesense/terrain/blocks.png
New image: stonesense/terrain/ramps.png
Reading xml stonesense/terrain/Walls.xml...
Reading xml stonesense/terrain/Floors.xml...
Reading xml stonesense/terrain/DefaultWalls.xml...
Reading xml stonesense/terrain/DefaultFloors.xml...
Reading index stonesense/creatures/index.txt...
Reading index at stonesense/creatures/index.txt...
Reading index stonesense/creatures/large_128/index.txt...
Reading index at stonesense/creatures/large_128/index.txt...
Reading xml stonesense/creatures/large_128/jabber.xml...
New image: stonesense/creatures/large_128/jabber.png
Reading xml stonesense/creatures/large_128/crundle.xml...
New image: stonesense/creatures/large_128/crundle.png
Reading xml stonesense/creatures/large_128/wild.xml...
New image: stonesense/creatures/large_128/wild.png
Reading xml stonesense/creatures/large_128/domestic.xml...
New image: stonesense/creatures/large_128/domestic.png
Reading xml stonesense/creatures/large_128/dwarf.xml...
New image: stonesense/creatures/large_128/dwarfm.png
New image: stonesense/creatures/large_128/dwarff.png
Reading xml stonesense/creatures/caravan_animals.xml...
New image: stonesense/creatures/caravan_animals.png
Reading xml stonesense/creatures/beefmo_large_ocean.xml...
New image: stonesense/creatures/beefmo_large_ocean.png
Reading xml stonesense/creatures/beefmo_subterranean.xml...
New image: stonesense/creatures/beefmo_subterranean.png
Reading xml stonesense/creatures/humans.xml...
New image: stonesense/creatures/humans.png
Reading xml stonesense/creatures/elfs.xml...
New image: stonesense/creatures/elfs.png
New image: stonesense/creatures/elves.png
New image: stonesense/creatures/elves_hair.png
New image: stonesense/creatures/elves_skin.png
Reading xml stonesense/creatures/wild_animals.xml...
New image: stonesense/creatures/wild_animals.png
Reading xml stonesense/creatures/gobbos.xml...
New image: stonesense/creatures/gobbos.png
Reading xml stonesense/creatures/beefmo_domestics.xml...
New image: stonesense/creatures/beefmo_dog.png
New image: stonesense/creatures/beefmo_cat.png
New image: stonesense/creatures/beefmo_domestics.png
Reading xml stonesense/creatures/Wildlife.xml...
Reading xml stonesense/creatures/color_Dwarves.xml...
New image: stonesense/creatures/color_dwarves.png
Reading index stonesense/buildings/index.txt...
Reading index at stonesense/buildings/index.txt...
Reading xml stonesense/buildings/Press.xml...
New image: stonesense/buildings/workshop.png
Reading xml stonesense/buildings/caravan_1.xml...
New image: stonesense/buildings/caravan_1.png
Reading xml stonesense/buildings/Soapmakers.xml...
New image: stonesense/buildings/include/../workshop.png
Reading xml stonesense/buildings/Road.xml...
New image: stonesense/buildings/bgibs.png
Reading xml stonesense/buildings/Restraint.xml...
Reading xml stonesense/buildings/Statue.xml...
Reading xml stonesense/buildings/Table.xml...
Reading xml stonesense/buildings/Cabinet.xml...
Reading xml stonesense/buildings/Chair.xml...
Reading xml stonesense/buildings/Chest.xml...
Reading xml stonesense/buildings/Bed.xml...
Reading xml stonesense/buildings/WeaponRack.xml...
Reading xml stonesense/buildings/ArmorStand.xml...
Reading xml stonesense/buildings/Quern.xml...
Reading xml stonesense/buildings/Millstone.xml...
Reading xml stonesense/buildings/Cage.xml...
Reading xml stonesense/buildings/Coffin.xml...
Reading xml stonesense/buildings/Hatch.xml...
New image: stonesense/buildings/DoorsAndFloodgates.png
Reading xml stonesense/buildings/Target.xml...
Reading xml stonesense/buildings/Wagon.xml...
Reading xml stonesense/buildings/FloorGrate.xml...
Reading xml stonesense/buildings/FloorBars.xml...
Reading xml stonesense/buildings/Well.xml...
Reading xml stonesense/buildings/Stockpile.xml...
Reading xml stonesense/buildings/Zone.xml...
Reading xml stonesense/buildings/AnimalTrap.xml...
Reading xml stonesense/buildings/WeaponTrap.xml...
Reading xml stonesense/buildings/StonefallTrap.xml...
Reading xml stonesense/buildings/CageTrap.xml...
Reading xml stonesense/buildings/PressurePlate.xml...
Reading xml stonesense/buildings/Spikes.xml...
Reading xml stonesense/buildings/Door.xml...
Reading xml stonesense/buildings/VerticalBars.xml...
New image: stonesense/buildings/VerticalBars.png
Reading xml stonesense/buildings/WallGrate.xml...
Reading xml stonesense/buildings/Floodgate.xml...
Reading xml stonesense/buildings/WindowGlass.xml...
New image: stonesense/buildings/Windows.png
Reading xml stonesense/buildings/WindowGem.xml...
Reading xml stonesense/buildings/Kitchen.xml...
Reading xml stonesense/buildings/Carpenter.xml...
Reading xml stonesense/buildings/Smelter.xml...
Reading xml stonesense/buildings/MagmaSmelter.xml...
Reading xml stonesense/buildings/WoodFurnace.xml...
Reading xml stonesense/buildings/Forge.xml...
Reading xml stonesense/buildings/MagmaForge.xml...
Reading xml stonesense/buildings/Masons.xml...
Reading xml stonesense/buildings/Craftsdwarfs.xml...
Reading xml stonesense/buildings/Mechanics.xml...
Reading xml stonesense/buildings/Butchers.xml...
Reading xml stonesense/buildings/Loom.xml...
Reading xml stonesense/buildings/Clothiers.xml...
Reading xml stonesense/buildings/Tannery.xml...
Reading xml stonesense/buildings/Still.xml...
Reading xml stonesense/buildings/Leatherworks.xml...
Reading xml stonesense/buildings/MagmaGlassFurnace.xml...
Reading xml stonesense/buildings/GlassFurnace.xml...
Reading xml stonesense/buildings/Kiln.xml...
Reading xml stonesense/buildings/MagmaKiln.xml...
Reading xml stonesense/buildings/Ashery.xml...
Reading xml stonesense/buildings/FarmersWorkshop.xml...
Reading xml stonesense/buildings/Jewelers.xml...
Reading xml stonesense/buildings/Fishery.xml...
Reading xml stonesense/buildings/Bowyers.xml...
Reading xml stonesense/buildings/Dyers.xml...
Reading xml stonesense/buildings/TradeDepot.xml...
Reading xml stonesense/buildings/SiegeWorkshop.xml...
Reading xml stonesense/buildings/Kennels.xml...
Reading xml stonesense/buildings/Shop.xml...
stonesense/buildings/Shop.xml: <building> Is generic - game_subtype missing.: building (Line 5)
Reading xml stonesense/buildings/Pump.xml...
New image: stonesense/buildings/mechanics.png
Reading xml stonesense/buildings/Support.xml...
Reading xml stonesense/buildings/Blueprint.xml...
stonesense/buildings/Blueprint.xml: <building> Is generic - game_subtype missing.: building (Line 5)
Reading xml stonesense/buildings/Lever.xml...
Reading xml stonesense/buildings/Farm.xml...
Reading xml stonesense/buildings/HorizontalAxle.xml...
Reading xml stonesense/buildings/Gear.xml...
Reading xml stonesense/buildings/VerticalAxle.xml...
Reading xml stonesense/buildings/Waterwheel.xml...
Reading xml stonesense/buildings/Windmill.xml...
Reading xml stonesense/buildings/Bridge.xml...
Reading index stonesense/vegetation/index.txt...
Reading index at stonesense/vegetation/index.txt...
Reading xml stonesense/vegetation/DT_trees/dt_trees.xml...
New image: stonesense/vegetation/DT_trees/trees.png
Reading xml stonesense/vegetation/shrubs.xml...
New image: stonesense/vegetation/shrubs.png
Reading index stonesense/colors/index.txt...
Reading index at stonesense/colors/index.txt...
Reading xml stonesense/colors/Colors_Wood.xml...
Reading xml stonesense/colors/Colors_Grass.xml...
Reading xml stonesense/colors/Colors_Stone_Layer.xml...
Reading xml stonesense/colors/Colors_Stone_Mineral.xml...
Reading xml stonesense/colors/Colors_Stone_Gem.xml...
Reading xml stonesense/colors/Colors_Metal.xml...
Reading xml stonesense/colors/Colors_Stone_Soil.xml...
Reading xml stonesense/Colors.xml...
Reading index stonesense/Fluids/index.txt...
Reading index at stonesense/Fluids/index.txt...
Reading xml stonesense/Fluids/Fluids.xml...
Reading index stonesense/items/index.txt...
Reading index at stonesense/items/index.txt...
Reading xml stonesense/items/greiger items/Grei_items.xml...
New image: stonesense/items/greiger items/Grei_items.png
Reading xml stonesense/items/items.xml...
New image: stonesense/items/items.png
[DFHack]# [New Thread 0xd26ffb70 (LWP 32190)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xd26ffb70 (LWP 32190)]
0xf486fbe0 in Block::Block(WorldSegment*) ()
   from /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_linux_34_11_dfhack_stonesense_allegrotest_libs3/hack/plugins/stonesense.plug.so
(gdb) bt full
#0  0xf486fbe0 in Block::Block(WorldSegment*) ()
   from /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_linux_34_11_dfhack_stonesense_allegrotest_libs3/hack/plugins/stonesense.plug.so
No symbol table info available.
#1  0xf48aaca9 in MergeBuildingsToSegment(std::vector<DFHack::Buildings::t_building, std::allocator<DFHack::Buildings::t_building> >*, WorldSegment*) ()
   from /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_linux_34_11_dfhack_stonesense_allegrotest_libs3/hack/plugins/stonesense.plug.so
No symbol table info available.
#2  0xf48b942e in ReadMapSegment(int, int, int, int, int, int) ()
   from /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_linux_34_11_dfhack_stonesense_allegrotest_libs3/hack/plugins/stonesense.plug.so
No symbol table info available.
#3  0xf48b9649 in read_segment(void*) ()
   from /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_linux_34_11_dfhack_stonesense_allegrotest_libs3/hack/plugins/stonesense.plug.so
No symbol table info available.
#4  0xf48b9a9e in threadedSegment(ALLEGRO_THREAD*, void*) ()
   from /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_linux_34_11_dfhack_stonesense_allegrotest_libs3/hack/plugins/stonesense.plug.so
No symbol table info available.
#5  0xf4273d75 in ?? () from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
#6  0xf42b0d34 in ?? () from ./stonesense/deplibs/liballegro.so.5.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#7  0xf7325c39 in start_thread (arg=0xd26ffb70) at pthread_create.c:304
        __res = <optimized out>
        __ignore1 = <optimized out>
        __ignore2 = <optimized out>
        pd = 0xd26ffb70
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-147628044, 0, 4001536,
                -764414936, -1226834900, 226586214}, mask_was_saved = 0}},
          priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0,
              cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#8  0xf74109ce in clone () from /lib32/libc.so.6
No symbol table info available.
It opens a window filled with white instead of light blue the second time.

I can build with gcc-4.5 on a xubuntu 11.10 VM but I would have to build allegro 5.0.8 there since it only has a allegro 4.2 package.
« Last Edit: December 24, 2012, 05:14:48 pm by arclance »
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #530 on: December 24, 2012, 10:04:07 pm »

I can't run debuggers on it in my 32bit VM though because they fail with this error.
Code: [Select]
setarch: symbol lookup error: ./hack/libdfhack.so: undefined symbol: _ZTV8renderer
This looks like a problem with dfhack though.
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

Caldfir

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #531 on: December 25, 2012, 03:13:42 am »

I get this crash if I start stonesense stop it and start it again in the same dfhack instance using [RENDERER:OPENGL].

That's unrelated to the main issue.  The map reading has been largely rewritten very recently, and shouldn't be crashing on a second startup of stonesense anymore once the next version of DFHack becomes available (this has been an issue for a while now not just for linux users but for everybody).  Nothing to do about that but wait for the fix to get rolled out, but I can pretty much guarantee that when it does, there will be no more problems on that front. 

The real issue is that it isn't drawing anything except for the background.  If possible, open up init.txt and set DEBUGMODE:YES inside your stonesense folder, then try moving around with the mouse keys to see if the (probably hidden) debug cursor is able to give you information about the (hidden) tiles you're scrolling across.  If that works, then my guess would be that stonesense is failing to load .png files, which if I'm remembering correctly is handled by another lib.  You can try converting one of the .png files to a .bmp (ideally one for something you're likely to see, like floors.png), and updating the references to it in the xml specification (stonesense startup errors will tell you where to look for these references if the original .png is removed), and if that starts working then it would confirm that the .png files are indeed the source of the problem.  Since the jpeg library has been causing headaches, it stands to reason the png library might be as well, which might explain other people's issues running stonesense under linux as well. 

Those are just my hunches on what I've read though, so failing that, I guess waiting to haunt the DFHack irc is the way to go. 

And if all that fails then... yeesh I dunno, I guess allegro hates your system?  I'll think about this. 
Logged
where is up?

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #532 on: December 25, 2012, 09:49:01 am »

I get this crash if I start stonesense stop it and start it again in the same dfhack instance using [RENDERER:OPENGL].

That's unrelated to the main issue.  The map reading has been largely rewritten very recently, and shouldn't be crashing on a second startup of stonesense anymore once the next version of DFHack becomes available (this has been an issue for a while now not just for linux users but for everybody).  Nothing to do about that but wait for the fix to get rolled out, but I can pretty much guarantee that when it does, there will be no more problems on that front. 
I built dfhack and stonesense form source so I have to those fixes in there unless they have not been uploaded to github yet.
Never mind I found the newer one I will see if I can build that one and see if it fixes anything.

The real issue is that it isn't drawing anything except for the background.  If possible, open up init.txt and set DEBUGMODE:YES inside your stonesense folder, then try moving around with the mouse keys to see if the (probably hidden) debug cursor is able to give you information about the (hidden) tiles you're scrolling across.
That is how I have been running stonesense I just get the blue screen it does not respond to any input from mouse or keyboard.

If that works, then my guess would be that stonesense is failing to load .png files, which if I'm remembering correctly is handled by another lib.  You can try converting one of the .png files to a .bmp (ideally one for something you're likely to see, like floors.png), and updating the references to it in the xml specification (stonesense startup errors will tell you where to look for these references if the original .png is removed), and if that starts working then it would confirm that the .png files are indeed the source of the problem.  Since the jpeg library has been causing headaches, it stands to reason the png library might be as well, which might explain other people's issues running stonesense under linux as well.
I doubt it, everything works with [RENDERER:SOFTWARE] it just runs at about 1/15 fps so it is nearly unusable.
It also works with [RENDERER:OPENGL] in my 32bit VM but not in my 64bit install.

Those are just my hunches on what I've read though, so failing that, I guess waiting to haunt the DFHack irc is the way to go. 

And if all that fails then... yeesh I dunno, I guess allegro hates your system?  I'll think about this.
I tend to stay out of IRC and chat rooms in general since there tend to be too many conversations going on to start another one but I might go on later today.
« Last Edit: December 25, 2012, 10:10:50 pm by arclance »
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #533 on: December 25, 2012, 10:52:28 pm »

I get this crash if I start stonesense stop it and start it again in the same dfhack instance using [RENDERER:OPENGL].

That's unrelated to the main issue.  The map reading has been largely rewritten very recently, and shouldn't be crashing on a second startup of stonesense anymore once the next version of DFHack becomes available (this has been an issue for a while now not just for linux users but for everybody).  Nothing to do about that but wait for the fix to get rolled out, but I can pretty much guarantee that when it does, there will be no more problems on that front. 
I built dfhack and stonesense form source so I have to those fixes in there unless they have not been uploaded to github yet.
Never mind I found the newer one I will see if I can build that one and see if it fixes anything.
I built this branch of stonesense and it still crashes after starting stonesense a second time.
It have seen two different types of crashes so far.
Backtrace 1 | Backtrace 2
The second one can happen any time after you send the second "stonesense" command, the first one sometimes happens instead when interacting with the stonesense window.
I made a debug build of allegro before I got those backtraces so hopefully they should be useful.

There is clearly something wrong on the second run you can see varying degrees of image corruption the second time you launch stonesense.

This is the worst I have seen so far.

[RENDERER:OPENGL] still does not work on my 64bit system though.
« Last Edit: December 25, 2012, 11:02:15 pm by arclance »
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

Caldfir

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #534 on: December 26, 2012, 10:15:40 am »

@arclance

Are you sure  you flushed and cleanly built the branch you indicated and it was successful?  Your symbols seem to be referencing variables and files that have been removed in the version you linked.  Also I think Japa's branch (the one you linked) is partway through a manual merge or something just looking at the files here, and that really shouldn't compile.  I know my latest version is currently compiling and running nicely on windows (and as far as I am aware on linux as well).  If that's the case (that is, that you are not in fact compiling a version containing my changes), then I can verify that the cause of the first type of crashes is the one that should be fixed in the newest version (which I mentioned earlier).  If that isn't the case then I don't really know what I'm reading.  Would prefer not to speculate on the second kind until I know for sure if I'm right about the first kind. 

As to your 64bit machine, is it crashing in OPENGL mode after showing the blue screen or just presenting an empty blue screen?  And if you try to start stonesense without a map loaded does it show the stonesense startup screen?

Logged
where is up?

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #535 on: December 26, 2012, 10:55:13 am »

@arclance

Are you sure  you flushed and cleanly built the branch you indicated and it was successful?  Your symbols seem to be referencing variables and files that have been removed in the version you linked.  Also I think Japa's branch (the one you linked) is partway through a manual merge or something just looking at the files here, and that really shouldn't compile.  I know my latest version is currently compiling and running nicely on windows (and as far as I am aware on linux as well).  If that's the case (that is, that you are not in fact compiling a version containing my changes), then I can verify that the cause of the first type of crashes is the one that should be fixed in the newest version (which I mentioned earlier).  If that isn't the case then I don't really know what I'm reading.  Would prefer not to speculate on the second kind until I know for sure if I'm right about the first kind. 
I started over completely by pulling dfhack and then edited ".gitmodules" to point to "git://github.com/JapaMala/stonesense.git" instead of "git://github.com/peterix/stonesense.git" before I pulled in any of the submodules so I should have only gotten the code from "git://github.com/JapaMala/stonesense.git".
Japa pulled in your branch 8 days ago that was the last thing he did to it.

Backtrace 1 never happened to me with the older "git://github.com/peterix/stonesense.git" just the newer "git://github.com/JapaMala/stonesense.git".

Backtrace 2 sounds like a memory corruption problem but I don't know much more than how to take these backtraces.
It seems to indicate to me that stonesenes is not clearing the memory it used the first time it was closed and is then writing to the same area again which is causing the data to become corrupted.

As to your 64bit machine, is it crashing in OPENGL mode after showing the blue screen or just presenting an empty blue screen?  And if you try to start stonesense without a map loaded does it show the stonesense startup screen?
It is not crashing it in OPENGL mode just presenting a empty blue screen.

I just get a black window when running stonesense without a map loaded.
I did get this crash when closing dwarf fortress after doing that though.
Code: [Select]
./dfhack -g
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_hack_2012-12-25_japa_stonesense_debug/libs/Dwarf_Fortress...(no debugging symbols found)...done.
(gdb) run
Starting program: /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_hack_2012-12-25_japa_stonesense_debug/libs/Dwarf_Fortress
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0xf60d3b70 (LWP 27050)]
[New Thread 0xf58d2b70 (LWP 27051)]
Loading bindings from data/init/interface.txt
New window size: 640x300
Font size: 8x12
Resizing grid to 80x25
Resizing font to 8x12

Resetting textures
New window size: 1920x1080
Font size: 8x12
Resizing grid to 240x90
Resizing font to 8x12



[New Thread 0xf4134b70 (LWP 27180)]
[New Thread 0xf05ffb70 (LWP 27209)]
[New Thread 0xefdfeb70 (LWP 27210)]
DFHack is ready. Have a nice day!
Type in '?' or 'help' for general help, 'ls' to see all commands.
[New Thread 0xef5fdb70 (LWP 27211)]
[DFHack]# stonesense
[New Thread 0xeedfcb70 (LWP 27278)]
[New Thread 0xee5fbb70 (LWP 27279)]
Stonesense launched
Using allegro version 5.0.8 r1
New image: stonesense/objects.png
New image: stonesense/creatures.png
New image: stonesense/ramps.png
New image: stonesense/SSStatusIcons.png
New image: stonesense/SSProfIcons.png
New image: stonesense/SSJobIcons.png
New image: stonesense/gibs.png
New image: stonesense/engravings_floor.png
New image: stonesense/engravings_left.png
New image: stonesense/engravings_right.png
New image: stonesense/Sir_Henry's_32x32.png
[DFHack]# [New Thread 0xeddfab70 (LWP 27284)]
                                             [Thread 0xf58d2b70 (LWP 27051) exited]
flushing images...
Stonesense shutdown.
[DFHack]# [Thread 0xee5fbb70 (LWP 27279) exited]
                                                [Thread 0xeddfab70 (LWP 27284) exited]
      [Thread 0xeedfcb70 (LWP 27278) exited]
                                            [Thread 0xf4134b70 (LWP 27180) exited]


[Thread 0xf05ffb70 (LWP 27209) exited]
[Thread 0xf60d3b70 (LWP 27050) exited]

Program received signal SIGSEGV, Segmentation fault.
__pthread_mutex_lock (mutex=0xd2d2d2d2) at pthread_mutex_lock.c:50
50 pthread_mutex_lock.c: No such file or directory.
(gdb) bt full
#0  __pthread_mutex_lock (mutex=0xd2d2d2d2) at pthread_mutex_lock.c:50
        __PRETTY_FUNCTION__ = "__pthread_mutex_lock"
        type = <optimized out>
#1  0xf729dc86 in pthread_mutex_lock () from /lib32/libc.so.6
No symbol table info available.
#2  0xf68b310f in ?? () from /usr/lib32/libX11.so.6
No symbol table info available.
#3  0xf68c9c7f in XrmDestroyDatabase () from /usr/lib32/libX11.so.6
No symbol table info available.
#4  0xf68b4ace in _XFreeDisplayStructure () from /usr/lib32/libX11.so.6
No symbol table info available.
#5  0xf68a1321 in XCloseDisplay () from /usr/lib32/libX11.so.6
No symbol table info available.
#6  0xf7898c4e in ?? () from /usr/lib32/libSDL-1.2.so.0
No symbol table info available.
#7  0xf78a2c3a in ?? () from /usr/lib32/libSDL-1.2.so.0
No symbol table info available.
#8  0xf7890c20 in SDL_VideoQuit () from /usr/lib32/libSDL-1.2.so.0
No symbol table info available.
#9  0xf78685d3 in SDL_QuitSubSystem () from /usr/lib32/libSDL-1.2.so.0
No symbol table info available.
#10 0xf786866e in SDL_Quit () from /usr/lib32/libSDL-1.2.so.0
No symbol table info available.
#11 0xf7dd03a2 in SDL_Quit ()
    at /home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2---Type <return> to continue, or q <return> to quit---
012-12-24_japa_stonesense/library/Hooks-linux.cpp:64
        c = @0xf7fbb240: {p = 0x9d3dee8, vinfo = 0x9d3dfa8, screen_window =
    0x9c3a760, con = {
    <DFHack::color_ostream> = {<std::basic_ostream<char, std::char_traits<char> >> = {<No data fields>}, cur_color = DFHack::COLOR_RESET,
              static log_errors_to_stderr = true}, d = 0x9cfa558,
            wlock = 0x9a6eaa0, inited = false}, d = 0x9a6eac0,
          errorstate = true, vif = 0x9af7258, s_mods = {pMaterials = 0x0,
            pNotes = 0x0, pGraphic = 0x0},
          allModules = {<std::_Vector_base<DFHack::Module*, std::allocator<DFHack::Module*> >> = {
              _M_impl = {<std::allocator<DFHack::Module*>> = {<__gnu_cxx::new_allocator<DFHack::Module*>> = {<No data fields>}, <No data fields>},
                _M_start = 0x0, _M_finish = 0x0,
                _M_end_of_storage = 0x0}}, <No data fields>}, plug_mgr = 0x0,
          key_bindings = {_M_t = {
              _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<int const, std::vector<DFHack::Core::KeyBinding, std::allocator<DFHack::Core::KeyBinding> > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, std::vector<DFHack::Core::KeyBinding, std::allocator<DFHack::Core::KeyBinding> > > > >> = {<No data fields>}, <No data fields>},
                _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
                  _M_parent = 0x9e35bd8, _M_left = 0x9eb2ff0,
                  _M_right = 0x9e35bd8}, _M_node_count = 2}}},
---Type <return> to continue, or q <return> to quit---
          hotkey_states = {_M_t = {
              _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<int const, bool> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, bool> > >> = {<No data fields>}, <No data fields>},
                _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
                  _M_parent = 0x9e34fe0, _M_left = 0x9eb0a48,
                  _M_right = 0x9983a20}, _M_node_count = 3}}}, hotkey_cmd = {
            static npos = <optimized out>,
            _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x8eafdbc ""}},
          hotkey_set = false, HotkeyMutex = 0x9c39528, HotkeyCond = 0x9cff958,
          last_world_data_ptr = 0x0, last_local_map_ptr = 0x0,
          top_viewscreen = 0x9a25cf0, last_pause_state = false,
          started = true, misc_data_mutex = 0x9c394d0, misc_data_map = {
            _M_t = {
              _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, void*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, void*> > >> = {<No data fields>}, <No data fields>},
                _M_key_compare = {<std::binary_function<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x0,
---Type <return> to continue, or q <return> to quit---
                  _M_left = 0xf7fbb368, _M_right = 0xf7fbb368},
                _M_node_count = 0}}}, server = 0xf320f800}
#12 0xf74840b0 in main ()
   from /media/Linux_Data/Dwarf_Fortress/mods/Masterwork_GUI/df_hack_2012-12-25_japa_stonesense_debug/libs/libgraphics.so
No symbol table info available.
#13 0xf71cfe46 in __libc_start_main () from /lib32/libc.so.6
No symbol table info available.
#14 0x0804c971 in ?? ()
No symbol table info available.
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #536 on: December 26, 2012, 01:52:46 pm »

@arclance

Are you sure  you flushed and cleanly built the branch you indicated and it was successful?  Your symbols seem to be referencing variables and files that have been removed in the version you linked.  Also I think Japa's branch (the one you linked) is partway through a manual merge or something just looking at the files here, and that really shouldn't compile.  I know my latest version is currently compiling and running nicely on windows (and as far as I am aware on linux as well).  If that's the case (that is, that you are not in fact compiling a version containing my changes), then I can verify that the cause of the first type of crashes is the one that should be fixed in the newest version (which I mentioned earlier).  If that isn't the case then I don't really know what I'm reading.  Would prefer not to speculate on the second kind until I know for sure if I'm right about the first kind. 
I started over completely by pulling dfhack and then edited ".gitmodules" to point to "git://github.com/JapaMala/stonesense.git" instead of "git://github.com/peterix/stonesense.git" before I pulled in any of the submodules so I should have only gotten the code from "git://github.com/JapaMala/stonesense.git".
It turns out that is not enough since the default HEAD is not the master branch.
I tried changing the branch but is seemed to merge the old and new code instead of overwriting the old code.
Any idea what the correct way to change the branch is?

Ignore that as well Japas repo got corrupted when he merged your branch into his.
It is full of stuff like this.
Code: [Select]
<<<<<<< HEAD
        incrx = parms.sizex-2;
        incry = parms.sizey-2;
=======

        if(ssState.DisplayedRotation%2){
            incrx = parms.sizey-2;
            incry = parms.sizex-2;
        } else {
            incrx = parms.sizex-2;
            incry = parms.sizey-2;
        }

>>>>>>> bca39470b617598b0b67fadaafa59799c78cdec1
        numx = (int)(ssState.RegionDim.x+3);
        numx = numx/incrx + (numx%incrx==0 ? 0 : 1);
        numy = (int)(ssState.RegionDim.y+3);
        numy = numy/incry + (numx%incry==0 ? 0 : 1);
        numz = tall ? ((ssState.RegionDim.z/(parms.sizez-1)) + 1) : 1;
<<<<<<< HEAD
=======
       
>>>>>>> bca39470b617598b0b67fadaafa59799c78cdec1
I will try using your repo instead.
I did finally find good instructions on working with submodules though.
« Last Edit: December 26, 2012, 02:50:29 pm by arclance »
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #537 on: December 26, 2012, 03:20:03 pm »

I will try using your repo instead.
I tried building the master branch of stonesense from your repo and it failed here.
Code: [Select]
In file included from /home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/common.h:39:0,
                 from /home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp:1:
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.h: In function ‘bool IDhasOpaqueFloor(int)’:
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.h:202:55: error: ‘FlowPassableDown’ was not declared in this scope
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp: In member function ‘void Tile::AssembleTile()’:
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp:307:139: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp:345:90: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp:419:129: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp:464:157: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp:466:156: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp: In function ‘bool hasBuildingIdentity(Tile*, DFHack::Buildings::t_building*, int)’:
/home/arclance/build/Dwarf_Fortress/0_Utils/dfhack/Petrix_Branch/dfhack_2012-12-26_caldif_stonesense/plugins/stonesense/Tile.cpp:610:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[2]: *** [plugins/stonesense/CMakeFiles/stonesense.dir/Tile.cpp.o] Error 1
make[1]: *** [plugins/stonesense/CMakeFiles/stonesense.dir/all] Error 2
make: *** [all] Error 2
I looked at the code to make sure you commits were in there so I am sure I was building what I though I was building this time.
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: Stonesense: New official thread.
« Reply #538 on: December 26, 2012, 06:16:52 pm »

That's actually all my fault, I screwed up a merge, which made everything weird and odd and not able to compile. My bad. Try again from my branch.
Logged

arclance

  • Bay Watcher
    • View Profile
Re: Stonesense: New official thread.
« Reply #539 on: December 26, 2012, 08:46:01 pm »

That's actually all my fault, I screwed up a merge, which made everything weird and odd and not able to compile. My bad. Try again from my branch.
I now fails with the same error as Caldifir's branch.
Code: [Select]
In file included from /home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/common.h:39:0,
                 from /home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.cpp:1:
/home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.h: In function ‘bool IDhasOpaqueFloor(int)’:
/home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.h:202:55: error: ‘FlowPassableDown’ was not declared in this scope
/home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.cpp: In member function ‘void Tile::AssembleTile()’:
/home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.cpp:307:139: warning: comparison between signed and unsigned integer expressions
/home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.cpp:345:90: warning: comparison between signed and unsigned integer expressions
/home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.cpp:419:129: warning: comparison between signed and unsigned integer expressions
/home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.cpp:464:157: warning: comparison between signed and unsigned integer expressions
/home/arclance/0_Build/dfhack/Peterix/dfhack_2012-12-26/plugins/stonesense/Tile.cpp:466:156: warning: comparison between signed and unsigned integer expressions
make[2]: *** [plugins/stonesense/CMakeFiles/stonesense.dir/Tile.cpp.o] Error 1
make[1]: *** [plugins/stonesense/CMakeFiles/stonesense.dir/all] Error 2
make: *** [all] Error 2
Logged
I think that might be one of the most dwarfen contraptions I've ever seen the blueprints of.
The Bloodwinery v1.3.1 | Dwarven Lamination v1.5 | Tileset Resizer v2.5 - Mac Beta Tester Needed
Sigtext
Pages: 1 ... 34 35 [36] 37 38 ... 85