eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
220 stars 114 forks source link

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

Closed allshib closed 6 months ago

allshib commented 9 months ago

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.Finally`1..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.Sink`1.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.Sink`1.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.Take`1.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)

apobekiaris commented 9 months ago

post a sampl please

vimarx commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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.

allshib commented 6 months ago

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