Ofunniku / dwarftherapist

Automatically exported from code.google.com/p/dwarftherapist
Other
0 stars 0 forks source link

DT does not connect to DF after Caravan arrival #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load Dwarf Therapist 0.5.2 and Dwarf Fortress 31.04
2. Connect Dwarf Therapist to Dwarf Fortress,  use as normal.
3. Once a Caravan shows up,  click "Read Dwarves" in Dwarf Therapist.

To resolve the problem:
1.  Save the current Dwarf Fortress game
2.  Exit Dwarf Fortress
3.  Exit Dwarf Therapist
4.  Start Dwarf Fortress
5.  Load Dwarf Fortress save
5.  Start Dwarf Therapist

What is the expected output? What do you see instead?
-> Expected Output:  Dwarf Therapist updates the dwarf list normally.
-> Actual Output:  Dwarf Therapist gives the 'cannot connect to DF make sure a 
fort is loaded" message and generates [WARNING  lost 
connection to DF] in run.log

What version of the product are you using? On what operating system?
-> Dwarf Therapist 0.5.2
-> Dwarf Fortress 31.04

Please provide the "run.log" file in the "log" directory of DwarfTherapist
when this error occurred.
->
2010-May-28 20:16:22.410 INFO   Log Opened Successfully
2010-May-28 20:16:22.410 INFO   Dwarf Therapist "0.5.2" starting normally.
2010-May-28 20:16:22.410 INFO   Minimum log level set to "DEBUG"
2010-May-28 20:16:22.481 INFO   Loaded 2 views from disk
2010-May-28 20:16:22.495 DEBUG  "redrew views in 13ms" [src\viewmanager.cpp:162]
2010-May-28 20:16:22.498 DEBUG  setting up connections for MainWindow 
[src\mainwindow.cpp:114]
2010-May-28 20:16:22.502 DEBUG  group_by now set to 1 
[src\models\dwarfmodel.cpp:426]
2010-May-28 20:16:22.510 DEBUG  group_by now set to 1 
[src\models\dwarfmodel.cpp:426]
2010-May-28 20:16:22.510 DEBUG  beginning to read settings 
[src\dwarftherapist.cpp:108]
2010-May-28 20:16:22.511 DEBUG  finished reading settings 
[src\dwarftherapist.cpp:154]
2010-May-28 20:16:22.688 DEBUG  attempting connection to running DF game 
[src\mainwindow.cpp:224]
2010-May-28 20:16:22.690 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:22.690 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:22.691 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:22.692 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:22.692 DEBUG  attempting to find running copy of DF by window 
handle [src\dfinstancewindows.cpp:227]
2010-May-28 20:16:23.291 INFO   RUNNING VERSION         : "0.5.2"
2010-May-28 20:16:23.291 INFO   LATEST AVAILABLE VERSION: "0.5.2"
2010-May-28 20:16:24.252 WARNING    can't find running copy 
[src\dfinstancewindows.cpp:240] (find_running_copy)
2010-May-28 20:16:41.756 DEBUG  attempting connection to running DF game 
[src\mainwindow.cpp:224]
2010-May-28 20:16:41.756 DEBUG  already connected, disconnecting 
[src\mainwindow.cpp:226]
2010-May-28 20:16:41.756 DEBUG  DFInstance baseclass virtual dtor! 
[src\dfinstance.cpp:103]
2010-May-28 20:16:41.758 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:41.758 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:41.759 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:41.759 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:41.760 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:41.761 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:41.761 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:41.762 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:16:41.762 DEBUG  attempting to find running copy of DF by window 
handle [src\dfinstancewindows.cpp:227]
2010-May-28 20:16:41.762 DEBUG  found copy with HWND:  0x1b0482 
[src\dfinstancewindows.cpp:243]
2010-May-28 20:16:41.762 DEBUG  PID of process is:  7868 
[src\dfinstancewindows.cpp:250]
2010-May-28 20:16:41.762 DEBUG  PEB is at:  0x7efde000 
[src\dfinstancewindows.cpp:259]
2010-May-28 20:16:41.762 DEBUG  read 12 bytes BASE ADDR is at:  0x310000 
[src\dfinstancewindows.cpp:272]
2010-May-28 20:16:41.763 DEBUG  Target EXE was compiled at  
"2010-05-16T08:53:30" [src\dfinstancewindows.cpp:70]
2010-May-28 20:16:41.763 DEBUG  DF's checksum is: "0x4bf014fa" 
[src\dfinstance.cpp:451]
2010-May-28 20:16:41.763 INFO   Detected Dwarf Fortress version "v0.31.04" using 
MemoryLayout from 
"C:/Users/kyle/Desktop/DF_31_04_Phoebus_2_0_2/utl_Therapist/etc/memory_layouts/w
indows/v0.31.04.ini"
2010-May-28 20:16:41.763 DEBUG  base address: "0x00310000" 
[src\dfinstancewindows.cpp:290]
2010-May-28 20:16:41.763 DEBUG  memory correction: "0xfff10000" 
[src\dfinstancewindows.cpp:291]
2010-May-28 20:16:41.783 DEBUG  Connection to DF version "v0.31.04" established. 
[src\mainwindow.cpp:247]
2010-May-28 20:16:41.783 DEBUG  Loading language translation tables 
[src\dwarftherapist.cpp:304]
2010-May-28 20:16:41.783 DEBUG  Loading generic strings from 15cd38c 
[src\dwarftherapist.cpp:317]
2010-May-28 20:16:41.785 DEBUG  generic words 2107 [src\dwarftherapist.cpp:319]
2010-May-28 20:16:41.793 DEBUG  FOUND LANG ENTRY 3f3b4e8 "DWARF" 
[src\dwarftherapist.cpp:330]
2010-May-28 20:16:41.793 DEBUG  FOUND LANG ENTRY 3f72710 "ELF" 
[src\dwarftherapist.cpp:330]
2010-May-28 20:16:41.793 DEBUG  FOUND LANG ENTRY 3f32d18 "GOBLIN" 
[src\dwarftherapist.cpp:330]
2010-May-28 20:16:41.793 DEBUG  FOUND LANG ENTRY 3f4e6c8 "HUMAN" 
[src\dwarftherapist.cpp:330]
2010-May-28 20:16:41.793 DEBUG  Loading dwarf strings from 3f3b53c 
[src\dwarftherapist.cpp:335]
2010-May-28 20:16:41.795 DEBUG  dwarf words 2107 [src\dwarftherapist.cpp:337]
2010-May-28 20:16:41.826 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:16:47.598 DEBUG  beginning to write settings 
[src\mainwindow.cpp:200]
2010-May-28 20:16:47.598 DEBUG  finished writing settings 
[src\mainwindow.cpp:211]
2010-May-28 20:16:47.598 DEBUG  group_by now set to 7 
[src\models\dwarfmodel.cpp:426]
2010-May-28 20:16:52.306 DEBUG  beginning to write settings 
[src\mainwindow.cpp:200]
2010-May-28 20:16:52.306 DEBUG  finished writing settings 
[src\mainwindow.cpp:211]
2010-May-28 20:16:52.306 DEBUG  group_by now set to 1 
[src\models\dwarfmodel.cpp:426]
2010-May-28 20:17:15.754 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:17:56.972 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:17:58.406 DEBUG  beginning to write settings 
[src\mainwindow.cpp:200]
2010-May-28 20:17:58.407 DEBUG  finished writing settings 
[src\mainwindow.cpp:211]
2010-May-28 20:17:58.407 DEBUG  group_by now set to 7 
[src\models\dwarfmodel.cpp:426]
2010-May-28 20:18:23.647 DEBUG  beginning to write settings 
[src\mainwindow.cpp:200]
2010-May-28 20:18:23.647 DEBUG  finished writing settings 
[src\mainwindow.cpp:211]
2010-May-28 20:18:23.647 DEBUG  group_by now set to 1 
[src\models\dwarfmodel.cpp:426]
2010-May-28 20:19:04.836 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:19:14.426 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:19:39.495 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:20:18.400 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:20:28.950 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:20:44.790 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:25:09.133 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:25:55.893 INFO   found 17 dwarves out of 77 creatures
2010-May-28 20:48:21.822 DEBUG  Ignoring " Razdodok" who appears to be "Not from 
around these parts" [src\dwarf.cpp:309]
2010-May-28 20:48:21.823 INFO   found 0 dwarves out of 1 creatures
2010-May-28 20:48:21.823 WARNING    lost connection to DF [src\mainwindow.cpp:273] 
(lost_df_connection)
2010-May-28 20:48:21.833 DEBUG  DFInstance baseclass virtual dtor! 
[src\dfinstance.cpp:103]
2010-May-28 20:48:26.889 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.889 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.890 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.891 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.893 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.893 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.894 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.894 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.895 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.896 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.896 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.897 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:26.897 DEBUG  attempting to find running copy of DF by window 
handle [src\dfinstancewindows.cpp:227]
2010-May-28 20:48:26.897 DEBUG  found copy with HWND:  0x1b0482 
[src\dfinstancewindows.cpp:243]
2010-May-28 20:48:26.897 DEBUG  PID of process is:  7868 
[src\dfinstancewindows.cpp:250]
2010-May-28 20:48:26.897 DEBUG  PEB is at:  0x7efde000 
[src\dfinstancewindows.cpp:259]
2010-May-28 20:48:26.897 DEBUG  read 12 bytes BASE ADDR is at:  0x310000 
[src\dfinstancewindows.cpp:272]
2010-May-28 20:48:26.897 DEBUG  Target EXE was compiled at  
"2010-05-16T08:53:30" [src\dfinstancewindows.cpp:70]
2010-May-28 20:48:26.897 DEBUG  DF's checksum is: "0x4bf014fa" 
[src\dfinstance.cpp:451]
2010-May-28 20:48:26.897 INFO   Detected Dwarf Fortress version "v0.31.04" using 
MemoryLayout from 
"C:/Users/kyle/Desktop/DF_31_04_Phoebus_2_0_2/utl_Therapist/etc/memory_layouts/w
indows/v0.31.04.ini"
2010-May-28 20:48:26.897 DEBUG  base address: "0x00310000" 
[src\dfinstancewindows.cpp:290]
2010-May-28 20:48:26.897 DEBUG  memory correction: "0xfff10000" 
[src\dfinstancewindows.cpp:291]
2010-May-28 20:48:26.926 DEBUG  Starting Search in Thread 0x1ffc 
[bin\release\/../../inc/creaturevectorsearchjob.h:48]
2010-May-28 20:48:29.559 DEBUG  "Scanned 745,439,232MB in 2,633ms" 
[src\dfinstance.cpp:161]
2010-May-28 20:48:34.147 DEBUG  attempting connection to running DF game 
[src\mainwindow.cpp:224]
2010-May-28 20:48:34.148 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.149 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.149 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.150 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.151 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.152 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.153 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.153 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.155 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.156 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.156 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.157 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.158 DEBUG  adding valid layout "v0.31.04" "0x4bf014fa" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.158 DEBUG  adding valid layout "v0.31.03" "0x4bc3c470" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.159 DEBUG  adding valid layout "v0.31.02" "0x4bbdf378" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.159 DEBUG  adding valid layout "v0.31.01" "0x4bb45f99" 
[src\dfinstance.cpp:88]
2010-May-28 20:48:34.159 DEBUG  attempting to find running copy of DF by window 
handle [src\dfinstancewindows.cpp:227]
2010-May-28 20:48:34.159 DEBUG  found copy with HWND:  0x1b0482 
[src\dfinstancewindows.cpp:243]
2010-May-28 20:48:34.159 DEBUG  PID of process is:  7868 
[src\dfinstancewindows.cpp:250]
2010-May-28 20:48:34.159 DEBUG  PEB is at:  0x7efde000 
[src\dfinstancewindows.cpp:259]
2010-May-28 20:48:34.159 DEBUG  read 12 bytes BASE ADDR is at:  0x310000 
[src\dfinstancewindows.cpp:272]
2010-May-28 20:48:34.159 DEBUG  Target EXE was compiled at  
"2010-05-16T08:53:30" [src\dfinstancewindows.cpp:70]
2010-May-28 20:48:34.159 DEBUG  DF's checksum is: "0x4bf014fa" 
[src\dfinstance.cpp:451]
2010-May-28 20:48:34.159 INFO   Detected Dwarf Fortress version "v0.31.04" using 
MemoryLayout from 
"C:/Users/kyle/Desktop/DF_31_04_Phoebus_2_0_2/utl_Therapist/etc/memory_layouts/w
indows/v0.31.04.ini"
2010-May-28 20:48:34.159 DEBUG  base address: "0x00310000" 
[src\dfinstancewindows.cpp:290]
2010-May-28 20:48:34.160 DEBUG  memory correction: "0xfff10000" 
[src\dfinstancewindows.cpp:291]
2010-May-28 20:48:34.190 DEBUG  Connection to DF version "v0.31.04" established. 
[src\mainwindow.cpp:247]
2010-May-28 20:48:34.190 DEBUG  Loading language translation tables 
[src\dwarftherapist.cpp:304]
2010-May-28 20:48:34.191 DEBUG  Loading generic strings from 15cd38c 
[src\dwarftherapist.cpp:317]
2010-May-28 20:48:34.193 DEBUG  generic words 2107 [src\dwarftherapist.cpp:319]
2010-May-28 20:48:34.202 DEBUG  FOUND LANG ENTRY 3f3b4e8 "DWARF" 
[src\dwarftherapist.cpp:330]
2010-May-28 20:48:34.202 DEBUG  FOUND LANG ENTRY 3f72710 "ELF" 
[src\dwarftherapist.cpp:330]
2010-May-28 20:48:34.202 DEBUG  FOUND LANG ENTRY 3f32d18 "GOBLIN" 
[src\dwarftherapist.cpp:330]
2010-May-28 20:48:34.202 DEBUG  FOUND LANG ENTRY 3f4e6c8 "HUMAN" 
[src\dwarftherapist.cpp:330]
2010-May-28 20:48:34.203 DEBUG  Loading dwarf strings from 3f3b53c 
[src\dwarftherapist.cpp:335]
2010-May-28 20:48:34.205 DEBUG  dwarf words 2107 [src\dwarftherapist.cpp:337]
2010-May-28 20:48:34.243 DEBUG  Ignoring " Razdodok" who appears to be "Not from 
around these parts" [src\dwarf.cpp:309]
2010-May-28 20:48:34.243 INFO   found 0 dwarves out of 1 creatures
2010-May-28 20:48:34.243 WARNING    lost connection to DF [src\mainwindow.cpp:273] 
(lost_df_connection)
2010-May-28 20:48:34.251 DEBUG  DFInstance baseclass virtual dtor! 
[src\dfinstance.cpp:103]
2010-May-28 20:50:27.917 WARNING    lost connection to DF [src\mainwindow.cpp:273] 
(lost_df_connection)
2010-May-28 20:50:29.148 WARNING    lost connection to DF [src\mainwindow.cpp:273] 
(lost_df_connection)
2010-May-28 20:50:30.007 WARNING    lost connection to DF [src\mainwindow.cpp:273] 
(lost_df_connection)
2010-May-28 20:50:30.282 WARNING    lost connection to DF [src\mainwindow.cpp:273] 
(lost_df_connection)
2010-May-28 20:50:30.458 WARNING    lost connection to DF [src\mainwindow.cpp:273] 
(lost_df_connection)
2010-May-28 20:50:30.585 WARNING    lost connection to DF [src\mainwindow.cpp:273] 
(lost_df_connection)

If this is a truly "crazy" issue, please also attach a copy of your save-
game.
-> The forum post [http://bit.ly/bS3LTA] I saw on this requested a saved 
fortress. 
-> Unfortunately since the max file size for an upload is 10MB and my zipped 
save is 22MB,  here is a Dropbox link:  
http://dl.dropbox.com/u/461380/region1.zip

Feel free to request any additional info or testing,  I'd be more than happy to 
help out any way I can.  Love Dwarf Therapist,  discovering it 
it made this game so much easier to enjoy.  Thank you very much for developing 
it!

Original issue reported on code.google.com by yokoh...@gmail.com on 29 May 2010 at 4:01

GoogleCodeExporter commented 9 years ago
Issue 245 has been merged into this issue.

Original comment by octavs...@gmail.com on 31 May 2010 at 6:23

GoogleCodeExporter commented 9 years ago
As mentioned in issue 245, this is very similar to issue 232 and issue 233, 
notably
by the repetition of "Found 0 dwarves out of 1 creatures". It could be the same
problem showing up as multiple bugs (consider, for instance, new caravan, 
especially
new dwarven caravan, means new dwarves in the creature vector -- at the very 
least,
the outpost liaison). New migrants are also new dwarves, and new game again 
means new
dwarves. When loading a savegame, the creature vector gets placed in the 
expected
location, which makes DT work again.

We've had reports that this bug does not reproduce using DT 0.5.1, do you think 
you
could give that a try for us?

Original comment by octavs...@gmail.com on 31 May 2010 at 6:28

GoogleCodeExporter commented 9 years ago
Addendum: if you want to use DT 0.5.1 with DT 0.31.04, you will need to copy the
memory layout from [DT location]/etc/memory_layouts/windows/0.31.04.ini to the 
same
path in 0.5.1's working path. Please ask for clarification, if needed.

Original comment by octavs...@gmail.com on 31 May 2010 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by treyst...@gmail.com on 31 May 2010 at 8:18

GoogleCodeExporter commented 9 years ago
yokohead, I was just running the fort you uploaded. Does a caravan arrive 
anytime soon 
after that save? Or does that save itself not allow you to connect?

Original comment by treyst...@gmail.com on 1 Jun 2010 at 12:48

GoogleCodeExporter commented 9 years ago
Nevermind, I left the original poster's fort running until a caravan showed up. 
Confirmed fixed via r13ed26a2f0

Original comment by treyst...@gmail.com on 1 Jun 2010 at 1:46