Viewer doesn't work in terminal

Asked by A Dinesh

When I run a script using

```
yade -x gts_horse.py

```

The viewer is opening but for some reason rather than showing the particles it is capturing the screen.

And after sometime I get a segfault.

```
 --------------------------------------
 dinesh@Personal /home/dinesh/myYade/examples $
| Personal desktop => yade -x gts_horse.py
Welcome to Yade 1.20.0
TCP python prompt on localhost:9000, auth cookie `edckya'
XMLRPC info provider on http://localhost:21000
Running script gts_horse.py
Segmentation fault (core dumped)
```

Both the viewers yade and primary get black and will crash.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hello,

please, always try to provide a MWE [1] or refer to an existing script. In this case, I can **guess** you are using file yade/examples/gts-horse/gts-horse.py.

> yade -x gts_horse.py

-x option means that Yade ends just after executing the script.
The windows are "capturing the screen" while python is computing. Then they work normally (but then yade is exited immediately because of -x)
So just do not use -x option..

cheers
Jan

[1] https://yade-dem.org/wiki/Howtoask

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#2

Thanks Jan Stránský, that solved my question.