daisy / daisy/obi

[OBI5] System.NullReferenceException (ProjectView.ContentView.SelectPhraseBlockOrStrip(EmptyNode node)

Open
#231 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
12
Forks
2
PR merge metrics
No merged PRs in 30d

Description

We got the following exception with a fresh installation of OBI 5, while recording or just after stopping to record (the end user isn't sure).
The project file is not corrupted, the user could resume editing without problem.

Is that a known issue, any precaution to prevent it ?
Thank you

```
Exception Info: System.NullReferenceException: Object reference not set to an instance of an object.
at Obi.ObiNode.get_Index() in D:\SF\GitHub-Repositories\daisy\obi\Obi\Obi\ObiNode.cs:line 135
at Obi.ProjectView.ContentView.SelectPhraseBlockOrStrip(EmptyNode node) in D:\SF\GitHub-Repositories\daisy\obi\Obi\Obi\ProjectView\ContentView.cs:line 4997
at Obi.ProjectView.ProjectView.SelectFromTransportBar(ObiNode node, IControlWithSelection selectionControl) in D:\SF\GitHub-Repositories\daisy\obi\Obi\Obi\ProjectView\ProjectView.cs:line 5141
at Obi.ProjectView.TransportBar.Playlist_PlayerStopped(Object sender, EventArgs e) in D:\SF\GitHub-Repositories\daisy\obi\Obi\Obi\ProjectView\TransportBar.cs:line 839
at Obi.Playlist.ReachedEndOfPlaylist() in D:\SF\GitHub-Repositories\daisy\obi\Obi\Obi\Playlist.cs:line 908
at Obi.Playlist.Playlist_MoveToNextPhrase() in D:\SF\GitHub-Repositories\daisy\obi\Obi\Obi\Playlist.cs:line 899
--- End of stack trace from previous location ---
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at Obi.Playlist.Playlist_MoveToNextPhrase(Object sender, AudioPlaybackFinishEventArgs e) in D:\SF\GitHub-Repositories\daisy\obi\Obi\Obi\Playlist.cs:line 834
at AudioLib.AudioPlayer.b__54_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
```

Detailed log + machine info here :
[obi-crash-pc-cabine2.txt](https://github.com/user-attachments/files/18409380/obi-crash-pc-cabine2.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.