[2.1] Many samples broken on iOS

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


chchwy
Kobold
Posts: 30
Joined: Fri Feb 10, 2017 1:40 am
x 11

[2.1] Many samples broken on iOS

Post by chchwy »

A few days ago I tried to re-compile Ogre 2.1 for iOS after upgrading to macOS Catalina.

I found that I couldn't run most of the Ogre samples,
they crashed right after the app starts with an error "Thread 1: signal SIGABRT"

There is no much useful information there.
Image

Currently I am able to run the following 3 samples successfully:
- Sample_Tutorial01_Initialization
- Sample_Tutorial02_VariableFramerate
- Sample_Tutorial03_DeterministicLoop

Other samples that crash immediately, include:
- Sample_Forward3D
- Sample_PbsMaterials
- Sample_V2Mesh

Unfortunately I cannot go back to the previous macOS version so I don't know whether it's a macOS issue.
I am testing on an iPad mini 3 with iOS 12.4.1, latest v2-1 branch.
chchwy
Kobold
Posts: 30
Joined: Fri Feb 10, 2017 1:40 am
x 11

Re: [2.1] Many samples broken on iOS

Post by chchwy »

By the way, my iOS app is running fine with the latest ogre 2.1 code.
I guess it's just the issue of the sample itself.
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5511
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1379

Re: [2.1] Many samples broken on iOS

Post by dark_sylinc »

Hi!

Try adding a breakpoint to catch exceptions when they're thrown. That may give you more details.

Also upload what the debugger log is saying.
chchwy
Kobold
Posts: 30
Joined: Fri Feb 10, 2017 1:40 am
x 11

Re: [2.1] Many samples broken on iOS

Post by chchwy »

Got a weird situation however the samples are running okay now.

1. I tried to run the HDR sample again today in Release mode, the app crashed.
2. Switched to Debug mode and set a C++ exception breakpoint. Caught an exception but after that, the app went well.
3. Then I switched back to release mode, everything is running without any issue. I am no longer able to replicate the crash. :shock: