cnlohr / cnovr Goto Github PK
View Code? Open in Web Editor NEWCNLohr's OpenVR Misadventures
CNLohr's OpenVR Misadventures
This. Is. A. Nightmare. A 1GB nightmare. Just make "make" download the needed files for the specific platform.
This happens in ovrball when first updating the project file (touch ovrball.json) then updating a shader (touch assets/rendermodelnearestaa.frag).
=================================================================
==9980==ERROR: AddressSanitizer: heap-use-after-free on address 0x11c4127043f4 at pc 0x7ff72dfa84ad bp 0x0089503ff520 sp 0x0089503ff528
READ of size 1 at 0x11c4127043f4 thread T8
#0 0x7ff72dfa84ac in CNOVRJobTack C:\Users\yanla\git\cnovr\src\cnovrutil.c:1284
#1 0x7ff72df71282 in CNOVRShaderFileChange C:\Users\yanla\git\cnovr\src\cnovrparts.c:552
#2 0x7ff72dfa473d in thdfiletimechecker C:\Users\yanla\git\cnovr\src\cnovrutil.c:847
#3 0x7ffebaa5e5ce in __asan::AsanThread::ThreadStart(unsigned __int64) D:\a\_work\1\s\src\vctools\asan\llvm\compiler-rt\lib\asan\asan_thread.cpp:277
#4 0x7fff4b1c257c (C:\WINDOWS\System32\KERNEL32.DLL+0x18001257c)
#5 0x7fff4c94aa57 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18005aa57)
0x11c4127043f4 is located 84 bytes inside of 88-byte region [0x11c4127043a0,0x11c4127043f8)
freed by thread T8 here:
#0 0x7ff72e0f0b15 in free D:\a\_work\1\s\src\vctools\asan\llvm\compiler-rt\lib\asan\asan_malloc_win_thunk.cpp:69
#1 0x7ff72df92764 in TCCInstanceDestroy C:\Users\yanla\git\cnovr\src\cnovrtcc.c:265
#2 0x7ff72df96252 in CNOVRStopTCCSystem C:\Users\yanla\git\cnovr\src\cnovrtcc.c:557
#3 0x7ff72df92d06 in CNOVRTCCSystemFileChange C:\Users\yanla\git\cnovr\src\cnovrtcc.c:307
#4 0x7ff72dfa473d in thdfiletimechecker C:\Users\yanla\git\cnovr\src\cnovrutil.c:847
#5 0x7ffebaa5e5ce in __asan::AsanThread::ThreadStart(unsigned __int64) D:\a\_work\1\s\src\vctools\asan\llvm\compiler-rt\lib\asan\asan_thread.cpp:277
#6 0x7fff4b1c257c (C:\WINDOWS\System32\KERNEL32.DLL+0x18001257c)
#7 0x7fff4c94aa57 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18005aa57)
previously allocated by thread T10 here:
#0 0x7ff72e0f0b85 in malloc D:\a\_work\1\s\src\vctools\asan\llvm\compiler-rt\lib\asan\asan_malloc_win_thunk.cpp:85
#1 0x7ff72df8fc1e in CreateOrRefreshTCCInstance C:\Users\yanla\git\cnovr\src\cnovrtcc.c:223
#2 0x7ff72df9591c in TCCInterfaceAddCFileInstance C:\Users\yanla\git\cnovr\src\cnovrtcc.c:488
#3 0x7ff72df95261 in CNOVRTCCSystemFileChange C:\Users\yanla\git\cnovr\src\cnovrtcc.c:462
#4 0x7ff72dfa74a2 in CNOVRJobProcessor C:\Users\yanla\git\cnovr\src\cnovrutil.c:1168
#5 0x7ffebaa5e5ce in __asan::AsanThread::ThreadStart(unsigned __int64) D:\a\_work\1\s\src\vctools\asan\llvm\compiler-rt\lib\asan\asan_thread.cpp:277
#6 0x7fff4b1c257c (C:\WINDOWS\System32\KERNEL32.DLL+0x18001257c)
#7 0x7fff4c94aa57 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18005aa57)
Thread T8 created by T0 here:
#0 0x7ffebaa60287 in __asan_wrap_CreateThread D:\a\_work\1\s\src\vctools\asan\llvm\compiler-rt\lib\asan\asan_win.cpp:163
#1 0x7ff72dfb5877 in OGCreateThread C:\Users\yanla\git\cnovr\cntools\rawdraw\os_generic.h:195
#2 0x7ff72dfa4c90 in CNOVRInternalStartCacheSystem C:\Users\yanla\git\cnovr\src\cnovrutil.c:925
#3 0x7ff72df1d9d5 in CNOVRInit C:\Users\yanla\git\cnovr\src\cnovr.c:255
#4 0x7ff72dfb52bd in main C:\Users\yanla\git\cnovr\src\main.c:9
#5 0x7ff72e0f1433 in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
#6 0x7ff72e0f1433 in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
#7 0x7fff4b1c257c (C:\WINDOWS\System32\KERNEL32.DLL+0x18001257c)
#8 0x7fff4c94aa57 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18005aa57)
Thread T10 created by T0 here:
#0 0x7ffebaa60287 in __asan_wrap_CreateThread D:\a\_work\1\s\src\vctools\asan\llvm\compiler-rt\lib\asan\asan_win.cpp:163
#1 0x7ff72dfb5877 in OGCreateThread C:\Users\yanla\git\cnovr\cntools\rawdraw\os_generic.h:195
#2 0x7ff72dfa6705 in CNOVRJobInit C:\Users\yanla\git\cnovr\src\cnovrutil.c:1209
#3 0x7ff72df1d9da in CNOVRInit C:\Users\yanla\git\cnovr\src\cnovr.c:256
#4 0x7ff72dfb52bd in main C:\Users\yanla\git\cnovr\src\main.c:9
#5 0x7ff72e0f1433 in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
#6 0x7ff72e0f1433 in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
#7 0x7fff4b1c257c (C:\WINDOWS\System32\KERNEL32.DLL+0x18001257c)
#8 0x7fff4c94aa57 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x18005aa57)
SUMMARY: AddressSanitizer: heap-use-after-free C:\Users\yanla\git\cnovr\src\cnovrutil.c:1284 in CNOVRJobTack
Shadow bytes around the buggy address:
0x03ec94960820: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x03ec94960830: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x03ec94960840: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x03ec94960850: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x03ec94960860: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x03ec94960870: fa fa fa fa fd fd fd fd fd fd fd fd fd fd[fd]fa
0x03ec94960880: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x03ec94960890: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x03ec949608a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x03ec949608b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x03ec949608c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==9980==ABORTING
I have been needing an ESPUSB32-driver, you were speaking about making. I hope i did not disturb you in your playground, but was hoping you would take that with a laugh!
Wanna update us? ttps://esp32.com/viewtopic.php?f=13&t=2162&start=10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.