Xojo crash on mac when building

Greetings,

We are currently getting issues with our build mac where Xojo 2019r3.2 and Xojo 2019r3.1 is crashing when attempting to build for windows and mac, we have not seen this issue before Xojo 2019r3.1, here is the spec of the build mac:

build mac spec

  • Our project has around 3500 classes, and 300k+ lines of code.
  • We have seen this issue on an off, there are phases where it works nicely for a few weeks, then falls over every build.

When building, during the linking phase, Xojo will either:

  • Complete the build successfully
  • Freeze and run up the available ram to unrealistic heights, then the force quite window appears

    I have a sample file during this freeze stage, How’s best to supply this .txt?
    freeze_ram_force_quit
    I have a crash dump, how’s best to supply this .txt?
  • Hard crash with a crash dump
    I have a different crash dump, how’s best to upload?
  • Xojo produces a linking error

    Right clicking and selecting ‘copy’ instantly crashes Xojo

We have not witnessed this behaviour before xojo2019r31

Thank you in advanced for any insight.

All the best,

Connor Blackler

Contact Xojo directly and give them the source code of your project.

Did you try to do an Instruments session with Xojo?

Did you read the first line on the Force Quit dialog?

Your system has run out of application memory.

That seems like a good place to start.

Agreed.

Xojo barely uses half my RAM on successful compiles.

Perhaps Greg, someone who works at Xojo, could suggest which tests are helpful for Xojo to aid in resolving this.

Beatrix,

We had tried that in the past regarding other issues to no avail.

Did you try to do an Instruments session with Xojo?
I will give this a try, Thanks for your input

The crashes you are describing are indicative of the IDE requesting memory and not getting it

You certainly could put the crash dumps into a feedback case for us to look at.

My feedback case apps keeps crashing when submitting:

image

crash dump 1

https://drive.google.com/file/d/1JpA9JrV5MfBWZZxHX15RtiGKOlc1ZB19/view?usp=sharing

crash dump 2

https://drive.google.com/file/d/1BAKLuBkinaqNQI__vcIZTUjXn3fSGwpj/view?usp=sharing

sample

https://drive.google.com/file/d/1pC4f4iGlLUv0pgdwsjn2lJwwETS8RY1z/view?usp=sharing

Do you have only the MBS plugins in the plugin folder that you need or all of them?

This is something to do, certainly, but I’m glad the question has also been asked to the forum, so if someone has this problem too, the answer may be available easier.

Which is understandable when it already uses 266 GB of RAM like the OP mentioned :wink:

Which I don’t understand. The IDE itself is at least as big as the described project and it routinely gets built as both Default and as Aggressive and we don’t run anywhere near this amount of RAM.

@Connor_Blackler, do you have lots of media assets in your project? Perhaps movies?

Have you ever tried to restart your pc? Clearly 250gb of memory is way out of the scope of what’s reasonable. I’ve never ever seen xojo take so much memory so or there is a leak somehwere or you have way too much respurce files in your executable packed.

Since you say “normal” compiles use only half the available memory (around 16gb?) there must be a leak somewhere.

What does " to no avail" mean? What else have you tried? Like removing pre and post build steps? How much RAM does the computer have?

The crash logs don’t really show much.

His first screenshot shows says that he has 32GB.

Yeah there xojo ide is using a whopping 250.8 GB !

This suggest macos is allowing such a swap file? I mean your system is clearly not up for that.

Yeah, in at least the cases where it compiles successfully its smooth as butter, even on aggressive its fine (generally takes 20 mins per OS).

No we don’t have any media assets in the project

The most success is to delete all Xojo cache files and restart, this resolves the crash for at least one compile.

Could XCode’s profiling with leaks give Xojo anything?

32gb of RAM,

Ill try removing pre and post build scripts,

We have a post build script that invokes a Xojo app that handles copying of specific resources into the new build, and other things, I wonder if there is a correlation between when we last switched this app from an older version of Xojo to a newer version and when the crashes start.

Thanks for the help, Ill keep digging