question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
niosuscommented, Dec 21, 2018

Ok, fair enough. I will try to update this over the weekend.

0reactions
haferburgcommented, Dec 21, 2018

@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/

Project-related settings will only work when your code has a .sublime-project file related to it. For documentation on using the Sublime Text projects please refer here.

Project settings have precedence over the User and Default ones

The settings defined in the *.sublime-project file override User and Default settings. Keep that in mind when specifying them! They are not appended, they override these settings.

Whatever. At least now I got some log output that I can work with.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found