System.AccessViolationException at ORTS.Viewer3D.OpenAL.alSourcefv (X2738, SLI BNSF Scenic Sub, 3. Westbound Coal)

Bug #1406179 reported by Derek Morton
32
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

Tags: crash sounds
Revision history for this message
Derek Morton (derek-a) wrote :
James Ross (twpol)
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
James Ross (twpol)
Changed in or:
status: New → Triaged
Changed in or:
status: Triaged → Confirmed
Revision history for this message
Carlo Santucci (carlosanit1) wrote : Re: System.AccessViolationException at ORTS.Viewer3D.OpenAL.alSourcefv (X2738, SLI BNSF Scenic Sub)

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.

James Ross (twpol)
Changed in or:
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Carlo Santucci (carlosanit1) wrote :

Tentative bug fix in release 2852.

Changed in or:
status: Triaged → In Progress
Revision history for this message
Derek Morton (derek-a) wrote : Re: [Bug 1406179] Re: System.AccessViolationException at ORTS.Viewer3D.OpenAL.alSourcefv (X2738, SLI BNSF Scenic Sub)

I can't crash it after 4 hours.

On 9/02/2015 19:17, Carlo Santucci wrote:
> Tentative bug fix in release 2852.
>
> ** Changed in: or
> Status: Triaged => In Progress
>

James Ross (twpol)
summary: System.AccessViolationException at ORTS.Viewer3D.OpenAL.alSourcefv
- (X2738, SLI BNSF Scenic Sub)
+ (X2738, SLI BNSF Scenic Sub, 3. Westbound Coal)
James Ross (twpol)
Changed in or:
assignee: nobody → Carlo Santucci (carlosanit1)
James Ross (twpol)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.