Comments (10)
How are you hitting Back without a Back button?
from template10.
With the Windows key combination.
from template10.
With Windows+BackSpace and hardware keys on your keyboard?
from template10.
Sorry - I should have been more clear. [Alt][Left Arrow].
from template10.
I take it, by the title change, that you've been able to reproduce this problem? If not, it's now even easier than before. If I download a completely clean copy of this solution (which, I'm delighted to say, now builds and doesn't appear to be missing files :-), use "Minimal" as my startup project, enter a value and go to page 2, close the app, open the app again, and click "Back", I get the crash.
from template10.
You and I are equally delighted :) That being said, yes. This is clearly a problem. There was a race condition that was occurring. It might be resolved today. The good news is, this is not a crippling bug at this moment, developers can start to investigate the template without this coming up in most use cases. I sincerely appreciate you finding this bug for us. It would have taken a while before we got around to testing this behavior. Now we can fix it right away.
The fix will include a few things. The first is moving all the state logic out of the NavigationService and into the FrameFacade. This is just a logic move so that state for a frame is part of the frame. Just made sense. Then, there is the issue of the race condition. Changing the direct reference to the container to wrapped Setters is the start of the fix. The rest of the fix, honestly, is still being written so I can’t tell you more because there isn’t more yet. When it is all said and done, any developer using the template won’t even notice that we’ve made a chance :) That’s the goal.
From: plettb [mailto:[email protected]]
Sent: Friday, July 17, 2015 12:08 PM
To: Windows-XAML/Template10
Cc: Jerry Nixon
Subject: Re: [Template10] Crash because of State Container (#8)
I take it, by the title change, that you've been able to reproduce this problem? If not, it's now even easier than before. If I download a completely clean copy of this solution (which, I'm delighted to say, now builds and doesn't appear to be missing files :-), use "Minimal" as my startup project, enter a value and go to page 2, close the app, open the app again, and click "Back", I get the crash.
—
Reply to this email directly or view it on GitHub #8 (comment) .
from template10.
I look forward to the fix. :-) (I'd gladly help, but I can't keep up with my OWN code, let alone help with this.)
By the way, I also get an exception any time I close the "Sample" app, but I'm guessing that's unrelated and I should add another issue about it. Unfortunately, as I alluded to, I just don't have nearly as much time for this kind of thing as I'd like!
from template10.
I have noted occasional instability in the state code when exiting apps - I'll keep an eye out for the culprit (it may be a timing issue...)
from template10.
I am going to leave this issue open until we can be confident that this has been resolved. I feel it has been, but I feel it has been resolved through general refactoring that has occurred not through a deliberate fix. So it feels right, but we can confirm it if it remains stable for the next little while.
from template10.
Okay, I am confident now. I've tested your scenario and several others.
from template10.
Related Issues (20)
- Discussion: How to handle Background Tasks. HOT 1
- Unable load T10 project form GitHub HOT 13
- Add ToUri() to the PathBuilder HOT 4
- Navigation Services Not working HOT 1
- Reconsider if ViewModelBase should implement NavigationService HOT 1
- Why haven't we implemented auto-discover for Nav/Pages? HOT 1
- Confirm revert projects back to UWP Class Library
- Misleading information about Prism HOT 1
- Misleading exception while failing to deserialize an argument is passed in Navigation Service HOT 1
- Xaml exception (suddenly, without history) HOT 2
- AttachGestures should have an override without Window
- Add Nav extensions off Page types HOT 1
- GestureService shouldn't handle the BackRequested from SystemNavigationManager
- Exception handling in SettingsService HOT 3
- How can I use Navigation Service without Template 10 Bootstrapper? HOT 2
- Any news about future? HOT 1
- I need access to old Nuget packages HOT 1
- Update to reference latest version of Newtonsoft.Json library HOT 2
- Windows 10
- Template 10 ellipsis collapsed error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from template10.