AttributeError: 'NoneType' object has no attribute...

   8421   8   1
User Avatar
Member
41 posts
Joined: April 2020
Offline
Hi everybody,

for a couple of weeks I get an error whenever I switch views:



I already updated Python to the newest version but it didn't help.
Is there a way to get rid of this?
This is really annoying...

Günther

Attachments:
HoudiniError.png (19.4 KB)

User Avatar
Member
2658 posts
Joined: June 2008
Offline
Review system requirement. Does your system meet the specifications to run Houdini?
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
41 posts
Joined: April 2020
Offline
I'm working with Houdini for more than 3 years, and this error occurs for a couple of weeks now. And this error only happens when I switch from one view to an other. And the error message doesn't sound like a "system problem", more like a Python problem...

My system:
AMD Ryzen7 5800X 8-Core, 3.8 GHz.
32 GB RAM
nVidia GeForce RTX 3060 Ti, 8 GB

Should be enough, right?
User Avatar
Member
2658 posts
Joined: June 2008
Offline
It looks like your system meets the specs. I don't see this on my system, with similar hardware. Are you using any custom toolsets? Are you using the Game drivers or the Studio drivers from nVidia? I'm using studio.
Edited by Enivob - May 22, 2023 09:04:49
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
41 posts
Joined: April 2020
Offline
I'm using the Game drivers (531.79). Maybe I'll try the studio drivers.
No custom toolsets installed (except Labs).
Am I really the only one on this planet with this error message? Cool...
User Avatar
Member
243 posts
Joined: May 2017
Offline
Hi,

you may have by mistake registered a callback, although I guess it's an internal conflict.
Does this error message occur sporadically or always when you switch views? Did you select a particular node while doing so?

You can actually check if a callback is registered.
Just enter the following into the Python shell (Windows / Python Shell)
scene_viewer = hou.ui.paneTabOfType(hou.paneTabType.SceneViewer)
viewport = scene_viewer.curViewport()
callbacks = viewport.eventCallbacks()
print(callbacks)

Check if the issue occurs only under a certain state. You can also call the Viewer State Browser (Inspectors / Viewer State Browser), which has its own output - if there is an error, then you know what the problem is.
But if you say you've already reinstalled everything, then that probably won't be the case. I would at least move the user dictionary folder content to another location temporarily; this folder remains the same for all major versions, so the error could still exist there.
HOUDINI_USER_PREF_DIR
C:/Users/*/Documents/houdini19.5
User Avatar
Member
72 posts
Joined: Oct. 2018
Offline
Should be related, if not the same as
Side Effects Support Ticket: #136088
I had this issue only with scene viewers in floating windows. The scene viewers, that were attached to the main window were not affected...

At one point I even got a SIGSEV in je_bitmap_unset

And on another occasion this: in the python shell
 Traceback (most recent call last):
  File
"/opt/hfs19.5.605/houdini/python3.7libs/houpythonportion/qt/ViewerOverlay.py",line 57, in closeEvent
    self._scene_viewer.removeEventCallback(self._onViewportEvent)
  File "/opt/hfs19.5.605/houdini/python3.7libs/hou.py", line 77406, in removeEventCallback
    return _hou.SceneViewer_removeEventCallback(self, callback)
hou.ObjectWasDeleted: Attempt to access an object that no longer exists
in Houdini. 
User Avatar
Member
41 posts
Joined: April 2020
Offline
Hi vik_lc, GOgraphR!

thanks for your response! It will take a bit to try those things out, but what I can say is...:

The error only happens when I switch views (perspective to left/right etc.). And I always have that window floating. Have to try if it's different when it's docked. Not sure about the node type, because I switch views pretty often, and it happens ALWAYS. Funny side node, uhm, note: There is a button "Ignore future errors", when I press it, it does simply nothing: the next time I switch views the popup comes again...
User Avatar
Member
41 posts
Joined: April 2020
Offline
btw. Enivob: I installed the studio drivers, but it didn't make any difference.
Edited by Sybaris - May 23, 2023 15:20:43
  • Quick Links