洛岸书 2023-10-25 15:31 采纳率: 50%
浏览 60
已结题

为什么unity导出webgl后在网页上打开会报错


An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
uncaught exception: abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking") at jsStackTrace (20231025.wasm.framework.unityweb:2:15317)
stackTrace (20231025.wasm.framework.unityweb:2:15488)
onAbort@http://IP:8050/Build/UnityLoader.js:4:9380
abort (20231025.wasm.framework.unityweb:2:594511)
_dlopen (20231025.wasm.framework.unityweb:2:228217)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[86376]:0x192af66 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[86375]:0x192ae18)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[86374]:0x192ac7b (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[87106]:0x1951282)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[85788]:0x19103bb (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[65600]:0x1489831)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[65599]:0x148979d (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[35121]:0xe62c46)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[35163]:0xe6646f (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[35161]:0xe66141)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[35160]:0xe66098 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[35159]:0xe66089)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[44522]:0x1021b8c (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[44523]:0x1021bc5)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[24034]:0xc23234 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[84659]:0x18de8d0)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[84661]:0x18dea7b (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[44745]:0x10296e8)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[24050]:0xc23518 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[84659]:0x18de8d0)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[84679]:0x18df806 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[85153]:0x18f4e5c)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[8468]:0x3f8149 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[8470]:0x3f82a5)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[8773]:0x40f893 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9008]:0x422729)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9007]:0x422481 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9006]:0x4223db)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[8948]:0x41d013 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[3876]:0x242fc7)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[3873]:0x242800 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[8009]:0x3c5b56)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[7937]:0x3bc85d (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9119]:0x42e921)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9118]:0x42e3fe (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9116]:0x42e2e5)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9112]:0x42dc18 (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9106]:0x42d769)
@blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9050]:0x424dfc (blob:http://IP:8050/c8d2d190-0543-4a5d-8c41-07e74bd45837 line 2 > WebAssembly.instantiate:wasm-function[9049]:0x424932)
c2dd27380d30a44dff03c9588d5638a2 [UnityLoader.c2dd27380d30a44dff03c9588d5638a2/Module._main] (20231025.wasm.framework.unityweb:2:527595)
callMain (20231025.wasm.framework.unityweb:2:593221)
doRun (20231025.wasm.framework.unityweb:2:593906)
run (20231025.wasm.framework.unityweb:2:594085)
runCaller (20231025.wasm.framework.unityweb:2:592848)
removeRunDependency (20231025.wasm.framework.unityweb:2:21877)
processDataJob@http://IP:8050/Build/UnityLoader.js:4:4227
schedule/a.callback@http://IP:8050/Build/UnityLoader.js:3:19225
  • 写回答

2条回答 默认 最新

  • K_n_i_g_h_t_1990 2023-10-25 18:13
    关注

    您的Unity项目中使用了不支持WebGL的插件或库,例如dlopen函数。这会导致在运行时抛出异常,并显示错误信息。要解决这个问题,您需要检查您的项目中是否有使用这些不兼容的功能,并尝试替换或删除它们。
    您的Web服务器没有正确配置响应头,导致浏览器无法正确加载WebGL构建文件。这会导致在加载时出现错误,并显示错误信息。要解决这个问题,您需要确保您的Web服务器能够支持WebGL构建文件的压缩格式,并且能够正确设置Content-Type和Content-Encoding响应头。
    您的浏览器不支持WebGL或者没有启用WebGL功能,导致无法渲染WebGL内容。这会导致在运行时出现错误,并显示错误信息。要解决这个问题,您需要确保您的浏览器版本能够支持WebGL,并且在浏览器设置中启用WebGL功能。有关更多信息

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 1月17日
  • 已采纳回答 1月9日
  • 已采纳回答 1月9日
  • 修改了问题 10月25日
  • 展开全部

悬赏问题

  • ¥15 有偿求苍穹外卖环境配置
  • ¥15 代码在keil5里变成了这样怎么办啊,文件图像也变了,
  • ¥20 Ue4.26打包win64bit报错,如何解决?(语言-c++)
  • ¥15 clousx6整点报时指令怎么写
  • ¥30 远程帮我安装软件及库文件
  • ¥15 关于#自动化#的问题:如何通过电脑控制多相机同步拍照或摄影(相机或者摄影模组数量大于60),并将所有采集的照片或视频以一定编码规则存放至规定电脑文件夹内
  • ¥20 深信服vpn-2050这台设备如何配置才能成功联网?
  • ¥15 Arduino的wifi连接,如何关闭低功耗模式?
  • ¥15 Android studio 无法定位adb是什么问题?
  • ¥15 C#连接不上服务器,