When opening the editor, the live coding window opens briefly, then closes.
In the editor log, I can see this:
LogLiveCoding: Display: Starting LiveCoding
LogLiveCoding: Display: LiveCodingConsole Arguments: TomatoEditor Win64 Development
LogLiveCoding: Display: First instance in process group “UE_Tomato_0x4b3cdf8b”, spawning console
LogLiveCoding: Display: Waiting for server
LogLiveCoding: Display: Successfully initialized, removing startup thread
LogLiveCoding: Error: Error 0x6D while writing to pipe: Size: 363952, written: 0
Looking through the source code, I found this function:
void DuplexPipe::Send(const void* buffer, size_t size) const
{
size_t writtenSoFar = 0u;
do
{
DWORD bytesWritten = 0u;
const BOOL success = ::WriteFile(m_pipe, static_cast<const char*>(buffer) + writtenSoFar, static_cast(size - writtenSoFar), &bytesWritten, NULL);
if (success == 0)
{
// error while trying to write to the pipe, process has probably ended and closed its end of the pipe
const DWORD error = ::GetLastError();
if (error == ERROR_NO_DATA)
{
// this is expected, pipe has disconnected
return;
}LC_ERROR_USER("Error 0x%X while writing to pipe: Size: %zu, written: %d", error, size, bytesWritten); return; } writtenSoFar += bytesWritten;
}
while (writtenSoFar != size);
}
This is where the error seems to come from, and this is the callstack if I breakpoint on the LC_ERROR_USER line:
DuplexPipe::Send(const void *,unsigned long long) LC_DuplexPipe.cpp:64
[Inlined] DuplexPipe::SendCommandAndWaitForAck(const commands::RegisterProcess &,const void *,unsigned long long) LC_DuplexPipe.h:29
ClientStartupThread::ThreadFunction(const std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > &,Enum) LC_ClientStartupThread.cpp:637
[Inlined] Thread::CreateFromMemberFunction::__l2::<lambda_1>::operator()() LC_Thread.h:141
[Inlined] Thread::CreateFromMemberFunction::__l2::<lambda_2>::operator()(void *) LC_Thread.h:157
Thread::CreateFromMemberFunction<ClientStartupThread,StrongTypedef<unsigned int,0> (__cdecl ClientStartupThread::*)(std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > const &,enum RunMode::Enum),std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > &,enum RunMode::Enum &>'::
2’::<lambda_2>::<lambda_invoker_cdecl>(void *) LC_Thread.h:161
0x00007ff90bb41bb2
0x00007ff90d567344
0x00007ff90dea26b1
Has anybody encountered this before? It’s really slowing down my workflow, I have to restart the editor any time I want to try some code changes.