Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 61 62 [63] 64 65 ... 222

Author Topic: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06  (Read 1003069 times)

shaver

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #930 on: July 20, 2014, 08:30:01 am »

It's just this in the is-authorized branch of DFInstance::authorize

Code: [Select]
diff --git a/src/dfinstanceosx.mm b/src/dfinstanceosx.mm
index 919846a..3f9319f 100644
--- a/src/dfinstanceosx.mm
+++ b/src/dfinstanceosx.mm
@@ -381,6 +381,10 @@ bool DFInstance::authorize() {
         dir.cdUp();
         chdir(dir.absolutePath().toLocal8Bit());
         fflush(stdout);
+
+        // Authorization for remote memory access on OS X trips Qt's setuid detection
+        QCoreApplication::setSetuidAllowed(true);
+
         return true;
     }

I'll get the sbcl stuff installed to calc the global addresses and see how far I get on the plane today.
Logged

shaver

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #931 on: July 20, 2014, 09:04:18 am »

Boy, the Lisp stuff really doesn't want to admit to the existence of osx. I'll ask on #dfhack if there's a good way to go other than manually adding osx cases everywhere. Sorry for the delay, I haven't done any Lisp in a long time.
Logged

Schaluck

  • Escaped Lunatic
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #932 on: July 20, 2014, 12:07:59 pm »

I tried to get that script to work, however there is no winedump available under os x. Moreover, the metasm library is not available for os x. So I guess there is no way to do this directly on a mac :(.

the following offsets should work for os x. They are just linux offsets with a corrected checksum for 0.40.03. They shortly worked for me but I cant get them to work anymore with the old DT version.

How did you fix the Qt setuid issues?


Spoiler (click to show/hide)
the global [addresses] section may be different and have to be verified. i don't remember if those were identical between osx and linux, but i don't believe they were. this is the df-structures guide to reset and find the global offsets.
Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #933 on: July 20, 2014, 02:24:21 pm »

I noticed that Running a large world made DT read and update dwarf data much much slower now compared to a pocket world. It takes maybe 20 seconds to update dwarves on my Wine setup for a large world. A pocket world is instant as before.
can you check the log file and see if maybe it's loading a lot of squads? i'm testing this now to see if i can duplicate it.

Aloriel

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #934 on: July 20, 2014, 03:00:33 pm »

I seem to have broken Dwarf Therapist 23.0...

The last thing I did was enable the traits tab and reload my dwarves. It did a CTD, and keeps doing that on reload.

I have tried reinstalling.
I have tried removing the .ini from my appdata folder. (Dang if that thing isn't hard to find :P)
I have tried removing the .ini from appdata AND reinstalling.

Any further options? Is there some other file somewhere that I am missing? Perhaps one of the files in the main DF folder or something?

EDIT:
Further info...
I have attempted to run 0.6.12 and it works fine. So it's only the branch version that is broken.
It also loads if my fortress isn't running.

Windows crash log:
Problem Event Name:   APPCRASH
  Application Name:   DwarfTherapist.exe
  Application Version:   0.0.0.0
  Application Timestamp:   53c830c5
  Fault Module Name:   DwarfTherapist.exe
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   53c830c5
  Exception Code:   c0000005
  Exception Offset:   0016ed82
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:   1033
  Additional Information 1:   0a9e
  Additional Information 2:   0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:   0a9e
  Additional Information 4:   0a9e372d3b4ad19135b953a78882e789

And I have to attach the run.log because it's just too large. (even in spoilers)
https://drive.google.com/file/d/0B6E_9hy-_29ta3QxOHhTcGE0Z1U/edit?usp=sharing


Another change I just realized: I had just had a wave of migrants come in. Could it have gotten overloaded?
« Last Edit: July 20, 2014, 03:28:56 pm by Aloriel »
Logged

King Mir

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #935 on: July 20, 2014, 03:06:54 pm »

EDIT:Woops. Wrong save. The right one has a log too big to fit in a post.

Here's the right log:
http://pastebin.com/8zSvUX8P

Yeah there are a lot of squads found.
« Last Edit: July 20, 2014, 03:36:45 pm by King Mir »
Logged

shaver

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #936 on: July 20, 2014, 03:09:41 pm »

I got the winedump part sorted out, but didn't have df_misc checked out on the plane. That'll be the next step. I have a Linux VM to hand at home if I end up needing to go that route, but I'm not home until Tuesday.

Splinter: is the make-dt.pl in df-structures up to date, in terms of which symbols map to which of the global addresses? I'm not sure how else to tell which addresses to use.
Logged

shaver

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #937 on: July 20, 2014, 03:22:10 pm »

Oh, do we need an OS X build of the latest v34 release? I could do that more easily!
Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #938 on: July 20, 2014, 03:34:08 pm »

I seem to have broken Dwarf Therapist 23.0...

The last thing I did was enable the traits tab and reload my dwarves. It did a CTD, and keeps doing that on reload.

I have tried reinstalling.
I have tried removing the .ini from my appdata folder. (Dang if that thing isn't hard to find :P)
I have tried removing the .ini from appdata AND reinstalling.

Any further options? Is there some other file somewhere that I am missing? Perhaps one of the files in the main DF folder or something?

EDIT:
Further info...
I have attempted to run 0.6.12 and it works fine. So it's only the branch version that is broken.
It also loads if my fortress isn't running.

Windows crash log:
Problem Event Name:   APPCRASH
  Application Name:   DwarfTherapist.exe
  Application Version:   0.0.0.0
  Application Timestamp:   53c830c5
  Fault Module Name:   DwarfTherapist.exe
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   53c830c5
  Exception Code:   c0000005
  Exception Offset:   0016ed82
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:   1033
  Additional Information 1:   0a9e
  Additional Information 2:   0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:   0a9e
  Additional Information 4:   0a9e372d3b4ad19135b953a78882e789

And I have to attach the run.log because it's just too large. (even in spoilers)
https://drive.google.com/file/d/0B6E_9hy-_29ta3QxOHhTcGE0Z1U/edit?usp=sharing


Another change I just realized: I had just had a wave of migrants come in. Could it have gotten overloaded?
if you just got migrants, it's probably the same issue as above with a squad. try adding and removing the new migrants to a squad.

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #939 on: July 20, 2014, 03:39:00 pm »

I got the winedump part sorted out, but didn't have df_misc checked out on the plane. That'll be the next step. I have a Linux VM to hand at home if I end up needing to go that route, but I'm not home until Tuesday.

Splinter: is the make-dt.pl in df-structures up to date, in terms of which symbols map to which of the global addresses? I'm not sure how else to tell which addresses to use.
this is the most recent make-dt.pl

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #940 on: July 20, 2014, 03:41:25 pm »

EDIT:Woops. Wrong save. The right one has a log too big to fit in a post.

Here's the right log:
http://pastebin.com/8zSvUX8P

Yeah there are a lot of squads found.
oh wow, that's a lot of squads! that's most likely the issue as it's building the uniforms and everything for every squad found there. i noticed this in one of my recent games as well and i've already implemented a fix (if that's the only cause).

dennislp3

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #941 on: July 20, 2014, 03:48:25 pm »

Is that pulling sqauds from like...wandering groups or something?
Logged

King Mir

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #942 on: July 20, 2014, 03:59:04 pm »

I kinda wanna know more about "The Adorable Whiskers" and "The Women of Showing" now. And their uniforms. ;D

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (Maintained Branch) v.22.0 | DF 40.03
« Reply #943 on: July 20, 2014, 04:05:04 pm »

it's pulling all the squads (in history?) instead of only the squads in the current fortress. this wasn't really a problem before, it would only have a list of old squads if you reclaimed, if i remember correctly. but with the new dynamic world changes, i believe it's keeping track of a lot more squads. so it's an easy fix, i just have to make sure the squad information should be loaded (ie that it's actually an active squad).

shaver

  • Bay Watcher
    • View Profile
Logged
Pages: 1 ... 61 62 [63] 64 65 ... 222