User interface frozen when creating production request

38 views
Skip to first unread message

Marko Randjelovic

unread,
Jul 27, 2016, 6:00:07 PM7/27/16
to tryton
I double clicked "Create Production Request" from the menu and a wizard appeared with question "Create production request?". I clicked on "Create" button and after theat user interface froze and remained so forever. The only that worked was to click on x to close Tryton client.

I don't know if this is a bug but look so.
Client version 4.0.3. Server version 4.1.0.

Regards,
Marko

Cédric Krier

unread,
Jul 27, 2016, 7:25:04 PM7/27/16
to tryton
On 2016-07-27 13:12, Marko Randjelovic wrote:
> I double clicked "Create Production Request" from the menu and a wizard
> appeared with question "Create production request?". I clicked on "Create"
> button and after theat user interface froze and remained so forever. The
> only that worked was to click on x to close Tryton client.
>
> I don't know if this is a bug but look so.

Just wait it finishes to compute.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Sergi Almacellas Abellana

unread,
Jul 28, 2016, 3:55:13 AM7/28/16
to try...@googlegroups.com
El 27/07/16 a les 22:12, Marko Randjelovic ha escrit:
> I double clicked "Create Production Request" from the menu and a wizard
> appeared with question "Create production request?". I clicked on
> "Create" button and after theat user interface froze and remained so
> forever. The only that worked was to click on x to close Tryton client.
>

For me you did not wait enougth to the process to finish.

> I don't know if this is a bug but look so.
> Client version 4.0.3. Server version 4.1.0.
It's not possible to mix client version 4.0 with server version 4.1. So
here there is something wrong.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Marko Randjelovic

unread,
Jul 28, 2016, 4:50:03 AM7/28/16
to tryton


On Thursday, July 28, 2016 at 9:55:13 AM UTC+2, Sergi Almacellas Abellana wrote:
El 27/07/16 a les 22:12, Marko Randjelovic ha escrit:
> I double clicked "Create Production Request" from the menu and a wizard
> appeared with question "Create production request?". I clicked on
> "Create" button and after theat user interface froze and remained so
> forever. The only that worked was to click on x to close Tryton client.
>

For me you did not wait enougth to the process to finish.

And can you tell me how long should be enough?
 

> I don't know if this is a bug but look so.
> Client version 4.0.3. Server version 4.1.0.
It's not possible to mix client version 4.0 with server version 4.1. So
here there is something wrong.


4.0.3 is the latest version for client and 4.1.0 for server. I did hg npull for both repos.
 

Marko Randjelovic

unread,
Jul 28, 2016, 4:50:05 AM7/28/16
to tryton
On Thursday, July 28, 2016 at 9:55:13 AM UTC+2, Sergi Almacellas Abellana wrote:
El 27/07/16 a les 22:12, Marko Randjelovic ha escrit:
> I double clicked "Create Production Request" from the menu and a wizard
> appeared with question "Create production request?". I clicked on
> "Create" button and after theat user interface froze and remained so
> forever. The only that worked was to click on x to close Tryton client.
>

For me you did not wait enougth to the process to finish.

Just to make note I have only 5 products.
 

Sergi Almacellas Abellana

unread,
Jul 28, 2016, 4:56:53 AM7/28/16
to try...@googlegroups.com
El 28/07/16 a les 10:13, Marko Randjelovic ha escrit:
>
>
> On Thursday, July 28, 2016 at 9:55:13 AM UTC+2, Sergi Almacellas
> Abellana wrote:
>
> El 27/07/16 a les 22:12, Marko Randjelovic ha escrit:
> > I double clicked "Create Production Request" from the menu and a
> wizard
> > appeared with question "Create production request?". I clicked on
> > "Create" button and after theat user interface froze and remained so
> > forever. The only that worked was to click on x to close Tryton
> client.
> >
>
> For me you did not wait enougth to the process to finish.
>
>
> And can you tell me how long should be enough?

It depends on the number of the requests the process have to create, but
if you have only 5 products and not so many recursive requests to create
it should not spend so much time.

BTW: Could you explain the steps to reproduce it?

>
>
>
> > I don't know if this is a bug but look so.
> > Client version 4.0.3. Server version 4.1.0.
> It's not possible to mix client version 4.0 with server version 4.1. So
> here there is something wrong.
>
>
> 4.0.3 is the latest version for client and 4.1.0 for server. I did hg
> npull for both repos.

4.1 is the development series and is not released and 4.0 is the latests
stable series.

Before connecting the client checks [1] if the server version is
compatible with the server. So I highly doubt you are conecting on a 4.1
server with a 4.0 client.


[1]
http://hg.tryton.org/tryton/file/f8a09b793a16/tryton/gui/window/dblogin.py#l299

Marko Randjelovic

unread,
Jul 28, 2016, 6:05:07 AM7/28/16
to tryton


On Thursday, July 28, 2016 at 10:56:53 AM UTC+2, Sergi Almacellas Abellana wrote:
El 28/07/16 a les 10:13, Marko Randjelovic ha escrit:
>
>
> On Thursday, July 28, 2016 at 9:55:13 AM UTC+2, Sergi Almacellas
> Abellana wrote:
>
>     El 27/07/16 a les 22:12, Marko Randjelovic ha escrit:
>     > I double clicked "Create Production Request" from the menu and a
>     wizard
>     > appeared with question "Create production request?". I clicked on
>     > "Create" button and after theat user interface froze and remained so
>     > forever. The only that worked was to click on x to close Tryton
>     client.
>     >
>
>     For me you did not wait enougth to the process to finish.
>
>
> And can you tell me how long should be enough?

It depends on the number of the requests the process have to create, but
if you have only 5 products and not so many recursive requests to create
it should not spend so much time.

 I have 5 products defined and 3 BOMs. Regarding BOMs, there is recursive relationship.


BTW: Could you explain the steps to reproduce it?


I just double click "Production/Productions/Create Production Requests". Then wizard appears with the question "Create Production Requests?" At the bottom of the window there are two buttons: 'Cancel' and 'Create'. I clicked on 'Create' and mouse pointer turned into a clock. I can still click on 'Cancel'/'Create' but nothing happens. That was at 10:30. Now is past 11:30 and mouse pointer is still clock.

 
>
>
>
>     > I don't know if this is a bug but look so.
>     > Client version 4.0.3. Server version 4.1.0.
>     It's not possible to mix client version 4.0 with server version 4.1. So
>     here there is something wrong.
>
>
> 4.0.3 is the latest version for client and 4.1.0 for server. I did hg
> npull for both repos.

4.1 is the development series and is not released and 4.0 is the latests
stable series.

Before connecting the client checks [1] if the server version is
compatible with the server. So I highly doubt you are conecting on a 4.1
server with a 4.0 client.



Both versions are the latest development versions. I just used

hg nclone http://hg.tryton.org/4.0/trytond
hg nclone http://hg.tryton.org/tryton

to get initial versions and later used

hg npull

to update. Curretnly they are both fully ahead and version of the client is 4.0.3 and version of the server is 4.1.0. I don't know why the versions are different and they obviously work together.

Regards
 

Cédric Krier

unread,
Jul 28, 2016, 6:30:05 AM7/28/16
to tryton
On 2016-07-28 02:50, Marko Randjelovic wrote:
> I have 5 products defined and 3 BOMs. Regarding BOMs, there is recursive
> relationship.

You can not have recursive BOMs. The process is in an infinite loop,
that will stop once you will reach the Python stack limit or your
machine memory.
It is very complex to detect such cases because there are valid cases
where you could have loops in the BOMs (like a catalyst but such
product should never be configured to be produced by such BOM). But in
real life there are no product that needs itself to be produced.

Marko Randjelovic

unread,
Jul 28, 2016, 9:45:03 AM7/28/16
to tryton


On Thursday, July 28, 2016 at 12:30:05 PM UTC+2, Cédric Krier wrote:
On 2016-07-28 02:50, Marko Randjelovic wrote:
>  I have 5 products defined and 3 BOMs. Regarding BOMs, there is recursive
> relationship.

You can not have recursive BOMs. The process is in an infinite loop,
that will stop once you will reach the Python stack limit or your
machine memory.
It is very complex to detect such cases because there are valid cases
where you could have loops in the BOMs (like a catalyst but such
product should never be configured to be produced by such BOM). But in
real life there are no product that needs itself to be produced.

I expressed myself in a wrong way. I wongly used the term "recursive relationship". I wanted to say, that the structure is hierarchical with depth more than 1, i.e. that there are parts of a product that are themselves represented as a list of other products.
 
Reply all
Reply to author
Forward
0 new messages