Tencent / Tencent/puerts

[UE] Bug: Shipping模式运行v8-hot-reload-kit监听崩溃

Open
#2,000 5 comments 0 reactions 1 assignee View on GitHub

@chexiongsheng is already working on this.

Since Mar 14, 2025.

bug Unreal
Dominant language
C++
Stars
6.2k
Forks
862
Avg merge
3d 9h
Merged PRs (30d)
2

Description

前置阅读 | Pre-reading
Puer的版本 | Puer Version

1.0.5

UE的版本 | UE Version

UnrealEngine5.1

发生在哪个平台 | Platform

win

错误信息 | Error Message

Image

问题重现 | Bug reproduce
[Shipping模式] 使用v8-hot-reload-kit时触发内存访问违例(0x00000000000000D0)

问题类型

  • 崩溃(Crash)
  • 功能异常(Functionality)
  • 性能问题(Performance)
环境配置
组件 版本
PuerTS 1.0.5
v8-hot-reload-kit 0.0.15
编译器 MSVC 2022 (v17.13.0)
构建模式 Shipping (LTO/O2)
操作系统 Windows 10 专业版 22H2
关键代码上下文

any_executor.hpp
#if defined(ASIO_HAS_MOVE)

any_executor(any_executor&& other) ASIO_NOEXCEPT
: detail::any_executor_base(
static_cast<any_executor_base&&>(
static_cast<any_executor_base&>(other))),
prop_fns_(other.prop_fns_)
{
other.prop_fns_ = prop_fns_table();
}
any_executor& operator=(any_executor&& other) ASIO_NOEXCEPT
{
if (this != &other)
{
prop_fns_ = other.prop_fns_;
detail::any_executor_base::operator=(
static_castdetail::any_executor_base&&(
static_castdetail::any_executor_base&(other)));
}
return *this;
}

#endif

###操作步骤
VS shipping模式运行工程,运行实例后,执行命令 npx v8-hot-reload-kit watch path/to/your/puerts/js/root -p 8080 -v(替换了JS路径)。当显示connecting localhost :8082(我测试用的Port)时会崩溃,
同样如果一开始开启监听,再运行shipping实例一样崩溃。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.