Changes between Version 1 and Version 8 of Ticket #2650


Ignore:
Timestamp:
Jul 7, 2014, 2:48:58 PM (10 years ago)
Author:
wraitii
Comment:

Update: I've done a lot of step-by-step debugging and in the end I think the culprit are the "[NSApplication transformToForegroundApplication]: unrecognized selector sent to instance 0x102f22d70" errors I get.

I've tried de-threading the Scenario editor to see what the error was, and was still unable to get a window. This is because we never call the wxApp "OnInit" when starting the scenarioEditor. However ActorEditor does, and starts successfully. I've debugged this step by step, and it turns out the culprit is code at line 367 or utils.mm in src/osx/cocoa/, which was added in http://trac.wxwidgets.org/changeset/75142 after reports that non-bundled apps did not work anymore. Somehow, it fails with the above error, whereas actor editor doesn't. FYI, changing ActorEditor project to start ScenarioEditor does run OnInit, though that doesn't work since it lacks a few things. Still working on this.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2650 – Description

    v1 v8  
    11Atlas compiles successfully but crashes on startup (either from in-game or the command line). The error given is fairly weird in my case: [NSApplication transformToForegroundApplication]: unrecognized selector sent to instance 0x103808b10
    22
    3 It all happens in RunEngine() in Atlas/Gameloop.cpp. Apparently there's something with the command line argument it doesn't like (when stepping, it tends to crash on some malloc here) but I'm not sure why. I don't really have a lot more info for now. Gonna try in debug mode.
     3Update: I've done a lot of step-by-step debugging and in the end I think the culprit are the "[NSApplication transformToForegroundApplication]: unrecognized selector sent to instance 0x102f22d70" errors I get.
    44
    5 I'm putting this as release blocker for now.
     5I've tried de-threading the Scenario editor to see what the error was, and was still unable to get a window. This is because we never call the wxApp "OnInit" when starting the scenarioEditor. However ActorEditor does, and starts successfully.
     6I've debugged this step by step, and it turns out the culprit is code at line 367 or utils.mm in src/osx/cocoa/, which was added in http://trac.wxwidgets.org/changeset/75142 after reports that non-bundled apps did not work anymore. Somehow, it fails with the above error, whereas actor editor doesn't. FYI, changing ActorEditor project to start ScenarioEditor ''does'' run OnInit, though that doesn't work since it lacks a few things. Still working on this.