System.AccessViolationException at ORTS.Viewer3D.OpenAL.alSourcefv (X2738, SLI BNSF Scenic Sub, 3. Westbound Coal)
Bug #1406179 reported by
Derek Morton
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
Fix Released
|
High
|
Carlo Santucci |
Bug Description
I was going back to the front of the train after looking at the back of the train.
Numbers 2 and 3
summary: |
- System.AccessViolationException: Attempted to read or write protected - memory + System.AccessViolationException at ORTS.Viewer3D.OpenAL.alSourcefv + (X2738, SLI BNSF Scenic Sub) |
tags: | added: crash sounds |
Changed in or: | |
status: | New → Triaged |
Changed in or: | |
status: | Triaged → Confirmed |
Changed in or: | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
summary: |
System.AccessViolationException at ORTS.Viewer3D.OpenAL.alSourcefv - (X2738, SLI BNSF Scenic Sub) + (X2738, SLI BNSF Scenic Sub, 3. Westbound Coal) |
Changed in or: | |
assignee: | nobody → Carlo Santucci (carlosanit1) |
Changed in or: | |
milestone: | none → 1.0 |
status: | In Progress → Fix Committed |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The crash occurs in following lines of TrainCar.cs:
foreach (var soundSourceID in soundSourceIDs)
OpenAL. alSourcefv( soundSourceID, OpenAL.AL_POSITION, position);
OpenAL. alSourcefv( soundSourceID, OpenAL.AL_VELOCITY, Velocity);
{
}
so it could be caused by the fact that the list of soundsources is changed in the Sound process thread.