# Missing (not found) function/object

**URL:** https://discourse.vtk.org/t/missing-not-found-function-object/5022
**Category:** Support
**Created:** [January 15, 2021, 10:10pm UTC](https://discourse.vtk.org/t/missing-not-found-function-object/5022 "2021-01-15T22:10:00Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [February 2, 2021, 4:43pm UTC](https://discourse.vtk.org/t/missing-not-found-function-object/5022/22 "2021-02-02T16:43:27Z")

</div>

The SmartConnect will try to reach the launcher to start a session to connect to. If such request fails (like it should in your current setup / dev mode), the sessionURL will be guessed based on current host:port.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [February 22, 2021, 8:01pm UTC](https://discourse.vtk.org/t/missing-not-found-function-object/5022/23 "2021-02-22T20:01:29Z")

</div>

Dear All,

I do not know why after window render update the program do not goes on.

If I take out the sleep it goes on but the window freezes and windows system become unstable.

But with the sleep it do not run further despite it remove the actors of the window (camera).

This happens in Windows and also in Linux.

Thanks,

Luís Gonçalves  
See the code below of my keypress handler:

* * *

```
@exportRpc("keypressed")
def keypressed1(self, event):
    print("key: ",event['key'])
    print("keyCode: ",event['keyCode'])
    renderWindow = self.getView('-1')
    renderer = renderWindow.GetRenderers().GetFirstRenderer()
    if ((event['key']=='d') or (event['key']=='D')):

       if ((len(self.x1) == 18) and (len(self.sidex)==6)): # this condition is obeyed.

            print("Key D")
            for x in range(6):
                renderer.RemoveActor(self.actor[x]) #it removes ok
            renderWindow.Modified() # the window is actualized with removed actors
            print("Key D-4")   
            sleep(1) # Needs this sleep for the actors be removed. If not the sleep, the program goes on and the client window (and perhaps of the server) freeze without removing the Actors. The Windows system turns unstable.
            print("Key D-3") # This print do not happens
            plane1 = vtk.vtkPlane()
            print("Key D-2")

```

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*+

Output:

key: d  
keyCode: 100  
Key D  
Key D-4

* * *

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [February 22, 2021, 8:49pm UTC](https://discourse.vtk.org/t/missing-not-found-function-object/5022/24 "2021-02-22T20:49:06Z")

</div>

Missing (not found) function/object? Is the question related to that?

What happen if you do not call `renderWindow.Modified()`?

[Previous page](https://discourse.vtk.org/t/missing-not-found-function-object/5022.md?page=1)
