Skip to content

Tuanjie Support - #3

Draft
neptuwunium wants to merge 3 commits into
DaZombieKiller:mainfrom
neptuwunium:tuanjie
Draft

neptuwunium wants to merge 3 commits into
DaZombieKiller:mainfrom
neptuwunium:tuanjie

Conversation

@neptuwunium

Copy link
Copy Markdown

Oh boy.

This is a draft because it requires some architectural changes. Tuanjie uses the same version number (in fact, everything is on 2022.3.62 with an increasing f number (t in this case) 1.11.0 is 2022.3.62t17.)

As such for Tuanjie version tracking, the sub-revision number needs to be tracked and compared as well, and likely another 2 variants since they did make some changes.

DO NOT MERGE THIS, I made this PR because I don't intend on cleaning it up and just putting my notes here in case someone wants to.

Also includes badly implemented Linux support which is some frankensteined half-Android half-Windows loader.

Comment thread source/dumper.hpp
if ((x.Protection & ExecutableSection::kSectionProtectionRead) == 0)
return false;

if (x.Data.size() < sizeof(RuntimeTypeArray))

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: without this check, sections that are less than the size of the runtime array will loop indefinitely.

Linux has a bunch of tiny < 1KiB sections, maybe Android too under certain situations.

static Revision CachedRevision = Revision::Count;

int vfprintf(FILE *stream, const char *format, va_list ap) {
orig_vfprintf_type orig_vfprintf = (orig_vfprintf_type)dlsym(RTLD_NEXT, "vfprintf");

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LD_PRELOAD=libTypeTreeRipper.so ./Unity

// "engine version:" -> Runtime: Version
// "Editor version:" -> Editor: version
// is there a better way??
if (CachedRevision == Revision::Count && strstr(tmp_buffer, "engine version:")) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Count comparison is necessary because the process forks into a player runtime, making the editor dump from the editor module with player structs.

Likely a better way to determine this.

{
t.GetData()->SetGenerationFlags(options);
}
*reinterpret_cast<int64_t *>((char*)(this) + 0x5c) = 0x4d;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MemLabelId::String

@AXiX-official

Copy link
Copy Markdown

I tested Tuanjie 2022.3.2t5 and Tuanjie 2022.3.61t15 both crashed after factory AnnotationManager

DebugViewScreenShot
editor.log
========== OUTPUTTING STACK TRACE ==================

SymInit: Symbol-SearchPath: 'E:/Unity/Tuanjie/Tuanjie 2022.3.2t5/Editor/Data/Mono;.;C:\Users\28797\tuanjieTest;C:\Users\28797\tuanjieTest\Library\BurstCache\JIT;E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor;C:\WINDOWS;C:\WINDOWS\system32;', symOptions: 534, UserName: '28797'
OS-Version: 10.0.0
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\Tuanjie.exe:Tuanjie.exe (00007FF7E5190000), size: 84578304 (result: 0), SymType: 'PDB', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\Tuanjie_x64.pdb', fileVersion: 2022.3.2.22354
C:\WINDOWS\SYSTEM32\ntdll.dll:ntdll.dll (00007FF8F8590000), size: 2539520 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\ntdll.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\KERNEL32.DLL:KERNEL32.DLL (00007FF8F6860000), size: 831488 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\KERNEL32.DLL', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\KERNELBASE.dll:KERNELBASE.dll (00007FF8F59B0000), size: 4231168 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\KERNELBASE.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\SYSTEM32\apphelp.dll:apphelp.dll (00007FF8F11D0000), size: 651264 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\apphelp.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\System32\user32.dll:user32.dll (00007FF8F6330000), size: 1957888 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\user32.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\System32\win32u.dll:win32u.dll (00007FF8F5730000), size: 159744 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\win32u.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\GDI32.dll:GDI32.dll (00007FF8F76E0000), size: 176128 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\GDI32.dll', fileVersion: 10.0.26100.8328
C:\WINDOWS\System32\gdi32full.dll:gdi32full.dll (00007FF8F5F20000), size: 1216512 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\gdi32full.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\msvcp_win.dll:msvcp_win.dll (00007FF8F6050000), size: 667648 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\msvcp_win.dll', fileVersion: 10.0.26100.9711
C:\WINDOWS\System32\ucrtbase.dll:ucrtbase.dll (00007FF8F5DC0000), size: 1359872 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\ucrtbase.dll', fileVersion: 10.0.26100.9711
C:\WINDOWS\System32\advapi32.dll:advapi32.dll (00007FF8F8290000), size: 770048 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\advapi32.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\msvcrt.dll:msvcrt.dll (00007FF8F6250000), size: 692224 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\msvcrt.dll', fileVersion: 7.0.26100.9711
C:\WINDOWS\System32\sechost.dll:sechost.dll (00007FF8F81E0000), size: 688128 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\sechost.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\System32\RPCRT4.dll:RPCRT4.dll (00007FF8F80C0000), size: 1146880 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\RPCRT4.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\shell32.dll:shell32.dll (00007FF8F7800000), size: 8060928 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\shell32.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\setupapi.dll:setupapi.dll (00007FF8F6EA0000), size: 4747264 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\setupapi.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\iphlpapi.dll:iphlpapi.dll (00007FF8F3830000), size: 208896 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\iphlpapi.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\System32\psapi.dll:psapi.dll (00007FF8F8360000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\psapi.dll', fileVersion: 10.0.26100.8521
C:\WINDOWS\SYSTEM32\hid.dll:hid.dll (00007FF8F35C0000), size: 61440 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\hid.dll', fileVersion: 10.0.26100.1150
C:\WINDOWS\System32\WS2_32.dll:WS2_32.dll (00007FF8F6930000), size: 524288 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\WS2_32.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\dhcpcsvc6.dll:dhcpcsvc6.dll (00007FF8ED100000), size: 122880 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\dhcpcsvc6.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\SYSTEM32\dhcpcsvc.dll:dhcpcsvc.dll (00007FF8ECA40000), size: 151552 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\dhcpcsvc.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\WINTRUST.dll:WINTRUST.dll (00007FF8F6100000), size: 536576 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\WINTRUST.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\wsock32.dll:wsock32.dll (00007FF8DC890000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\wsock32.dll', fileVersion: 10.0.26100.1
Begin write certificate to file.
Write certificate complete, return 1.
StartServer, cert is C:/Users/28797/AppData/Roaming/Tuanjie/14184-rest-certificate.pem
C:\WINDOWS\System32\OLEAUT32.dll:OLEAUT32.dll (00007FF8F7710000), size: 892928 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\OLEAUT32.dll', fileVersion: 10.0.26100.9974
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\CMP_Compressonator.dll:CMP_Compressonator.dll (00007FF8D33C0000), size: 757760 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\CMP_Compressonator.dll'
Start HTTP server port 38000, HTTPS server port 38443.
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\libfbxsdk.dll:libfbxsdk.dll (00007FF88F5B0000), size: 10215424 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\libfbxsdk.dll', fileVersion: 2020.2.0.0
C:\WINDOWS\System32\combase.dll:combase.dll (00007FF8F7330000), size: 3821568 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\combase.dll', fileVersion: 10.0.26100.9818
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\etccompress.dll:etccompress.dll (00007FF8A7E50000), size: 5066752 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\etccompress.dll'
C:\WINDOWS\System32\IMM32.dll:IMM32.dll (00007FF8F66B0000), size: 200704 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\IMM32.dll', fileVersion: 10.0.26100.9818
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\ispc_texcomp.dll:ispc_texcomp.dll (00007FF8B8D30000), size: 1740800 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\ispc_texcomp.dll'
C:\WINDOWS\System32\ole32.dll:ole32.dll (00007FF8F6C70000), size: 1675264 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\ole32.dll', fileVersion: 10.0.26100.9974
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\compress_bc7e.dll:compress_bc7e.dll (00007FF8A95A0000), size: 1441792 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\compress_bc7e.dll'
C:\WINDOWS\System32\SHLWAPI.dll:SHLWAPI.dll (00007FF8F66F0000), size: 425984 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\SHLWAPI.dll', fileVersion: 10.0.26100.9818
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\WinPixEventRuntime.dll:WinPixEventRuntime.dll (00007FF8DCFB0000), size: 45056 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\WinPixEventRuntime.dll', fileVersion: 1.0.1812.6001
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\FreeImage.dll:FreeImage.dll (0000000180000000), size: 6582272 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\FreeImage.dll', fileVersion: 3.18.0.0
C:\WINDOWS\System32\CRYPT32.dll:CRYPT32.dll (00007FF8F5760000), size: 1564672 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\CRYPT32.dll', fileVersion: 10.0.26100.9818
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\SketchUpAPI.dll:SketchUpAPI.dll (00007FF860EF0000), size: 9306112 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\SketchUpAPI.dll', fileVersion: 20.2.172.0
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\MeshBuilder.dll:MeshBuilder.dll (00007FF8D4070000), size: 376832 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\MeshBuilder.dll'
C:\WINDOWS\SYSTEM32\dwmapi.dll:dwmapi.dll (00007FF8F1420000), size: 188416 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\dwmapi.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\bcrypt.dll:bcrypt.dll (00007FF8F5610000), size: 172032 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\bcrypt.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\SYSTEM32\WINMM.dll:WINMM.dll (00007FF8E82D0000), size: 221184 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WINMM.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\WINHTTP.dll:WINHTTP.dll (00007FF8ECCD0000), size: 1191936 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WINHTTP.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\SYSTEM32\GLU32.dll:GLU32.dll (00007FF8CEA00000), size: 229376 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\GLU32.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\OPENGL32.dll:OPENGL32.dll (00007FF8CF030000), size: 1097728 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\OPENGL32.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\MSVCP140.dll:MSVCP140.dll (00007FFFE7B80000), size: 655360 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\MSVCP140.dll', fileVersion: 14.52.37025.0
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\SketchUpCommonPreferences.dll:SketchUpCommonPreferences.dll (00007FF8B8B30000), size: 479232 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\SketchUpCommonPreferences.dll', fileVersion: 20.2.172.37
C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll:VCRUNTIME140.dll (00007FF8D8AA0000), size: 176128 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll', fileVersion: 14.52.37025.0
C:\WINDOWS\SYSTEM32\Secur32.dll:Secur32.dll (00007FF8F1280000), size: 53248 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\Secur32.dll', fileVersion: 10.0.26100.7705
C:\WINDOWS\SYSTEM32\VCRUNTIME140_1.dll:VCRUNTIME140_1.dll (00007FF8D6060000), size: 53248 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\VCRUNTIME140_1.dll', fileVersion: 14.52.37025.0
C:\WINDOWS\SYSTEM32\dxcore.dll:dxcore.dll (00007FF8F1660000), size: 303104 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\dxcore.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\SSPICLI.DLL:SSPICLI.DLL (00007FF8F4140000), size: 303104 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\SSPICLI.DLL', fileVersion: 10.0.26100.9818
E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\VERSION.dll:VERSION.dll (00007FF8BE900000), size: 356352 (result: 0), SymType: '-exported-', PDB: 'E:\Unity\Tuanjie\Tuanjie 2022.3.2t5\Editor\VERSION.dll'
C:\Windows\System32\version.DLL:version.DLL (00007FF8ED2C0000), size: 45056 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\System32\version.DLL', fileVersion: 10.0.26100.1150
C:\WINDOWS\SYSTEM32\MSASN1.dll:MSASN1.dll (00007FF8F4A90000), size: 77824 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\MSASN1.dll', fileVersion: 10.0.26100.9711
C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL:CRYPTBASE.DLL (00007FF8F4680000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL', fileVersion: 10.0.26100.9711
C:\WINDOWS\System32\bcryptPrimitives.dll:bcryptPrimitives.dll (00007FF8F6190000), size: 704512 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\bcryptPrimitives.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\SYSTEM32\MSWSOCK.DLL:MSWSOCK.DLL (00007FF8F4420000), size: 438272 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\MSWSOCK.DLL', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\cfgmgr32.DLL:cfgmgr32.DLL (00007FF8F52F0000), size: 335872 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\cfgmgr32.DLL', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\kernel.appcore.dll:kernel.appcore.dll (00007FF8F3E80000), size: 110592 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\kernel.appcore.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\system32\uxtheme.dll:uxtheme.dll (00007FF8F1320000), size: 696320 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\uxtheme.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\windows.storage.dll:windows.storage.dll (00007FF8F2C20000), size: 9175040 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\windows.storage.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\SHCORE.dll:SHCORE.dll (00007FF8F6760000), size: 1015808 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\SHCORE.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\profapi.dll:profapi.dll (00007FF8F5640000), size: 167936 (result: 0), SymType: '-nosymbols-', PDB: 'C:\WINDOWS\SYSTEM32\profapi.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\CRYPTSP.dll:CRYPTSP.dll (00007FF8F4820000), size: 110592 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\CRYPTSP.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\system32\rsaenh.dll:rsaenh.dll (00007FF8F3DE0000), size: 233472 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\rsaenh.dll', fileVersion: 10.0.26100.7705
C:\WINDOWS\System32\imagehlp.dll:imagehlp.dll (00007FF8F6300000), size: 131072 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\imagehlp.dll', fileVersion: 10.0.26100.4202
C:\WINDOWS\SYSTEM32\gpapi.dll:gpapi.dll (00007FF8F4490000), size: 151552 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\gpapi.dll', fileVersion: 10.0.26100.9818
C:\Windows\System32\cryptnet.dll:cryptnet.dll (00007FF8ED130000), size: 241664 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\System32\cryptnet.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\SYSTEM32\WINNSI.DLL:WINNSI.DLL (00007FF8EFBD0000), size: 57344 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WINNSI.DLL', fileVersion: 10.0.26100.9818
C:\WINDOWS\System32\NSI.dll:NSI.dll (00007FF8F6690000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\NSI.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\system32\IconCodecService.dll:IconCodecService.dll (00007FF8AAB70000), size: 45056 (result: 0), SymType: '-nosymbols-', PDB: 'C:\WINDOWS\system32\IconCodecService.dll', fileVersion: 10.0.26100.1
C:\WINDOWS\SYSTEM32\WindowsCodecs.dll:WindowsCodecs.dll (00007FF8F03A0000), size: 2347008 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WindowsCodecs.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\System32\clbcatq.dll:clbcatq.dll (00007FF8F69C0000), size: 716800 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\clbcatq.dll', fileVersion: 2001.12.10941.16384
C:\WINDOWS\System32\netprofm.dll:netprofm.dll (00007FF8EE260000), size: 450560 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\netprofm.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\System32\npmproxy.dll:npmproxy.dll (00007FF8E7DE0000), size: 102400 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\npmproxy.dll', fileVersion: 10.0.26100.9711
C:\WINDOWS\SYSTEM32\DNSAPI.dll:DNSAPI.dll (00007FF8F3920000), size: 1359872 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\DNSAPI.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\SYSTEM32\DSPARSE.dll:DSPARSE.dll (00007FF8F4240000), size: 53248 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\DSPARSE.dll', fileVersion: 10.0.26100.1
C:\WINDOWS\system32\napinsp.dll:napinsp.dll (00007FF8A93B0000), size: 98304 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\napinsp.dll', fileVersion: 10.0.26100.1150
C:\WINDOWS\System32\winrnr.dll:winrnr.dll (00007FF8A9390000), size: 77824 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\winrnr.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\system32\nlansp_c.dll:nlansp_c.dll (00007FF8B7F90000), size: 159744 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\nlansp_c.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\system32\wshbth.dll:wshbth.dll (00007FF8E88B0000), size: 90112 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\wshbth.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\System32\fwpuclnt.dll:fwpuclnt.dll (00007FF8E8740000), size: 548864 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\fwpuclnt.dll', fileVersion: 10.0.26100.9974
C:\Windows\System32\rasadhlp.dll:rasadhlp.dll (00007FF8ED0F0000), size: 45056 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\System32\rasadhlp.dll', fileVersion: 10.0.26100.9711
C:\WINDOWS\System32\MSCTF.dll:MSCTF.dll (00007FF8F8370000), size: 1425408 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\MSCTF.dll', fileVersion: 10.0.26100.9974
C:\WINDOWS\SYSTEM32\textinputframework.dll:textinputframework.dll (00007FF8D6940000), size: 1335296 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\textinputframework.dll', fileVersion: 10.0.26100.9818
C:\WINDOWS\system32\Oleacc.dll:Oleacc.dll (00007FF8D7C10000), size: 479232 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\Oleacc.dll', fileVersion: 7.2.26100.9818
C:\WINDOWS\SYSTEM32\dbghelp.dll:dbghelp.dll (00007FF8F23D0000), size: 2408448 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\dbghelp.dll', fileVersion: 10.0.26100.9818
  ERROR: SymGetSymFromAddr64, GetLastError: '试图访问无效的地址。
' (Address: 00007FF8BE91BD5F)
0x00007FF8BE91BD5F (VERSION) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: '试图访问无效的地址。
' (Address: 00007FF8BE903328)
0x00007FF8BE903328 (VERSION) (function-name not available)
  ERROR: SymGetSymFromAddr64, GetLastError: '试图访问无效的地址。
' (Address: 00007FF8BE92A8DD)
0x00007FF8BE92A8DD (VERSION) (function-name not available)
0x00007FF7E73F4BE2 (Tuanjie) EditorLaunchScreen::CreateLaunchScreenWindow
0x00007FF7E73DA503 (Tuanjie) AutoBackgroundProgressBar::ThreadFunction
0x00007FF7E6100387 (Tuanjie) Thread::RunThreadWrapper
0x00007FF8F688DDA7 (KERNEL32) BaseThreadInitThunk
0x00007FF8F8659C5C (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

@neptuwunium

neptuwunium commented Nov 13, 2026 •

Copy link
Copy Markdown
Author

I tested Tuanjie 2022.3.2t5 and Tuanjie 2022.3.61t15 both crashed after factory AnnotationManager

Likely because the VTable and structs keeps getting updated. I'll take a look but there needs to be a better way to handle all 70 different Tuanjie versions. 3.62t2, 3.61t1 and 3.38t1 all have differences.

Unity China actually doing major work to the internals of Unity/Tuanjie with only bumping the Tuanjie version is problematic for the way this project tracks versions.

I only tested 2022.3.62t17

@AXiX-official

AXiX-official commented Nov 15, 2026 •

Copy link
Copy Markdown

I tested Tuanjie 2022.3.2t5 and Tuanjie 2022.3.61t15 both crashed after factory AnnotationManager

Likely because the VTable and structs keeps getting updated. I'll take a look but there needs to be a better way to handle all 70 different Tuanjie versions. 3.62t2, 3.61t1 and 3.38t1 all have differences.

Unity China actually doing major work to the internals of Unity/Tuanjie with only bumping the Tuanjie version is problematic for the way this project tracks versions.

I only tested 2022.3.62t17

I made some attempts to get this working on Tuanjie 2022.3.61t15. It works, but only partially — I've only tested it in the Editor so far.

On this version of the Tuanjie Editor, DetourSetWindowLongPtrA runs too early to hook. As a workaround, I use an Editor script to call the dump function once the Editor is ready. Otherwise, the Editor will crash while the dumper is processing Camera.

It can process most types up until AnimationClip:

image image

I haven't figured out why it fails yet.

My code is here: AXiX-official/TuanjieTypeTreeRipper@fae2b7f

@neptuwunium

Copy link
Copy Markdown
Author

Otherwise, the Editor will crash while the dumper is processing Camera.

This happens when the graphics managers aren't initialized, since the camera object tries to get global rendering settings.

It can process most types up until AnimationClip:

This seems like the GenerateTypeTreeTransfer class changed between these versions. I would look at that constructor in Ghidra/Ida/Binary Ninja and see if it still matches up to my lazy copy.

In an older project which uses TypeTreeCache::GetTypeTree instead of Object::VirtualRedirectTransfer, this problem does not occur but that constructor is also handled internally within Unity in that path so that's where I would look first.

@DaZombieKiller

DaZombieKiller commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

I tested Tuanjie 2022.3.2t5 and Tuanjie 2022.3.61t15 both crashed after factory AnnotationManager

That's probably because AnnotationManager is a singleton, so it's only allowed to be created once (the engine will crash if it's created multiple times). TypeTreeRipper either needs to run before AnnotationManager is first created, or special case it and somehow access the singleton instance (I'm not sure what a good way to do this would be that doesn't involve some kind of signature scan).

Hmm. Maybe finding the RTTI array early and trying to hook the AnnotationManager constructor could work, then you just cache the instance.

@neptuwunium

Copy link
Copy Markdown
Author

I tested Tuanjie 2022.3.2t5 and Tuanjie 2022.3.61t15 both crashed after factory AnnotationManager

That's probably because AnnotationManager is a singleton, so it's only allowed to be created once (the engine will crash if it's created multiple times).

There is an assertion in there to check if the singleton is initialized, but it's in a try { } catch { return singleton; } brace.

@AXiX-official

Copy link
Copy Markdown

Otherwise, the Editor will crash while the dumper is processing Camera.

This happens when the graphics managers aren't initialized, since the camera object tries to get global rendering settings.

It can process most types up until AnimationClip:

This seems like the GenerateTypeTreeTransfer class changed between these versions. I would look at that constructor in Ghidra/Ida/Binary Ninja and see if it still matches up to my lazy copy.

In an older project which uses TypeTreeCache::GetTypeTree instead of Object::VirtualRedirectTransfer, this problem does not occur but that constructor is also handled internally within Unity in that path so that's where I would look first.

I made it works for all 71 existing Tuanjie version.

code here: TuanjieTypeTreeRipper

and dumps here: TuanjieTypeTreeDumps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants