Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
454 views
in Technique[技术] by (71.8m points)

c# - Unity build is crashing

I am using system.drawing to generate image out of text. It works in Editor, but unfortunately it crashes. In build it creates some image of text, but if there are too many text it is not handling and crashing.

Same implementation for another app is working without any issue.

what can be the issue and how do i fix it? please help me!!

Below is the crash log:

Mono DLL loaded successfully at 'C:UsersSunilDesktopUnity1 IX0 IX VRIXPresenter SourceVRIX_Presenter_SourceBuildsv3MonoBleedingEdgeEmbedRuntimemono-2.0-bdwgc.dll'. Stack Trace of Crashed Thread 10036: ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 0000020BF3F498C0) ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 0000020BF3F498C0) 0x0000020BF3F498C0 (()) (function-name not available) 0x00007FFA900F8239 (gdiplus) GdipDeletePrivateFontCollection 0x0000028D5AA4DF9A (System.Drawing) System.Drawing.GDIPlus.GdipDeletePrivateFontCollection() 0x0000028D5AA4DED3 (System.Drawing) System.Drawing.Text.PrivateFontCollection.Dispose() 0x0000028D5AA4DE2B (System.Drawing) System.Drawing.Text.FontCollection.Finalize() 0x0000028D4E48A8F4 (mscorlib) System.Object.runtime_invoke_virtual_void__this__() 0x00007FFA2B2B3469 (mono-2.0-bdwgc) mono_gc_reference_queue_new 0x00007FFA2B4AB8B2 (mono-2.0-bdwgc) GC_gcj_malloc 0x00007FFA2B2B2369 (mono-2.0-bdwgc) mono_callspec_parse 0x00007FFA2B2757D8 (mono-2.0-bdwgc) mono_threads_set_shutting_down 0x00007FFA2B275566 (mono-2.0-bdwgc) mono_threads_set_shutting_down 0x00007FFAA6EB7C24 (KERNEL32) BaseThreadInitThunk 0x00007FFAA852D4D1 (ntdll) RtlUserThreadStart

Also i have tried running as Admin and it still crashes. enter image description here

Thanks Sunil


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...