On Fri, 15 Mar 2024 09:43:38 -0700 (PDT) Henry M wrote:
HM> I have no issues building and running my wxWidgets project with Xcode 14 on
HM> macOS 12.7. However, when building it and running it with Xcode 15 on macOS
HM> 14.4, the app crashes once it gets to this line: wxIMPLEMENT_APP(myApp);
Sorry, I don't have Xcode 15 yet, so I can't test this and all I can say
is that "this line" is the application entry point, so it doesn't really
say much. Also, the crash doesn't happen in the main thread.
HM> I first thought the crash was due to an outdated wxWidgets build, so I
HM> rebuilt it with the following commands, but that didn't fix it.
HM>
HM> git clone --recurse-submodules
HM>
https://github.com/wxWidgets/wxWidgets.git ./configure --disable-sys-libs
HM> --enable-macosx_arch=x86_64,arm64 make -j5
Does this happen only with the universal builds or with just arm64 one
too?
HM> The stack trace shows that the crash comes from an instruction in
HM> MTLInputStageReflectionReader::deserialize(id<MTLDeviceSPI>,
HM> NSObject<OS_dispatch_data>*, NSObject<OS_dispatch_data>) (), which is is a
HM> Metal library.
HM>
HM> Does anyone have any ideas where I should start looking to fix this issue?
As wx doesn't Metal at all, it's really difficult to say, unfortunately.
HM> Also, I should mention that on the newer Mac, I'm able to build (from the
HM> command line) all the wxWidgets OpenGL samples and the wxWidgets minimal
HM> sample and run them without issue.
The usual advice is to start bisecting the problem, i.e. reduce your
application code, by disabling parts of it, until the issue disappears.
Good luck,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/