Jump to content

Application crashing


JhonSina

Recommended Posts

I need help with my application, I use version 1.90.0.1549, it's running on 
windows server 2019 with IIS 10, after a few hours of use it crashes, it only 
works again by restarting the application pool, it doesn't show any error in 
the log, only hangs and stops responding.

 

I was monitoring the system through the unigui monitor, observing, there were 
a couple of sessions, it just freezes and stops responding, and it gets that 
connection loss transparency.
Link to comment
Share on other sites

I did some more tests, realized that the connection loss occurs 
when there is no user interaction, I launched the application, 
opened three sessions, left some forms open and I watched, as 
time goes by, the connection is lost.

 I am using synchronous operations equal to true

3.jpg

2.jpg

1.jpg

Link to comment
Share on other sites

On 10/29/2021 at 10:57 PM, JhonSina said:
Yes, the settings are ok, it's not a iis problem, I think it's something in the application that causes the isapi module to crash during use, before the iss I put it in apache and I had the same problem, I can't identify what it is .

You can use a Tunitimer to avoid the session timeout: TUniTimer.DummyEvents Property (unigui.com)

  • Thanks 1
Link to comment
Share on other sites

I got a north, observing the application for a few days, I noticed that 
it crashes when it comes to destroying the session (session timeout), I 
realized that it only crashes or cannot destroy the session when the user 
has a specific form open , in case it is a budget form, this form I 
include the budget, select the print model and show the pdf on the user's 
screen. 
As it has several budget models, it has several fastraport report components, 
I don't know if that's a problem, but at the moment I haven't been able to find 
out why unigui isn't managing to destroy the session when this form is open with 
a pdf budget open in user screen.

 

Attached is a video showing how the specific form works.

4.jpg

Link to comment
Share on other sites

Using synchronous operations equal to true, we have to be careful with encoding.

In my application there was a form that was causing the crash.
 
A specific routine that contained the while clause, session monitoring helped me a lot in discovering the form involved.

A code from sr.farshad helped a lot, it gets the main module crash error and adds it to the servermodule log.
the code is attached.

ErrorCode.txt

Link to comment
Share on other sites

3 hours ago, JhonSina said:

Using synchronous operations equal to true, we have to be careful with encoding.

In my application there was a form that was causing the crash.
 
A specific routine that contained the while clause, session monitoring helped me a lot in discovering the form involved.

A code from sr.farshad helped a lot, it gets the main module crash error and adds it to the servermodule log.
the code is attached.

ErrorCode.txt 3.46 kB · 5 downloads

Thank you :)

"It is always preferred to create the web application in asynchronous mode"

From :  http://www.unigui.com/doc/online_help/synch-and-asynch-operations.htm?zoom_highlightsub=asynchronous

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...