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

Null reference exception closing DetailView in 23.1.503 .NET 6 #1029

Closed
allshib opened this issue Nov 20, 2023 · 5 comments
Closed

Null reference exception closing DetailView in 23.1.503 .NET 6 #1029

allshib opened this issue Nov 20, 2023 · 5 comments
Labels
Bug Reactive.XAF eXpandFrameowrk/DevExpress.XAF project SequenceGenerator
Milestone

Comments

@allshib
Copy link

allshib commented Nov 20, 2023

Hello. I get the error after the following steps:

  1. Open any DetailView
  2. I save the view in such a way that the validator works.
  3. I don’t save the view, I just close it and get an error

If you refresh the view after the validator appears and close it, there is no error.

Stack:
Object reference not set to an instance of an object.

at Xpand.XAF.Modules.SequenceGenerator.SequenceGeneratorService.<>c__DisplayClass30_1.b__5()
at System.Reactive.Linq.ObservableImpl.Finally1._.Dispose(Boolean disposing) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Finally.cs:line 67 at System.Reactive.Disposables.CompositeDisposable.Remove(IDisposable item) in /_/Rx.NET/Source/src/System.Reactive/Disposables/CompositeDisposable.cs:line 214 at System.Reactive.Linq.ObservableImpl.SelectMany2.ObservableSelector..InnerObserver.OnCompleted() in //Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:line 964
at System.Reactive.Sink1.ForwardOnCompleted() in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 54 at System.Reactive.Sink1.ForwardOnCompleted() in //Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 54
at System.Reactive.Sink1.ForwardOnCompleted() in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 54 at System.Reactive.Sink1.ForwardOnCompleted() in /
/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 54
at System.Reactive.Sink1.ForwardOnCompleted() in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 54 at System.Reactive.Sink1.ForwardOnCompleted() in //Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 54
at System.Reactive.SafeObserver1.WrappingSafeObserver.OnNext(TSource value) in /_/Rx.NET/Source/src/System.Reactive/Internal/SafeObserver.cs:line 30 at System.Reactive.Linq.ObservableImpl.Take1.Count.
.OnNext(TSource value) in //Rx.NET/Source/src/System.Reactive/Linq/Observable/Take.cs:line 59
at System.Reactive.Subjects.Subject`1.OnNext(T value) in /
/Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:line 145
at System.ComponentModel.Component.Dispose(Boolean disposing)
at DevExpress.ExpressApp.Xpo.XPObjectSpace.DisposeSession(Session session)
at DevExpress.ExpressApp.Xpo.XPObjectSpace.Dispose()
at DevExpress.ExpressApp.CompositeView.DisposeObjectSpace()
at DevExpress.ExpressApp.CompositeView.DisposeCore()
at DevExpress.Persistent.Base.SafeExecutor.Execute(Method method, Object targetObject, String targetObjectIdentifier)
at DevExpress.ExpressApp.View.Dispose()
at DevExpress.Persistent.Base.SafeExecutor.Execute(Method method, Object targetObject, String targetObjectIdentifier)
at DevExpress.ExpressApp.Frame.Dispose()
at DevExpress.ExpressApp.Win.WinShowViewStrategyBase.ShowViewInModalWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewInModalWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

@allshib allshib added Bug Reactive.XAF eXpandFrameowrk/DevExpress.XAF project labels Nov 20, 2023
@apobekiaris
Copy link
Member

post a sampl please

@vimarx
Copy link
Member

vimarx commented Nov 20, 2023

Hi, this is the same issue as #1009 , I could repro it with @allshib instructions, attached repro example and video
Thanks
https://github.com/eXpandFramework/eXpand/assets/226800/c670e8bf-3f9e-4717-bec8-ed471c236f3e

DXApplication2.zip

@apobekiaris
Copy link
Member

The pre-release 4.231.6.0 in the Reactive.XAF lab branch includes commits that relate to this task:

To minimize version conflicts we recommend that you use the Xpand.XAF.Core.All, Xpand.XAF.Win.All, Xpand.XAF.Web.All packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Released packages: Xpand.Extensions v.4.231.6
Xpand.Extensions.Blazor v.4.231.6
Xpand.Extensions.Mono.Cecil v.4.231.6
Xpand.Extensions.Office.Cloud v.4.231.6
Xpand.Extensions.Office.Cloud.Google.Blazor v.4.231.6
Xpand.Extensions.Reactive v.4.231.6
Xpand.Extensions.XAF v.4.231.6
Xpand.Extensions.XAF.Xpo v.4.231.6
Xpand.TestsLib v.4.231.6
Xpand.TestsLib.Blazor v.4.231.6
Xpand.TestsLib.Common v.4.231.6
Xpand.TestsLib.EasyTest v.4.231.6
Xpand.VersionConverter v.4.231.6
Xpand.XAF.Core.All v.4.231.6
Xpand.XAF.Modules.AutoCommit v.4.231.6
Xpand.XAF.Modules.Blazor v.4.231.6
Xpand.XAF.Modules.BulkObjectUpdate v.4.231.6
Xpand.XAF.Modules.CloneMemberValue v.4.231.6
Xpand.XAF.Modules.CloneModelView v.4.231.6
Xpand.XAF.Modules.Email v.4.231.6
Xpand.XAF.Modules.GridListEditor v.4.231.6
Xpand.XAF.Modules.HideToolBar v.4.231.6
Xpand.XAF.Modules.JobScheduler.Hangfire v.4.231.6
Xpand.XAF.Modules.JobScheduler.Notification v.4.231.6
Xpand.XAF.Modules.MasterDetail v.4.231.6
Xpand.XAF.Modules.ModelMapper v.4.231.6
Xpand.XAF.Modules.ModelViewInheritance v.4.231.6
Xpand.XAF.Modules.Office.Cloud.Google v.4.231.6
Xpand.XAF.Modules.Office.Cloud.Google.Calendar v.4.231.6
Xpand.XAF.Modules.Office.Cloud.Google.Tasks v.4.231.6
Xpand.XAF.Modules.Office.DocumentStyleManager v.4.231.6
Xpand.XAF.Modules.OneView v.4.231.6
Xpand.XAF.Modules.PositionInListView v.4.231.6
Xpand.XAF.Modules.ProgressBarViewItem v.4.231.6
Xpand.XAF.Modules.RazorView v.4.231.6
Xpand.XAF.Modules.Reactive v.4.231.6
Xpand.XAF.Modules.Reactive.Logger v.4.231.6
Xpand.XAF.Modules.Reactive.Logger.Client.Win v.4.231.6
Xpand.XAF.Modules.Reactive.Logger.Hub v.4.231.6
Xpand.XAF.Modules.Reactive.Rest v.4.231.6
Xpand.XAF.Modules.RefreshView v.4.231.6
Xpand.XAF.Modules.SequenceGenerator v.4.231.6
Xpand.XAF.Modules.Speech v.4.231.6
Xpand.XAF.Modules.SpellChecker v.4.231.6
Xpand.XAF.Modules.StoreToDisk v.4.231.6
Xpand.XAF.Modules.SuppressConfirmation v.4.231.6
Xpand.XAF.Modules.TenantManager v.4.231.6
Xpand.XAF.Modules.ViewEditMode v.4.231.6
Xpand.XAF.Modules.ViewItemValue v.4.231.6
Xpand.XAF.Modules.ViewWizard v.4.231.6
Xpand.XAF.Modules.Windows v.4.231.6
Xpand.XAF.Web.All v.4.231.6
Xpand.XAF.Win.All v.4.231.6

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.

If you do not use these packages directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.

Thanks a lot for your contribution.

@apobekiaris apobekiaris added this to the 21.2.702.0 milestone Nov 21, 2023
@apobekiaris
Copy link
Member

eXpand.lab release 23.1.601.2 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

To minimize version conflicts we recommend that you switch to PackageReference format and use only the eXpandAgnostic, eXpandWin, eXpandWeb packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Thanks a lot for your contribution.

@apobekiaris apobekiaris removed their assignment Nov 24, 2023
apobekiaris added a commit that referenced this issue Dec 21, 2023
@allshib
Copy link
Author

allshib commented Feb 15, 2024

After updating the version to 23.2.4. There is no more error.

@allshib allshib closed this as completed Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reactive.XAF eXpandFrameowrk/DevExpress.XAF project SequenceGenerator
Projects
None yet
Development

No branches or pull requests

3 participants