Access violation when using libclang on Windows
See original GitHub issue[ECC:INFO ]: Getting version from command: `D:\Program Files\LLVM\bin\clang++ -v`
[ECC:INFO ]: Getting version from command: `D:\Program Files\LLVM\bin\clang++ -v`
[ECC:INFO ]: init completer based on libclang
[ECC:INFO ]: using user-provided libclang: 'D:\Program Files\LLVM\bin\libclang.dll'
[ECC:ERROR ]: error while compiling: exception: stack overflow
Exception OSError: 'exception: access violation writing 0x0000000007350000' in exception calling callback for <Future at 0x4c1cc88 state=finished raised OSError>
Traceback (most recent call last):
File "./python3.3/concurrent/futures/_base.py", line 296, in _invoke_callbacks
File "%APPDATA%\Sublime Text 3\Packages\EasyClangComplete\EasyClangComplete.py", line 411, in config_updated
log.debug("updated config: %s", future.result())
File "./python3.3/concurrent/futures/_base.py", line 394, in result
File "./python3.3/concurrent/futures/_base.py", line 353, in __get_result
File "./python3.3/concurrent/futures/thread.py", line 54, in run
File "%APPDATA%\Sublime Text 3\Packages\EasyClangComplete\plugin\view_config.py", line 495, in load_for_view
config = ViewConfig(view, settings)
File "%APPDATA%\Sublime Text 3\Packages\EasyClangComplete\plugin\view_config.py", line 78, in __init__
self.completer.update(view, settings)
File "%APPDATA%\Sublime Text 3\Packages\EasyClangComplete\plugin\completion\lib_complete.py", line 326, in update
if isinstance(self.tu.cursor.displayname, bytes):
File "%APPDATA%\Sublime Text 3\Packages\EasyClangComplete\plugin\clang\cindex50.py", line 2762, in cursor
return conf.lib.clang_getTranslationUnitCursor(self)
OSError: exception: access violation writing 0x0000000007350000
Could this be due to a version mismatch? Which version do you expect?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
libclang clang_getSpellingLocation access violation
I'm trying to start a tutorial about libclang library, but I get an access violation when calling the function clang_getSpellingLocation() .
Read more >How to get stack trace for access violation exception - MSDN
My application , DLL , lib1 and lib 2 have been built in VS 2015 with /MD switch. Flow is Application -> DLL...
Read more >The LLVM Compiler Infrastructure Project
Clang is an "LLVM native" C/C++/Objective-C compiler, which aims to deliver amazingly fast compiles, extremely useful error and warning messages and to provide ......
Read more >How to build Qt with the Address Sanitizer on Windows - KDAB
Now, if you happen to deal with Qt projects you may want to take this ... 0xC0000005: Access violation writing location 0x00000000756E6587.
Read more >Setting up the Clang Compiler in CLion on Windows
The last step is to replace the binaries in <msys2_path>\mingw64\lib\clang\<clang_version>\lib\windows with libraries from <compiler-rt_path>\ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, fair enough. I will try to update this over the weekend.
@niosus Alright. So there’s a difference between project settings and plugin settings. There’s no mentioning of that in the documentation, is there?
https://niosus.github.io/EasyClangComplete/settings/
Whatever. At least now I got some log output that I can work with.