Skip to content
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

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

Open
sjabsr opened this issue Jan 14, 2025 · 1 comment

Comments

@sjabsr
Copy link

sjabsr commented Jan 14, 2025

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.<startPlayback>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

@rachanasinghg
Copy link
Collaborator

Hello,

Can you please mail us the steps to reproduce this exception?
It will be helpful for us to rectify the issue and fix it.
Thank you.

With Regards
Rachana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants