为人方正实诚
为人方正实诚
  • 发布:2024-08-27 02:14
  • 更新:2024-09-30 10:16
  • 阅读:268

【报Bug】报JavaScript 的堆内存耗尽,分配内存失败,这个是啥问题

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: WIN11

HBuilderX类型: 正式

HBuilderX版本号: 4.24

手机系统: Android

手机系统版本号: Android 15

手机厂商: 小米

手机机型: note13

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

这是啥问题,为啥以前没有报这个,现在怎么开始报这个了,是我代码的问题还是编辑器或者uniapp的问题,如果是我代码的问题问什么以前从来没有啊

操作步骤:

保存调试几次必出现

预期结果:

不出现

实际结果:

出现

bug描述:

02:04:23.767 <--- Last few GCs --->
02:04:23.767 [11780:0000019E7DB30080] 1178193 ms: Scavenge (reduce) 2030.2 (2080.7) -> 2029.9 (2080.9) MB, 4.6 / 0.0 ms (average mu = 0.162, current mu = 0.127) allocation failure;
02:04:23.782 [11780:0000019E7DB30080] 1178325 ms: Scavenge (reduce) 2030.8 (2081.7) -> 2030.7 (2081.7) MB, 3.4 / 0.0 ms (average mu = 0.162, current mu = 0.127) allocation failure;
02:04:23.797 <--- JS stacktrace --->
02:04:23.813 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
02:04:24.601 1: 00007FF67A1C5AFF node_api_throw_syntax_error+174175
02:04:24.601 2: 00007FF67A148F26 v8::internal::wasm::WasmCode::safepoint_table_offset+59926
02:04:24.616 3: 00007FF67A14ABC0 v8::internal::wasm::WasmCode::safepoint_table_offset+67248
02:04:24.616 4: 00007FF67ABF6224 v8::Isolate::ReportExternalAllocationLimitReached+116
02:04:24.640 5: 00007FF67ABE15B2 v8::Isolate::Exit+674
02:04:24.648 6: 00007FF67AA6327C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
02:04:24.648 7: 00007FF67AA7055D v8::internal::Heap::PublishPendingAllocations+1117
02:04:24.664 8: 00007FF67AA6D5E7 v8::internal::Heap::PageFlagsAreConsistent+3367
02:04:24.679 9: 00007FF67AA5FD17 v8::internal::Heap::CollectGarbage+2039
02:04:24.679 10: 00007FF67AA6338B v8::internal::Heap::FinalizeIncrementalMarkingAtomically+267
02:04:24.695 11: 00007FF67AA57EDE v8::base::CPU::has_thumb2+494
02:04:24.695 12: 00007FF67A0DD953 ENGINE_get_load_privkey_function+4835
02:04:24.711 13: 00007FF67A0DC2F6 v8::CTypeInfoBuilder<void>::Build+21526
02:04:24.726 14: 00007FF67A221E4B uv_update_time+491
02:04:24.726 15: 00007FF67A221992 uv_run+1266
02:04:24.742 16: 00007FF67A1F4692 node::SpinEventLoop+322
02:04:24.742 17: 00007FF67A1012F8 ENGINE_get_load_privkey_function+150664
02:04:24.758 18: 00007FF67A185A6E node::InitializeOncePerProcess+2862
02:04:24.773 19: 00007FF67A187403 node::Start+835
02:04:24.805 20: 00007FF679F8C12C AES_cbc_encrypt+145244
02:04:24.805 21: 00007FF67B215DE4 inflateValidate+19092
02:04:24.820 22: 00007FFCB1F655A0 BaseThreadInitThunk+16
02:04:24.836 23: 00007FFCB29A485B RtlUserThreadStart+43


2024-08-27 02:14 负责人:无 分享
已邀请:
l***@163.com

l***@163.com

解决了吗

要回复问题请先登录注册