Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Occasional Hard Crash

Discussion in '2022.1 Beta' started by adslitw, Mar 24, 2022.

  1. adslitw

    adslitw

    Joined:
    Aug 23, 2012
    Posts:
    275
    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).

    Code (CSharp):
    1. =================================================================
    2.     External Debugger Dump:
    3. =================================================================
    4.  
    5. =================================================================
    6.     Basic Fault Address Reporting
    7. =================================================================
    8. 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.@...@.
    9. 0x1636218c0  01 01 40 f9 e0 03 14 aa 75 2f fe 97 80 00 00 34  ..@.....u/.....4
    10. 0x1636218d0  68 02 40 f9 d5 01 00 b4 a8 02 00 f9 e0 03 15 aa  h.@.............
    11. 0x1636218e0  fd 7b 42 a9 f4 4f 41 a9 f6 57 c3 a8 c0 03 5f d6  .{B..OA..W...._.
    12.  
    13. =================================================================
    14.     Managed Stacktrace:
    15. =================================================================
    16.       at <unknown> <0xffffffff>
    17.       at System.Object:__icall_wrapper_mono_marshal_isinst_with_cache <0x00007>
    18.       at System.Object:__castclass_with_cache <0x0006f>
    19.       at Enumerator:MoveNext <0x00113>
    20.       at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Trim <0x001df>
    21.       at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Gen2GcCallbackFunc <0x00043>
    22.       at System.Gen2GcCallback:Finalize <0x0007f>
    23.       at System.Object:runtime_invoke_virtual_void__this__ <0x00073>
    24. =================================================================
    25. Obtained 0 stack frames.
    26. Launching bug reporter
    27. Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
    28. /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:8
    29. `));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(`
    30.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    31.  
    32. s [Error]: write after end
    33.     at Sye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:18965)
    34.     at kv.Rn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:19415)
    35.     at UD.exports.log (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:76414)
    36.     at UD.exports.Ev._write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:1152)
    37.     at bT (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:24988)
    38.     at Eme (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:24858)
    39.     at UD.exports.Gn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:23657)
    40.     at t.f (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:37527)
    41.     at t.emit (node:events:402:35)
    42.     at XT (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:33624)
    43. Emitted 'error' event on kv instance at:
    44.     at eye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:14011)
    45.     at Sye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:18973)
    46.     at kv.Rn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:19415)
    47.     [... lines matching original stack trace ...]
    48.     at t.emit (node:events:402:35)
    49. QObject: Cannot create children for a parent that is in a different thread.
    50. (Parent is QObject(0x600000c54240), parent's thread is QThread(0x600001b080c0), current thread is Thread(0x600001727960)
    51.  
     
  2. adslitw

    adslitw

    Joined:
    Aug 23, 2012
    Posts:
    275
    Just happened again, the dump has slightly more info. So it looks like it's maybe not a Unity issue?

    Code (CSharp):
    1. =================================================================
    2.     Native Crash Reporting
    3. =================================================================
    4. Got a segv while executing native code. This usually indicates
    5. a fatal error in the mono runtime or one of the native libraries
    6. used by your application.
    7. =================================================================
    8.  
    9. =================================================================
    10.     Native stacktrace:
    11. =================================================================
    12.     0x2c4f47724 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_dump_native_crash_info
    13.     0x2c4f09d00 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_handle_native_crash
    14.     0x2c4e9262c - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_sigsegv_signal_handler_debug
    15.     0x1b83b54c4 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
    16.     0x2c50218a8 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_object_handle_isinst
    17.     0x2c502197c - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_object_isinst_checked
    18.     0x2c4fee628 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_marshal_isinst_with_cache
    19.     0x13d535bdc - Unknown
    20.     0x37fbb8d40 - Unknown
    21.     0x37fe6b714 - Unknown
    22.     0x37fe6ae90 - Unknown
    23.     0x37fe6ac34 - Unknown
    24.     0x37fe6a6d0 - Unknown
    25.     0x37fe6a25c - Unknown
    26.     0x2c50746f8 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_gc_run_finalize
    27.     0x2c50b4660 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : GC_invoke_finalizers
    28.     0x2c50764f8 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : finalizer_thread
    29.     0x2c503d4d0 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : start_wrapper_internal
    30.     0x2c503d37c - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : start_wrapper
    31.     0x2c50bcca0 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : GC_inner_start_routine
    32.     0x2c50bcc28 - /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : GC_start_routine
    33.     0x1b839e26c - /usr/lib/system/libsystem_pthread.dylib : _pthread_start
    34.     0x1b839908c - /usr/lib/system/libsystem_pthread.dylib : thread_start
    35.  
    36. =================================================================
    37.     Telemetry Dumper:
    38. =================================================================
    39. Pkilling 0x11277709312x from 0x11902578688x
    40. Pkilling 0x6441218048x from 0x11902578688x
    41. Pkilling 0x11274842112x from 0x11902578688x
    42. Pkilling 0x13283880960x from 0x11902578688x
    43. Pkilling 0x11276562432x from 0x11902578688x
    44. Pkilling 0x6441791488x from 0x11902578688x
    45. Pkilling 0x11275415552x from 0x11902578688x
    46. Pkilling 0x11277135872x from 0x11902578688x
    47. Pkilling 0x4407412096x from 0x11902578688x
    48. Pkilling 0x13300379648x from 0x11902578688x
    49. Pkilling 0x11904724992x from 0x11902578688x
    50. Pkilling 0x12698939392x from 0x11902578688x
    51. Pkilling 0x6442364928x from 0x11902578688x
    52. Pkilling 0x11275988992x from 0x11902578688x
    53. Entering thread summarizer pause from 0x11902578688x
    54. Finished thread summarizer pause from 0x11902578688x.
    55. Failed to create breadcrumb file (null)/crash_hash_0x9adc84b52
    56. debugger-agent: Unable to listen on 92
    57.  
    58. Waiting for dumping threads to resume
    59.  
    60. =================================================================
    61.     External Debugger Dump:
    62. =================================================================
    63.  
    64. =================================================================
    65.     Basic Fault Address Reporting
    66. =================================================================
    67. 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.@...@.
    68. 0x2c50218c0  01 01 40 f9 e0 03 14 aa 75 2f fe 97 80 00 00 34  ..@.....u/.....4
    69. 0x2c50218d0  68 02 40 f9 d5 01 00 b4 a8 02 00 f9 e0 03 15 aa  h.@.............
    70. 0x2c50218e0  fd 7b 42 a9 f4 4f 41 a9 f6 57 c3 a8 c0 03 5f d6  .{B..OA..W...._.
    71.  
    72. =================================================================
    73.     Managed Stacktrace:
    74. =================================================================
    75.       at <unknown> <0xffffffff>
    76.       at System.Object:__icall_wrapper_mono_marshal_isinst_with_cache <0x00007>
    77.       at System.Object:__castclass_with_cache <0x0006f>
    78.       at Enumerator:MoveNext <0x00113>
    79.       at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Trim <0x001df>
    80.       at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Gen2GcCallbackFunc <0x00043>
    81.       at System.Gen2GcCallback:Finalize <0x0007f>
    82.       at System.Object:runtime_invoke_virtual_void__this__ <0x00073>
    83. =================================================================
    84. Obtained 0 stack frames.
    85. Launching bug reporter
    86. Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
    87. /Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:8
    88. `));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(`
    89.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    90.  
    91. s [Error]: write after end
    92.     at Sye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:18965)
    93.     at kv.Rn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:19415)
    94.     at UD.exports.log (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:76414)
    95.     at UD.exports.Ev._write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:1152)
    96.     at bT (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:24988)
    97.     at Eme (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:24858)
    98.     at UD.exports.Gn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:3:23657)
    99.     at t.f (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:37527)
    100.     at t.emit (node:events:402:35)
    101.     at XT (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:33624)
    102. Emitted 'error' event on kv instance at:
    103.     at eye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:14011)
    104.     at Sye (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:18973)
    105.     at kv.Rn.write (/Applications/Unity/Hub/Editor/2022.1.0b13/Unity.app/Contents/Resources/PackageManager/Server/server/app.js:4:19415)
    106.     [... lines matching original stack trace ...]
    107.     at t.emit (node:events:402:35)
    108. QObject: Cannot create children for a parent that is in a different thread.
    109. (Parent is QObject(0x600003da4340), parent's thread is QThread(0x600002af4100), current thread is Thread(0x6000026aaaf0)
    110.  
     
  3. vectorized-runner

    vectorized-runner

    Joined:
    Jan 22, 2018
    Posts:
    398
    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
     
  4. adslitw

    adslitw

    Joined:
    Aug 23, 2012
    Posts:
    275
    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!
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    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.
     
  6. adslitw

    adslitw

    Joined:
    Aug 23, 2012
    Posts:
    275
    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.
     
  7. Corngood

    Corngood

    Joined:
    Nov 15, 2012
    Posts:
    20
    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.
     
  8. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011
    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:
    System.Runtime.CompilerServices.ConditionalWeakTable`2[TKey,TValue].Add (TKey key, TValue value) (at <00000000000000000000000000000000>:0)
    System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1[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,
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
  10. shatjaso

    shatjaso

    Joined:
    Aug 30, 2021
    Posts:
    1
    The 2022.2.0a13 release notes have a note about a fix that sounds like it might be for this issue:
    https://unity3d.com/unity/alpha/2022.2.0a13
    • 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?
     
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    shatjaso likes this.
  12. Nijamyang

    Nijamyang

    Joined:
    Aug 8, 2012
    Posts:
    34
    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?
     
  13. CloudPong

    CloudPong

    Joined:
    Mar 2, 2023
    Posts:
    1
    I am working currently on 2021.3.1f1 and macOS Ventura 13.2.1.
    Any news on this problem?
     
  14. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011