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
Memory leak with Printing C# Sample? #333
Comments
Hi, I have the same issue with the provided printing scenario and I would be very happy if somebody could tell me how to avoid the memory overflow. I have programmed a little app where the user can easily create a purchase list with different products. Therefore I have studied the Scenario 1 of the provided printing sample.
The same behavior can be monitored with the Lumia 950 - even if it takes more times of repeats to get the exception thrown becauseof the greater memory. By catching the thrown exception I get the message: This exception is thrown in the procedure getPrintPreviewPage(...) before this code-line is executing: I'm really desperate because I have already tried so much to avoid this Memory leak with different attempts. Maybe someone could help me to solve this Problem? Kind regards from Germany, |
I've asked the feature team to investigate. |
The feature team has confirmed a memory leak. They are working to fix it. Thanks for reporting. |
Thank you for fixing! |
I am still encountering this Memory Leak, I believe we need to repopen this issue since the fix is still not in place. |
Yes, the feature team is working on the fix. The memory leak is not due to a bug in the sample, so the samples issue remains closed. You are welcome to open a Feedback Hub item to report the platform issue. |
We have recently discovered this bug is causing major problems on our kiosk mode LOB app because of the increase in memory every time the users print (the app does not get restarted). Is there anywhere else I can log this as an issue to try and get updates on progress etc? |
You can open a Feedback Hub item. I think "Developer Platform" is the category. |
Thanks - I have done that now. https://aka.ms/AA22cmx |
I'm having the same issue but can't find where this fix has been posted. Any help? |
The issue is not fixed as of build 1809. We are now disabling the print preview on our LOB which results in a massive memory reduction.
…
On Mon, Nov 12, 2018 at 7:08 PM jeanmarc3 ***@***.***> wrote: I'm having the same issue but can't find where this fix has been posted. Any help? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#333 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AUXu_bnaQnG04VtEHJatgeHD3YeabSB8ks5uuccjgaJpZM4H32xL> .
|
Thanks Ryan for the answer. It is a bit scary that Microsoft seems to drop UWP support completely (starting with Office apps...). Did you end up writing your own print preview screen, or just do like Scenario 6 or the sample app? |
I don't think they are dropping UWP support unless you know something I don't? Yep I just used the Scenario 6 example to hide print preview. Our app is a mobile van sales system and prints 60+ orders a day. It runs in kiosk mode and never releases any memory. With the print preview enabled it can be up to close to 1.7gb RAM by the end of a run!
…
Sent from my iPhone
On 13 Nov 2018, at 15:14, jeanmarc3 ***@***.***> wrote: Thanks Ryan for the answer. It is a bit scary that Microsoft seems to drop UWP support completely (starting with Office apps...). Did you end up writing your own print preview screen, or just do like Scenario 6 or the sample app? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
|
its almost 2021 and they still didn't resolve this issue, print 10 pages and 1GB is wasted... |
i will say the same. still not fixed. what are UWP developer to do with this? any pointers on certain parts of the code that we can make sure their objects are getting destroyed by explicit garbage collection? ive tried everything and this is a huge leak. customers are expecting to have a print preview dialog. |
Why is this closed - it's well into 2021 and this is definitely not fixed. |
Because it's not a bug in the sample. It's a bug in the OS. |
@oldnewthing: Thanks for confirming. My angst was (slightly) misdirected. @michaelrinderle : Yes, I've had to disable printing on 32 bit builds because of this. |
@oldnewthing : Should have added one more thing ... per your Aug 15, 2018 comment
I can't say how much I wish this was helpful. It's almost as if Feedback Hub is where all well intentioned issues go to die. Is there any chance there is a GitHub repo that we could report this issue? |
I forwarded it to them when the issue was opened in 2016 but never heard back. I went and kicked the thread again. |
@oldnewthing : I would be happy to provide a demo project and submit a bug report / issue ... if I knew it was going to be seen and be helpful to the devs. edit: Is there a github repo where I could do that? |
@baskren this was apparently fixed in Windows 11 Insider Preview Build 22000.65 I guess @oldnewthing forwarding it again led to it getting fixed |
@pratikpc - Thank you for closing the thread. |
For a Printing C# Sample for Uiversal Windows Application
result, a large amount of memory is leaked.
Whether there is a problem in procedure of calling the sample
, or the bug of Windows 10?
The text was updated successfully, but these errors were encountered: