今天打包安卓apk后运行总是闪退,死活找不到原因是什么,后来看了下log

2021-04-28 11:25:33.725 2571-2635/? W/System: Ignoring header Cookie because its value was null.
2021-04-28 11:25:38.178 3898-3915/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000008
2021-04-28 11:25:38.178 3898-3915/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-04-28 11:25:38.178 3898-3915/? E/CRASH: Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
2021-04-28 11:25:38.178 3898-3915/? E/CRASH: Build fingerprint: 'samsung/beyond1qlteue/beyond1q:7.1.2/PPR1.190810.011/7002100324:user/release-keys'
2021-04-28 11:25:38.178 3898-3915/? E/CRASH: Revision: '12'
2021-04-28 11:25:38.178 3898-3915/? E/CRASH: pid: 3898, tid: 3915, name: UnityMain  >>> com.cottongame.TheMirror <<<
2021-04-28 11:25:38.178 3898-3915/? E/CRASH:     r0 00000000  r1 b88fa23c  r2 b8580030  r3 00000100
2021-04-28 11:25:38.178 3898-3915/? E/CRASH:     r4 0000802a  r5 00000020  r6 00000005  r7 00000042
2021-04-28 11:25:38.178 3898-3915/? E/CRASH:     r8 b88fa24c  r9 00000005  sl 000000ff  fp 00000029
2021-04-28 11:25:38.178 3898-3915/? E/CRASH:     ip 00000000  sp b88f9fd8  lr 0492255c  pc 0492273c  cpsr 00000f4b
2021-04-28 11:25:38.178 3898-3915/? E/CRASH: backtrace:
2021-04-28 11:25:38.286 3898-3915/? E/CRASH:    #00  pc 0092273c  /data/app/com.cottongame.TheMirror-1/lib/arm/libunity.so
2021-04-28 11:25:38.286 3898-3915/? E/CRASH:    #01  pc 00922f44  /data/app/com.cottongame.TheMirror-1/lib/arm/libunity.so
2021-04-28 11:25:38.286 3898-3915/? E/CRASH:    #02  pc 00927fd4  /data/app/com.cottongame.TheMirror-1/lib/arm/libunity.so
2021-04-28 11:25:38.286 3898-3915/? E/CRASH:    #03  pc 000a6870   ( (wrapper managed-to-native) UnityEngine.TextCore.LowLevel.FontEngine:TryAddGlyphToTexture_Internal (uint,int,UnityEngine.TextCore.LowLevel.GlyphPackingMode,UnityEngine.TextCore.GlyphRect[],int&,UnityEngine.TextCore.GlyphRect[],int&,UnityEngine.TextCore.LowLevel.GlyphRenderMode,UnityEngine.Texture2D,UnityEngine.TextCore.LowLevel.GlyphMarshallingStruct&) {0xb+682096)
2021-04-28 11:25:38.286 3898-3915/? E/CRASH:    #04  il 0000006f  at (wrapper managed-to-native) UnityEngine.TextCore.LowLevel.FontEngine.TryAddGlyphToTexture_Internal (uint,int,UnityEngine.TextCore.LowLevel.GlyphPackingMode,UnityEngine.TextCore.GlyphRect[],int&,UnityEngine.TextCore.GlyphRect[],int&,UnityEngine.TextCore.LowLevel.GlyphRenderMode,UnityEngine.Texture2D,UnityEngine.TextCore.LowLevel.GlyphMarshallingStruct&) <0x0006f>
2021-04-28 11:25:38.286 3898-3915/? E/CRASH:    #05  il 000002ff  at UnityEngine.TextCore.LowLevel.FontEngine.TryAddGlyphToTexture (uint,int,UnityEngine.TextCore.LowLevel.GlyphPackingMode,System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect>,System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect>,UnityEngine.TextCore.LowLevel.GlyphRenderMode,UnityEngine.Texture2D,UnityEngine.TextCore.Glyph&) [0x000b4] in <163e411216264231ab224ffa90f1808d>:0
2021-04-28 11:25:38.287 3898-3915/? E/CRASH:    #06  il 000003df  at TMPro.TMP_FontAsset.TryAddCharacterInternal (uint,TMPro.TMP_Character&) [0x0013c] in <3c0c2e79c8964055aa96c1381102bc92>:0
2021-04-28 11:25:38.287 3898-3915/? E/CRASH:    #07  il 0000032f  at TMPro.TMP_FontAssetUtilities.GetCharacterFromFontAsset_Internal (uint,TMPro.TMP_FontAsset,bool,TMPro.FontStyles,TMPro.FontWeight,bool&,TMPro.TMP_FontAsset&) [0x0013d] in <3c0c2e79c8964055aa96c1381102bc92>:0
2021-04-28 11:25:38.287 3898-3915/? E/CRASH:    #08  il 0000010f  at TMPro.TMP_FontAssetUtilities.GetCharacterFromFontAsset (uint,TMPro.TMP_FontAsset,bool,TMPro.FontStyles,TMPro.FontWeight,bool&,TMPro.TMP_FontAsset&) [0x00020] in <3c0c2e79c8964055aa96c1381102bc92>:0
2021-04-28 11:25:38.287 3898-3915/? E/CRASH:    #09  il 00000093  at TMPro.TMP_Text.GetSpecialCharacters (TMPro.TMP_FontAsset) [0x00015] in <3c0c2e79c8964055aa96c1381102bc92>:0
2021-04-28 11:25:38.287 3898-3915/? E/CRASH:    #10  il 000003df  at TMPro.TextMeshPro.LoadFontAsset () [0x001fa] in <3c0c2e79c8964055aa96c1381102bc92>:0
2021-04-28 11:25:38.287 3898-3915/? E/CRASH:    #11  il 0000019f  at TMPro.TextMeshPro.Awake () [0x000f0] in <3c0c2e79c8964055aa96c1381102bc92>:0
2021-04-28 11:25:38.287 3898-3915/? E/CRASH:    #12  il 00000073  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x00073>--------- beginning of crash
2021-04-28 11:25:38.288 3898-3915/? A/libc: Fatal signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 3915 (UnityMain)
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG: Build fingerprint: 'samsung/dream2qltezh/dream2qltechn:7.1/N2G48H/G9550ZHU1AQEE:user/release-keys'
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG: Revision: '12'
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG: ABI: 'x86'
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG: pid: 3898, tid: 3915, name: UnityMain  >>> com.cottongame.TheMirror <<<
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG: signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG:     eax b72fdf00  ebx b88f95dc  ecx b88f96e8  edx 00000000
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG:     esi b72fdf00  edi ffffffff
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG:     xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG:     eip b72fdf06  ebp 10128040  esp b89feb8c  flags 00010246
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG: backtrace:
2021-04-28 11:25:38.304 3951-3951/? A/DEBUG:     #00 pc 00002f06  <anonymous:b72fb000>

看了闪退前的堆栈信息,显示UnityEngine.TextCore.LowLevel.FontEngine:TryAddGlyphToTexture_Internal以及TMPro.TMP_FontAsset.TryAddCharacterInternal。反编译看了下,似乎是TextMeshPro字体动态添加图集的时候报的错。

后来请教了万能的谷歌,找到了问题所在

大概意思是,因为字体设置了Dynamic动态更新图集(该功能是TextMeshPro功能,不需要自己打图集,而是有文字不在图集里会自动从字体里读取贴图更新到图集中),而字体文件找不到,所以在读取文字的时候导致失败了。

完整链接在此:https://forum.unity.com/threads/crash-on-builds-textcore-tryaddglyphtotexturesinglethread.1069676/

于是看了下字体文件设置信息,发现这里设置的是Arial字体,设备字体,不会跟着打包出去,所以猜测应该是因为这个原因。

最后解决方案是,将Atlas Population Mode改为Static解决了。

TextMeshPro打包后闪退报错UnityEngine.TextCore.LowLevel.FontEngine:TryAddGlyphToTexture_Internal相关推荐

  1. pyinstall 加密打包exe闪退报错不运行问题

    pyinstall 正常打包没问题, 为了加密安全用Cython混淆按照文档打包exe, 一直调试半天出错,加载一个模块一个空方法导入进去打包后就无法运行, 尝试换成当前文件下新建一个目录模块解决了执 ...

  2. 【Mac】mac 安装Axure RP 8 点不开 就一直跳-后闪退-报错Expected an Int64 but got a System.UInt64

    1.美图 2.概述 2.1 闪退 先确保软件已安装到[应用程序]中: 比如[CleanMyMac X]软件闪退,就输入以下命令然后回车即可:如下图: codesign -f -s - --deep / ...

  3. vue 打包后访问接口报错404 解决方案 (前提是在vue里使用了代理)

    vue 打包后访问接口报错404 解决方案 (前提是在vue里使用了代理) 参考文章: (1)vue 打包后访问接口报错404 解决方案 (前提是在vue里使用了代理) (2)https://www. ...

  4. 调用系统相机和相册出现闪退报错No Activity found to handle Intent

    调用系统相机和相册出现闪退报错No Activity found to handle Intent : 在开发安卓项目的时候遇到了一个问题,当手机调用系统相机和相册的时候会出现闪退的现象,根据报错常常 ...

  5. Maya安装后运行崩溃/闪退/报错

    第一次安装maya启动后出现报错窗口,maya已停止工作 maya2024 maya2023 maya2022 适用于大部分版本 查看日志发现是OpenCL导致,只需打开 C:\Username\Do ...

  6. 开料专家AutoCut Expert软件闪退报错访问OLE注册表的错误,如何解决?

    你好!报错信息 "访问 OLE 注册表" 的意思是程序在访问 OLE (Object Linking and Embedding) 对象的注册表时出现了问题. 你可以尝试以下解决方 ...

  7. Python3用selenium和webriver启动chrome闪退报错!求大佬指点!

    求问大佬!用Python3新学的准备用默认配置的chrome抓取百度的官网,安装了selenium和webdriver和chromedriver之后,输入程序运行,然后chrome刚打开就闪退,程序报 ...

  8. autocad 2014 闪退的一种解决办法: 点击菜单栏即闪退报错

    autocad 闪退的一种解决办法 遇到AutoCAD闪退,比较多的建议是勾选'显示隐藏文件',在相应的应用程序目录下找到Flexnet文件夹,删掉其下的所有文件,然后重新注册激活.还有就是重装-等等 ...

  9. vue项目打包后无法运行报错空白页面

    控制台报错: 解决方式:修改文件 config/index.js 找到 assetsPublicPath build: {...//assetsPublicPath: '/',assetsPublic ...

最新文章

  1. 化身“监工”的AI,我们该如何相处?
  2. html5掉落效果,HTML5 菜单掉落动效
  3. SQL Server---触发
  4. mysql缺少函数_Sqlserver的窗口函数的精彩应用之数据差距与数据岛-答案篇
  5. LeetCode 494. 目标和(DFS+DP)
  6. 学习Spring Boot:(五)使用 devtools热部署
  7. blender使用_使用Blender准备骨科手术
  8. python数据可视化编程实战 第2版 github_Python数据可视化编程实战(三):在Mac OS X上安装matplotlib...
  9. C++ struct 与 union
  10. linux islower_Python字符串islower()
  11. python添加音乐_python给视频添加背景音乐并改变音量的具体方法
  12. 断电后重启后报XFS文件系统错误 XFS (dm-0): Metadata I/O error
  13. python 制作 gif 动态图
  14. hmailserver + afterlogic 搭建webmail
  15. 使用BeautifulSoup爬取小猪短租的租房信息
  16. 《1024 程序员节》—我喂自己袋盐
  17. 解决执行`sudo apt-get install`命令出现`Could not get lock`错误
  18. C语言实现贪吃蛇小游戏1.0
  19. 联诚发总裁龙平芳受邀出席航城街道高质量发展暨招商推介大会!
  20. 高等代数 线性映射(第9章)5 有理标准形

热门文章

  1. 中南大学计算机学院张伟,中南大学2019年大学生创新创业年会计算机学院专场分会顺利举办...
  2. 新零售时代的新营销,OTT何故成为香饽饽?
  3. 软件开发 签合同问题 需要注意什么
  4. 智能车竞赛技术报告 | 节能信标组 - 中南民族大学 - 双子星
  5. 《Android 第一行代码》十一章 “服务的最佳实践”
  6. 你需要计算机管理员 提供的权限才能对此文件进行更...
  7. 使用TensorFlow2.0搭建DCGAN生成动漫头像(内含生成过程GIF图)
  8. linux体感游戏下载,篮球水上运动手机版下载-篮球水上运动游戏下载v1.1-Linux公社...
  9. 享有盛誉的R语言图书
  10. 在微信电商生态中,微信小商店处于什么位置?