Occasional Hard Crash

Pretty sure I’ve had this on b12, but I’m currently trying b13. M1 Pro MacBook Pro. Log below (case 1413432). Unity is intermittently hard crashing (not hanging).

=================================================================
    External Debugger Dump:
=================================================================

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1636218c0):0x1636218b0  68 02 40 f9 48 01 00 b4 68 02 40 f9 08 01 40 f9  h.@.H...h.@...@.
0x1636218c0  01 01 40 f9 e0 03 14 aa 75 2f fe 97 80 00 00 34  ..@.....u/.....4
0x1636218d0  68 02 40 f9 d5 01 00 b4 a8 02 00 f9 e0 03 15 aa  h.@.............
0x1636218e0  fd 7b 42 a9 f4 4f 41 a9 f6 57 c3 a8 c0 03 5f d6  .{B..OA..W...._.

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at System.Object:__icall_wrapper_mono_marshal_isinst_with_cache <0x00007>
      at System.Object:__castclass_with_cache <0x0006f>
      at Enumerator:MoveNext <0x00113>
      at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Trim <0x001df>
      at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Gen2GcCallbackFunc <0x00043>
      at System.Gen2GcCallback:Finalize <0x0007f>
      at System.Object:runtime_invoke_virtual_void__this__ <0x00073>
=================================================================
Obtained 0 stack frames.
Launching bug reporter
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:8
`));q&&this.exceptions.handle(q),F&&this.rejections.handle(F)}isLevelEnabled(t){let r=CC(this.levels,t);if(r===null)return!1;let i=CC(this.levels,this.level);if(i===null)return!1;if(!this.transports||this.transports.length===0)return i>=r;let s=this.transports.findIndex(n=>{let a=CC(this.levels,n.level);return a===null&&(a=i),a>=r});return s!==-1}log(t,r,...i){if(arguments.length===1)return t[rl]=t.level,this._addDefaultMeta(t),this.write(t),this;if(arguments.length===2)return r&&typeof r=="object"?(r[rl]=r.level=t,this._addDefaultMeta(r),this.write(r),this):(this.write({[rl]:t,level:t,message:r}),this);let[s]=i;if(typeof s=="object"&&s!==null){let n=r&&r.match&&r.match(d_e);if(!n){let a=Object.assign({},this.defaultMeta,s,{[rl]:t,[g$]:i,level:t,message:r});return s.message&&(a.message=`${a.message} ${s.message}`),s.stack&&(a.stack=s.stack),this.write(a),this}}return this.write(Object.assign({},this.defaultMeta,{[rl]:t,[g$]:i,level:t,message:r})),this}_transform(t,r,i){if(this.silent)return i();t[rl]||(t[rl]=t.level),!this.levels[t[rl]]&&this.levels[t[rl]]!==0&&console.error("[winston] Unknown logger level: %s",t[rl]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports %j",t);try{this.push(this.format.transform(t,this.format.options))}catch(s){throw s}finally{i()}}_final(t){let r=this.transports.slice();m$(r,(i,s)=>{if(!i||i.finished)return setImmediate(s);i.once("finish",s),i.end()},t)}add(t){let r=!y$(t)||t.log.length>2?new u_e({transport:t}):t;if(!r._writableState||!r._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",r),this._onEvent("warn",r),this.pipe(r),t.handleExceptions&&this.exceptions.handle(),t.handleRejections&&this.rejections.handle(),this}remove(t){if(!t)return this;let r=t;return(!y$(t)||t.log.length>2)&&(r=this.transports.filter(i=>i.transport===t)[0]),r&&this.unpipe(r),this}clear(){return this.unpipe(),this}close(){return this.clear(),this.emit("close"),this}setLevels(){h_e.deprecated("setLevels")}query(t,r){typeof t=="function"&&(r=t,t={}),t=t||{};let i={},s=Object.assign({},t.query||{});function n(o,u){t.query&&typeof o.formatQuery=="function"&&(t.query=o.formatQuery(s)),o.query(t,(d,m)=>{if(d)return u(d);typeof o.formatResults=="function"&&(m=o.formatResults(m,t.format)),u(null,m)})}function a(o,u){n(o,(d,m)=>{u&&(m=d||m,m&&(i[o.name]=m),u()),u=null})}m$(this.transports.filter(o=>!!o.query),a,()=>r(null,i))}stream(t={}){let r=new a_e,i=[];return r._streams=i,r.destroy=()=>{let s=i.length;for(;s--;)i[s].destroy()},this.transports.filter(s=>!!s.stream).forEach(s=>{let n=s.stream(t);if(!n)return;i.push(n),n.on("log",a=>{a.transport=a.transport||[],a.transport.push(s.name),r.emit("log",a)}),n.on("error",a=>{a.transport=a.transport||[],a.transport.push(s.name),r.emit("error",a)})}),r}startTimer(){return new f_e(this)}profile(t,...r){let i=Date.now();if(this.profilers[t]){let s=this.profilers[t];delete this.profilers[t],typeof r[r.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),r.pop());let n=typeof r[r.length-1]=="object"?r.pop():{};return n.level=n.level||"info",n.durationMs=i-s,n.message=n.message||t,this.write(n)}return this.profilers[t]=i,this}handleExceptions(...t){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...t)}unhandleExceptions(...t){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...t)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

s [Error]: write after end
    at Sye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:18965)
    at kv.Rn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:19415)
    at UD.exports.log (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:76414)
    at UD.exports.Ev._write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:1152)
    at bT (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:24988)
    at Eme (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:24858)
    at UD.exports.Gn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:23657)
    at t.f (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:37527)
    at t.emit (node:events:402:35)
    at XT (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:33624)
Emitted 'error' event on kv instance at:
    at eye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:14011)
    at Sye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:18973)
    at kv.Rn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:19415)
    [... lines matching original stack trace ...]
    at t.emit (node:events:402:35)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QObject(0x600000c54240), parent's thread is QThread(0x600001b080c0), current thread is Thread(0x600001727960)

Just happened again, the dump has slightly more info. So it looks like it’s maybe not a Unity issue?

=================================================================
    Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
    Native stacktrace:
=================================================================
    0x2c4f47724 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_dump_native_crash_info
    0x2c4f09d00 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_handle_native_crash
    0x2c4e9262c - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_sigsegv_signal_handler_debug
    0x1b83b54c4 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
    0x2c50218a8 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_object_handle_isinst
    0x2c502197c - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_object_isinst_checked
    0x2c4fee628 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_marshal_isinst_with_cache
    0x13d535bdc - Unknown
    0x37fbb8d40 - Unknown
    0x37fe6b714 - Unknown
    0x37fe6ae90 - Unknown
    0x37fe6ac34 - Unknown
    0x37fe6a6d0 - Unknown
    0x37fe6a25c - Unknown
    0x2c50746f8 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_gc_run_finalize
    0x2c50b4660 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : GC_invoke_finalizers
    0x2c50764f8 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : finalizer_thread
    0x2c503d4d0 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : start_wrapper_internal
    0x2c503d37c - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : start_wrapper
    0x2c50bcca0 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : GC_inner_start_routine
    0x2c50bcc28 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : GC_start_routine
    0x1b839e26c - /usr/lib/system/libsystem_pthread.dylib : _pthread_start
    0x1b839908c - /usr/lib/system/libsystem_pthread.dylib : thread_start

=================================================================
    Telemetry Dumper:
=================================================================
Pkilling 0x11277709312x from 0x11902578688x
Pkilling 0x6441218048x from 0x11902578688x
Pkilling 0x11274842112x from 0x11902578688x
Pkilling 0x13283880960x from 0x11902578688x
Pkilling 0x11276562432x from 0x11902578688x
Pkilling 0x6441791488x from 0x11902578688x
Pkilling 0x11275415552x from 0x11902578688x
Pkilling 0x11277135872x from 0x11902578688x
Pkilling 0x4407412096x from 0x11902578688x
Pkilling 0x13300379648x from 0x11902578688x
Pkilling 0x11904724992x from 0x11902578688x
Pkilling 0x12698939392x from 0x11902578688x
Pkilling 0x6442364928x from 0x11902578688x
Pkilling 0x11275988992x from 0x11902578688x
Entering thread summarizer pause from 0x11902578688x
Finished thread summarizer pause from 0x11902578688x.
Failed to create breadcrumb file (null)/crash_hash_0x9adc84b52
debugger-agent: Unable to listen on 92

Waiting for dumping threads to resume

=================================================================
    External Debugger Dump:
=================================================================

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x2c50218c0):0x2c50218b0  68 02 40 f9 48 01 00 b4 68 02 40 f9 08 01 40 f9  h.@.H...h.@...@.
0x2c50218c0  01 01 40 f9 e0 03 14 aa 75 2f fe 97 80 00 00 34  ..@.....u/.....4
0x2c50218d0  68 02 40 f9 d5 01 00 b4 a8 02 00 f9 e0 03 15 aa  h.@.............
0x2c50218e0  fd 7b 42 a9 f4 4f 41 a9 f6 57 c3 a8 c0 03 5f d6  .{B..OA..W...._.

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at System.Object:__icall_wrapper_mono_marshal_isinst_with_cache <0x00007>
      at System.Object:__castclass_with_cache <0x0006f>
      at Enumerator:MoveNext <0x00113>
      at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Trim <0x001df>
      at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Gen2GcCallbackFunc <0x00043>
      at System.Gen2GcCallback:Finalize <0x0007f>
      at System.Object:runtime_invoke_virtual_void__this__ <0x00073>
=================================================================
Obtained 0 stack frames.
Launching bug reporter
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:8
`));q&&this.exceptions.handle(q),F&&this.rejections.handle(F)}isLevelEnabled(t){let r=CC(this.levels,t);if(r===null)return!1;let i=CC(this.levels,this.level);if(i===null)return!1;if(!this.transports||this.transports.length===0)return i>=r;let s=this.transports.findIndex(n=>{let a=CC(this.levels,n.level);return a===null&&(a=i),a>=r});return s!==-1}log(t,r,...i){if(arguments.length===1)return t[rl]=t.level,this._addDefaultMeta(t),this.write(t),this;if(arguments.length===2)return r&&typeof r=="object"?(r[rl]=r.level=t,this._addDefaultMeta(r),this.write(r),this):(this.write({[rl]:t,level:t,message:r}),this);let[s]=i;if(typeof s=="object"&&s!==null){let n=r&&r.match&&r.match(d_e);if(!n){let a=Object.assign({},this.defaultMeta,s,{[rl]:t,[g$]:i,level:t,message:r});return s.message&&(a.message=`${a.message} ${s.message}`),s.stack&&(a.stack=s.stack),this.write(a),this}}return this.write(Object.assign({},this.defaultMeta,{[rl]:t,[g$]:i,level:t,message:r})),this}_transform(t,r,i){if(this.silent)return i();t[rl]||(t[rl]=t.level),!this.levels[t[rl]]&&this.levels[t[rl]]!==0&&console.error("[winston] Unknown logger level: %s",t[rl]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports %j",t);try{this.push(this.format.transform(t,this.format.options))}catch(s){throw s}finally{i()}}_final(t){let r=this.transports.slice();m$(r,(i,s)=>{if(!i||i.finished)return setImmediate(s);i.once("finish",s),i.end()},t)}add(t){let r=!y$(t)||t.log.length>2?new u_e({transport:t}):t;if(!r._writableState||!r._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",r),this._onEvent("warn",r),this.pipe(r),t.handleExceptions&&this.exceptions.handle(),t.handleRejections&&this.rejections.handle(),this}remove(t){if(!t)return this;let r=t;return(!y$(t)||t.log.length>2)&&(r=this.transports.filter(i=>i.transport===t)[0]),r&&this.unpipe(r),this}clear(){return this.unpipe(),this}close(){return this.clear(),this.emit("close"),this}setLevels(){h_e.deprecated("setLevels")}query(t,r){typeof t=="function"&&(r=t,t={}),t=t||{};let i={},s=Object.assign({},t.query||{});function n(o,u){t.query&&typeof o.formatQuery=="function"&&(t.query=o.formatQuery(s)),o.query(t,(d,m)=>{if(d)return u(d);typeof o.formatResults=="function"&&(m=o.formatResults(m,t.format)),u(null,m)})}function a(o,u){n(o,(d,m)=>{u&&(m=d||m,m&&(i[o.name]=m),u()),u=null})}m$(this.transports.filter(o=>!!o.query),a,()=>r(null,i))}stream(t={}){let r=new a_e,i=[];return r._streams=i,r.destroy=()=>{let s=i.length;for(;s--;)i[s].destroy()},this.transports.filter(s=>!!s.stream).forEach(s=>{let n=s.stream(t);if(!n)return;i.push(n),n.on("log",a=>{a.transport=a.transport||[],a.transport.push(s.name),r.emit("log",a)}),n.on("error",a=>{a.transport=a.transport||[],a.transport.push(s.name),r.emit("error",a)})}),r}startTimer(){return new f_e(this)}profile(t,...r){let i=Date.now();if(this.profilers[t]){let s=this.profilers[t];delete this.profilers[t],typeof r[r.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),r.pop());let n=typeof r[r.length-1]=="object"?r.pop():{};return n.level=n.level||"info",n.durationMs=i-s,n.message=n.message||t,this.write(n)}return this.profilers[t]=i,this}handleExceptions(...t){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...t)}unhandleExceptions(...t){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...t)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

s [Error]: write after end
    at Sye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:18965)
    at kv.Rn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:19415)
    at UD.exports.log (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:76414)
    at UD.exports.Ev._write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:1152)
    at bT (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:24988)
    at Eme (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:24858)
    at UD.exports.Gn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:23657)
    at t.f (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:37527)
    at t.emit (node:events:402:35)
    at XT (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:33624)
Emitted 'error' event on kv instance at:
    at eye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:14011)
    at Sye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:18973)
    at kv.Rn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:19415)
    [... lines matching original stack trace ...]
    at t.emit (node:events:402:35)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QObject(0x600003da4340), parent's thread is QThread(0x600002af4100), current thread is Thread(0x6000026aaaf0)

Same crash also happens to us. We’re using 2021.2.15f1

We’re using ArrayPool.Shared in the project, TlsOverPerCoreLockedStacksArrayPool is the implementation for that if I’m not mistaken. Is this related to rented arrays not returned back I’m wondering

or something related to EnterPlayModeOptions, since ArrayPool.Shared is static

Still got this using b14. I’ve had it on two separate projects too so I’m starting to think maybe it is a Unity / Apple Silicon thing.

@Tautvydas-Zilys how do I go about finding out if this is a ‘me’ issue or a ‘you’ issue? Are there any clues you can see if the crash logs above?

Thanks!

It’s unclear. The stacktrace seems FUBAR, it’s not complete. I suspect it could be caused by memory corruption, but it’s hard to tell what is corrupting it. You could try running Unity with “-debugallocator” and see if you can get a crash to happen reliably.

OK I’ll give that a go, thanks. I’ve been testing the 2022.1 betas since b3 or something, and this hasn’t always been happening, so something has changed. I’ll see if I can get some more info. Thanks again.

We’ve been seeing this same crash since moving from 21.2.8 to 21.2.13. Interestingly we’ve also seen it on il2cpp on both win64 and console.

In the debugger I can see an array in TlsOverPerCoreLockedStacksArrayPool where one of the entries doesn’t point to a valid object, or sometimes points to unallocated memory. So it looks like either corruption or some sort of runtime bug.

Hard crash due to TlsOverPerCoreLockedStacksArrayPool also occurred in Unity 2021.3.0f1. I can’t figure out what make this, but it makes that editor and linux build crashes sometimes.

Here is part of crash log:
Log

System.Runtime.CompilerServices.ConditionalWeakTable2[TKey,TValue].Add (TKey key, TValue value) (at <00000000000000000000000000000000>:0) System.Buffers.TlsOverPerCoreLockedStacksArrayPool1[T].Return (T[ ] array, System.Boolean clearArray) (at <00000000000000000000000000000000>:0)
System.IO.Stream.CopyToAsyncInternal (System.IO.Stream destination, System.Int32 bufferSize, System.Threading.CancellationToken cancellationToken) (at <00000000000000000000000000000000>:0)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) (at <00000000000000000000000000000000>:0)
System.IO.Stream.CopyToAsyncInternal (System.IO.Stream destination, System.Int32 bufferSize, System.Threading.CancellationToken cancellationToken) (at <00000000000000000000000000000000>:0)
System.Net.Http.HttpContent.LoadIntoBufferAsync (System.Int64 maxBufferSize) (at <00000000000000000000000000000000>:0)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) (at <00000000000000000000000000000000>:0)
System.Net.Http.HttpContent.LoadIntoBufferAsync (System.Int64 maxBufferSize) (at <00000000000000000000000000000000>:0)
System.Net.Http.HttpClient.SendAsyncWorker (System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption,

We have recently received a bug report about this - if any of you reported it, thanks! Here’s the issue tracker link: Unity Issue Tracker - Editor crashes intermittently on mono_object_isinst when closing it in batch mode or when building

We are working on a fix, but a potential workaround is disabling incremental garbage collection in player settings and then restarting the editor.

The 2022.2.0a13 release notes have a note about a fix that sounds like it might be for this issue:

  • IL2CPP: Fixed a rare incremental GC crash on Windows. (1411601)

  • This has already been backported to older releases and will not be mentioned in final notes*

  • Mono: Fixed rare incremental GC crash on Windows. (1411601)

  • This has already been backported to older releases and will not be mentioned in final notes.*

The linked bug is unfortunately private. Could you confirm if this is the same issue and, if so, which (if any) versions it is available in at this point? If it has not made its way into a release, do you have an estimate for when it might?

I marked it public now, this link should start working in several hours: Unity Issue Tracker - Incremental GC Pushes Invalid Stack Range on Windows

I believe this is a slightly different issue. But the original issue is being backported too.

1 Like

We are working currently on 2022.2.5 and macOS Ventura 13.2.1. I don’t have problem with my intel chip, but looks like my co worker is on M1 and it happens frequently there.
Any news on this problem?

I am working currently on 2021.3.1f1 and macOS Ventura 13.2.1.
Any news on this problem?

M1 editor crash issue may be different thing.