Discussion:
[deprecated list] Yade crashes from vertical facets
Anton Gladky
2009-06-25 08:01:45 UTC
Permalink
Hi, all!

I have that YADE crashes because of 1 string in my script.

CODE:
#_______________________________________________________________________
a = 62
b = 40
h = 33
boxThick = 3
boxCoef = 5
a = 0.001*a
b = 0.001*b
h = 0.001*h

#Side 1
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,boxThick*boxCoef)],dynamic=False,color=[0.98,0.984,0.576]))
#_______________________________________________________________________

The process crashes after last string.
But when I change:
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0)..........................
...

to
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef-0.000001,-b/2*boxCoef,0)
...

it works perfect. Maybe there is the division on zero somewhere?

______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Anton Gladky
2009-06-25 08:05:43 UTC
Permalink
If I wait a little bit more I get messages included to attach file.
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Anton Gladky
Hi, all!
I have that YADE crashes because of 1 string in my script.
#_______________________________________________________________________
a = 62
b = 40
h = 33
boxThick = 3
boxCoef = 5
a = 0.001*a
b = 0.001*b
h = 0.001*h
#Side 1
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,boxThick*boxCoef)],dynamic=False,color=[0.98,0.984,0.576]))
#_______________________________________________________________________
The process crashes after last string.
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0)..........................
...
to
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef-0.000001,-b/2*boxCoef,0)
...
it works perfect. Maybe there is the division on zero somewhere?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО
Anton Gladkyy
Václav Šmilauer
2009-06-25 10:01:57 UTC
Permalink
Post by Anton Gladky
If I wait a little bit more I get messages included to attach file.
Backtrace clearly shows crash in the collider (the <signal handler
called> line). Please post your whole script (engines etc).

V


_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-06-25 12:04:45 UTC
Permalink
Script is in attachment.
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Anton Gladky
If I wait a little bit more I get messages included to attach file.
Backtrace clearly shows crash in the collider (the <signal handler called>
line). Please post your whole script (engines etc).
V
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-06-25 12:17:18 UTC
Permalink
When I increase "grainSize" to 2 or more everything works fine.
But when it is 1 - "program kaput"

______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Anton Gladky
Script is in attachment.
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО
Anton Gladkyy
Post by Anton Gladky
If I wait a little bit more I get messages included to attach file.
Backtrace clearly shows crash in the collider (the <signal handler called>
line). Please post your whole script (engines etc).
V
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Václav Šmilauer
2009-06-25 20:55:14 UTC
Permalink
Post by Anton Gladky
Script is in attachment.
Fixed in r1815. Thanks for spotting that corner case. Vaclav



_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-06-25 21:11:24 UTC
Permalink
Thank YOU, Vaclav for fixing it! Yesterday this bug compelled me to kill a
lot of processes :)

______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Václav Šmilauer
Post by Anton Gladky
Script is in attachment.
Fixed in r1815. Thanks for spotting that corner case. Vaclav
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-06-26 12:52:49 UTC
Permalink
I have tested it today for a several times with different parameters, no
problems!
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Anton Gladky
Thank YOU, Vaclav for fixing it! Yesterday this bug compelled me to kill a
lot of processes :)
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО
Anton Gladkyy
Post by Václav Šmilauer
Post by Anton Gladky
Script is in attachment.
Fixed in r1815. Thanks for spotting that corner case. Vaclav
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Loading...