-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libbulletc.dll caused an Access Violation #48
Comments
This will be very hard to track down unless I am able to reproduce the problem. A pointer is trying to reference memory that it shouldn't. The pointer could be anywhere in the codebase. Is there any chance you could be using a variable after it has been disposed? Do you have any idea if it is a particular bullet class that causes this? One way to track this down would be to launch the Unity Editor from the Visual Studio debugger. To do this you will need to clone the https://github.com/Phong13/BulletSharpPInvoke project in github. Build a debug version of https://github.com/Phong13/BulletSharpPInvoke/libbulletc/Windows. Copy the .dll and .pdb files to the Unity Project Plugins folder. This page has instructions explaining how to launch the Unity Editor from the debugger. http://digitalopus.ca/site/building-bullet-physics-for-unity/ When you do this, if there is an AccessViolation the Visual Studio Debugger should catch the exception and provide additional information. Specifically which variable was being accessed in the code that caused the violation. If you could let me know what variable is causing the access violation then I should be able to fix it. |
Thanks for answer, Ian I`m doing client-server physics simulation. Server side - BulletSharp, client side - BulletSharpUnity3d. Both library .dll separated and havent relation and troubles happens also when I even run only client. Unity can crash event i dont play game (exp return to Unity from browser and so on). But I thinks troubles in disposing object because I carelessly watching for bullet objects. Ok, Im try debug my problem from the Visual Studio. |
Hi, Im get follow error sometimes when run unity.
Unity Editor [version: Unity 2017.2.0f3_46dda1414e51]
libbulletc.dll caused an Access Violation (0xc0000005)
in module libbulletc.dll at 0033:e0633cb6.
Error occurred at 2018-04-17_123920.
D:\Unity2\Unity\Editor\Unity.exe, run by User.
41% memory in use.
16325 MB physical memory [9582 MB free].
32648 MB paging file [24889 MB free].
8388608 MB user address space [8386418 MB free].
Read from location 446c1170 caused an access violation.
Context:
RDI: 0x00000000 RSI: 0x446c0e50 RAX: 0xe070b5e0
RBX: 0x4379a6c0 RCX: 0x4379a6c0 RDX: 0x446c0e50
RIP: 0xe0633cb6 RBP: 0x00000000 SegCs: 0x00000033
EFlags: 0x00010246 RSP: 0x2cfdf940 SegSs: 0x0000002b
R8: 0x4379a6c0 R9: 0xe070b3f0 R10: 0x30d6cba0
R11: 0xe05e3a20 R12: 0x00000000 R13: 0x3802ea80
R14: 0x42f4e180 R15: 0x2cfdfaa8
Bytes at CS:EIP:
39 aa 20 03 00 00 7e 58 48 8b 05 1b ea 12 00 48
Stack:
0x2cfdf940: 2cfdf9a0 00000000 d8334f7e 000007fe ...,....~O3.....
0x2cfdf950: 00000000 00000000 2c646550 00000000 ........Ped,....
0x2cfdf960: 446c0e50 00000000 e0633d4c 000007fe P.lD....L=c.....
0x2cfdf970: 0b6226e0 00000000 4379a6c0 00000000 .&b.......yC....
0x2cfdf980: 00000080 00000000 32e2f6a0 00000000 ...........2....
0x2cfdf990: 00000000 00000000 e063fedc 000007fe ..........c.....
0x2cfdf9a0: 438a2110 00000000 2c646550 00000000 .!.C....Ped,....
0x2cfdf9b0: 3802ea80 00000000 00000000 00000000 ...8............
0x2cfdf9c0: fffffffe ffffffff 2c83018f 00000000 ...........,....
0x2cfdf9d0: 42f4e180 00000000 e0629075 000007fe ...B....u.b.....
0x2cfdf9e0: 4379a6c0 00000000 0b6226e0 00000000 ..yC.....&b.....
0x2cfdf9f0: 323ad570 00000000 323ad498 00000000 p.:2......:2....
0x2cfdfa00: 3950ad50 00000000 e0629124 000007fe P.P9....$.b.....
0x2cfdfa10: 00000004 00000000 00000000 00000000 ................
0x2cfdfa20: 00000003 00000000 4082610c 00000001 .........a.@....
0x2cfdfa30: 00000000 00000000 e0629b03 000007fe ..........b.....
0x2cfdfa40: 3802ea80 00000000 00000000 00000000 ...8............
0x2cfdfa50: 00000000 00000000 32e2f6a0 00000000 ...........2....
0x2cfdfa60: 00000000 00000000 00000000 00000000 ................
0x2cfdfa70: 0f72af60 00000000 e06290e2 000007fe
.r.......b..... 0x2cfdfa80: 00000000 00000000 0bfddbb0 00000000 ................ 0x2cfdfa90: 0f62bdc0 00000000 2c646550 00000000 ..b.....Ped,.... 0x2cfdfaa0: fffffffe ffffffff e070b3d8 000007fe ..........p..... 0x2cfdfab0: 0f72af60 00000000 3950ad50 00000000
.r.....P.P9....0x2cfdfac0: 4379a6c0 00000000 57a6ce94 00008168 ..yC.......Wh...
0x2cfdfad0: 00000000 00000000 e06347c0 000007fe .........Gc.....
0x2cfdfae0: 3802ea80 00000000 2cfdfc60 00000000 ...8....
..,.... 0x2cfdfaf0: 00000001 00000000 e069f779 000007fe ........y.i..... 0x2cfdfb00: fffffffe ffffffff 2c646550 00000000 ........Ped,.... 0x2cfdfb10: 00000000 00000000 2c646550 00000000 ........Ped,.... 0x2cfdfb20: 00000001 00000000 e069f6b4 000007fe ..........i..... 0x2cfdfb30: 0f62bdc0 00000000 2cfdfc10 00000000 ..b........,.... 0x2cfdfb40: 32e2f6a0 00000000 00000000 00000000 ...2............ 0x2cfdfb50: 0b6226e0 00000000 323ae99b 00000000 .&b.......:2.... 0x2cfdfb60: 3802ea80 00000000 3802ea80 00000000 ...8.......8.... 0x2cfdfb70: 0f62bdc0 00000000 00000000 00000000 ..b............. 0x2cfdfb80: 0f62bdc0 00000000 00000000 00000000 ..b............. 0x2cfdfb90: 00000000 00000000 32e2f6a0 00000000 ...........2.... 0x2cfdfba0: 0b0b0000 00000000 2c7d00f0 00000000 ..........},.... 0x2cfdfbb0: 2c7b49c0 00000000 30d6cba0 00000000 .I{,.......0.... 0x2cfdfbc0: 323ae8a9 00000000 3802ea80 00000000 ..:2.......8.... 0x2cfdfbd0: 2cfdfc10 00000000 2cfdfb60 00000000 ...,....
..,....0x2cfdfbe0: 00000000 00000000 3802ea80 00000000 ...........8....
0x2cfdfbf0: 2c646550 00000000 00000000 00000000 Ped,............
0x2cfdfc00: 0b6226e0 00000000 32e2f6a0 00000000 .&b........2....
0x2cfdfc10: 2cfdfc60 00000000 323ae57a 00000000
..,....z.:2.... 0x2cfdfc20: 3802ea80 00000000 2c646550 00000000 ...8....Ped,.... 0x2cfdfc30: 00000000 00000000 00000000 00000000 ................ 0x2cfdfc40: 323ae490 00000000 00000000 00000000 ..:2............ 0x2cfdfc50: 3802ea80 00000000 0b0b0000 00000000 ...8............ 0x2cfdfc60: 2cfdfd10 00000000 323ada67 00000000 ...,....g.:2.... 0x2cfdfc70: 3802ea80 00000000 00000000 00000000 ...8............ 0x2cfdfc80: 3802ea80 00000000 2cfdfa80 00000000 ...8.......,.... 0x2cfdfc90: 2cfdfd70 00000000 00000000 00000000 p..,............ 0x2cfdfca0: 3802ea80 00000000 00000000 00000000 ...8............ 0x2cfdfcb0: 00000000 00000000 00000000 00000000 ................ 0x2cfdfcc0: 00000000 00000000 00000000 00000000 ................ 0x2cfdfcd0: 0b0b0000 00000000 2c646550 00000000 ........Ped,.... 0x2cfdfce0: 00000000 00000000 2cfdfe60 00000000 ........
..,....0x2cfdfcf0: 323ad570 00000000 fffffffe ffffffff p.:2............
0x2cfdfd00: 2cce0000 00000000 323ad570 00000000 ...,....p.:2....
0x2cfdfd10: 2cfdfd70 00000000 323ad498 00000000 p..,......:2....
0x2cfdfd20: 0b0b0000 00000000 00000000 00000000 ................
0x2cfdfd30: 3802ea80 00000000 2c646550 00000000 ...8....Ped,....
0x2cfdfd40: 00000000 00000000 3802ea80 00000000 ...........8....
0x2cfdfd50: 0b0b0000 00000000 fffffffe ffffffff ................
0x2cfdfd60: 2cce0000 00000000 323ad420 00000000 ...,.... .:2....
0x2cfdfd70: 2cfdfe00 00000000 0b6227e8 00000000 ...,.....'b.....
0x2cfdfd80: 00000000 00000000 d83eb7ab 000007fe ..........>.....
0x2cfdfd90: 3802ea80 00000000 2c646d48 00000000 ...8....Hmd,....
0x2cfdfda0: 00000000 00000000 2cfdfe60 00000000 ........`..,....
0x2cfdfdb0: 00000000 00000000 3802ea80 00000000 ...........8....
0x2cfdfdc0: 00000000 00000000 00000000 00000000 ................
0x2cfdfdd0: 0b0b0000 00000000 00000001 00000000 ................
0x2cfdfde0: 00000000 00000000 0b6226e0 00000000 .........&b.....
0x2cfdfdf0: 32e2f6a0 00000000 2c646d48 00000000 ...2....Hmd,....
0x2cfdfe00: 2c646d48 00000000 d82c8405 000007fe Hmd,......,.....
0x2cfdfe10: 3802ea80 00000000 00000000 00000000 ...8............
0x2cfdfe20: 32e2f6a0 00000000 3802ea80 00000000 ...2.......8....
0x2cfdfe30: 00000000 00000000 00000001 00000000 ................
0x2cfdfe40: 00002d63 00000000 2c646550 00000000 c-......Ped,....
0x2cfdfe50: 00016b18 00000000 d82c8619 000007fe .k........,.....
0x2cfdfe60: 00000000 00000000 4ad64e20 00000000 ........ N.J....
0x2cfdfe70: 39952750 00000000 00001888 00000000 P'.9............
0x2cfdfe80: 2c7b4500 00000000 d82c8725 000007fe .E{,....%.,.....
0x2cfdfe90: 4ad64e20 00000000 d82c8674 000007fe N.J....t.,.....
0x2cfdfea0: 00000000 00000000 00000000 00000000 ................
0x2cfdfeb0: 00000000 00000000 2c7b4500 00000000 .........E{,....
0x2cfdfec0: 2c64fcf0 00000000 d8333c6b 000007fe ..d,....k<3.....
0x2cfdfed0: 2c64fcf0 00000000 d82c8674 000007fe ..d,....t.,.....
0x2cfdfee0: 00000000 00000000 00000000 00000000 ................
0x2cfdfef0: 00000000 00000000 d83e8921 000007fe ........!.>.....
0x2cfdff00: 00000000 00000000 00000000 00000000 ................
0x2cfdff10: 00000000 00000000 00000000 00000000 ................
0x2cfdff20: 00000000 00000000 d83e8f4f 000007fe ........O.>.....
0x2cfdff30: 00002168 00000000 00000000 00000000 h!..............
0x2cfdff40: 2c65bff0 00000000 00000000 00000000 ..e,............
0x2cfdff50: 00000000 00000000 7744652d 00000000 ........-eDw....
0x2cfdff60: 2c65bff0 00000000 00000000 00000000 ..e,............
0x2cfdff70: 00000000 00000000 00000000 00000000 ................
0x2cfdff80: 00000000 00000000 7757c541 00000000 ........A.Ww....
0x2cfdff90: 00000000 00000000 00000000 00000000 ................
0x2cfdffa0: 00000000 00000000 00000000 00000000 ................
0x2cfdffb0: 774c9300 00000000 774c9300 00000000 ..Lw......Lw....
0x2cfdffc0: 2cfdeaf0 00000000 00000000 00000000 ...,............
0x2cfdffd0: 00000000 00000000 00000000 00000000 ................
0x2cfdffe0: 00000000 00000000 00000000 00000000 ................
0x2cfdfff0: 00000000 00000000 00000000 00000000 ................
The text was updated successfully, but these errors were encountered: