cjhosken / NCCARenderFarmTools

My attempt at improving the NCCA renderfarm.
GNU General Public License v3.0
1 stars 0 forks source link

File browser refreshing #35

Closed cjhosken closed 2 months ago

cjhosken commented 2 months ago

The file browser doesn't update when you delete or add files, need to find a way to show realtime updates.

cjhosken commented 2 months ago

The filebrowser now has auto refreshing for delete, as well as refresh button that users can manually press.

However, all expanded folders will be closed when refresh is called.

cjhosken commented 2 months ago

I've got a method that seems to work in theory, however Maya crashes each time I run it.

//=====================================================
Maya Crash Report
//=====================================================

Exception code: C0000005: ACCESS_VIOLATION - illegal write at address 0x00000001
Fault address:  5572955D in C:\Program Files\Autodesk\Maya2023\bin\python39.dll
0001:0002855D Logical offset (see .map file for location)

Call stack:
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dll_PyEval_EvalFrameDefault + 1A11 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dllPyObject_GC_Del + C53 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dllPyLong_AsDouble + 718 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dll_PyEval_EvalFrameDefault + 182A bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dllPyLong_AsDouble + 60B bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dll_PyEval_EvalFrameDefault + 182A bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dllPyLong_AsDouble + 60B bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dll_PyEval_EvalFrameDefault + 182A bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dll_PyFunction_Vectorcall + 174 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dllPyLong_AsDouble + 9FE bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dllPyVectorcall_Call + 5C bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\python39.dll (-exported-)
    Location: python39.dll_PyObject_Call + 4F bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\pyside2.cp39-win_amd64.dll (-exported-)
    Location: pyside2.cp39-win_amd64.dllPySide::SignalManager::notifyGlobalReceiver + BE6D bytes
    Decl: public: void __cdecl PySide::SignalManager::notifyGlobalReceiver(class QObject * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\pyside2.cp39-win_amd64.dll (-exported-)
    Location: pyside2.cp39-win_amd64.dllPySide::SignalManager::notifyGlobalReceiver + BCC8 bytes
    Decl: public: void __cdecl PySide::SignalManager::notifyGlobalReceiver(class QObject * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\pyside2.cp39-win_amd64.dll (-exported-)
    Location: pyside2.cp39-win_amd64.dllPySide::SignalManager::notifyGlobalReceiver + D53A bytes
    Decl: public: void __cdecl PySide::SignalManager::notifyGlobalReceiver(class QObject * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\Python\lib\site-packages\PySide2\QtWidgets.cp39-win_amd64.pyd (-exported-)
    Location: QtWidgets.cp39-win_amd64.pydPyInit_QtWidgets + 2DF430 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQObject::qt_static_metacall + 1482 bytes
    Decl: private: static void __cdecl QObject::qt_static_metacall(class QObject * __ptr64,enum QMetaObject::Call,int,void * __ptr64 * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQAbstractButton::clicked + A7 bytes
    Decl: public: void __cdecl QAbstractButton::clicked(bool) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQAbstractButton::click + 198 bytes
    Decl: public: void __cdecl QAbstractButton::click(void) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQAbstractButton::mouseReleaseEvent + 9D bytes
    Decl: protected: virtual void __cdecl QAbstractButton::mouseReleaseEvent(class QMouseEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\Python\lib\site-packages\PySide2\QtWidgets.cp39-win_amd64.pyd (-exported-)
    Location: QtWidgets.cp39-win_amd64.pydPyInit_QtWidgets + 35750D bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQWidget::event + 132 bytes
    Decl: protected: virtual bool __cdecl QWidget::event(class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\Python\lib\site-packages\PySide2\QtWidgets.cp39-win_amd64.pyd (-exported-)
    Location: QtWidgets.cp39-win_amd64.pydPyInit_QtWidgets + 354E82 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplicationPrivate::notify_helper + 110 bytes
    Decl: public: bool __cdecl QApplicationPrivate::notify_helper(class QObject * __ptr64,class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplication::notify + 750 bytes
    Decl: public: virtual bool __cdecl QApplication::notify(class QObject * __ptr64,class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllQmayaApplication::currentSystemMouseButtons + 671 bytes
    Decl: public: static class QFlags<enum Qt::MouseButton> __cdecl QmayaApplication::currentSystemMouseButtons(void)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQCoreApplication::notifyInternal2 + BA bytes
    Decl: private: static bool __cdecl QCoreApplication::notifyInternal2(class QObject * __ptr64,class QEvent * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplicationPrivate::sendMouseEvent + 3C5 bytes
    Decl: public: static bool __cdecl QApplicationPrivate::sendMouseEvent(class QWidget * __ptr64,class QMouseEvent * __ptr64,class QWidget * __ptr64,class QWidget * __ptr64,class QWidget * __ptr64 * __ptr64,class QPointer<class QWidget> & __ptr64,bool,bool)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQSizePolicy::QSizePolicy + 2D3A bytes
    Decl: public: __cdecl QSizePolicy::QSizePolicy(void) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQSizePolicy::QSizePolicy + CBE bytes
    Decl: public: __cdecl QSizePolicy::QSizePolicy(void) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplicationPrivate::notify_helper + 110 bytes
    Decl: public: bool __cdecl QApplicationPrivate::notify_helper(class QObject * __ptr64,class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplication::notify + 18B3 bytes
    Decl: public: virtual bool __cdecl QApplication::notify(class QObject * __ptr64,class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllQmayaApplication::currentSystemMouseButtons + 671 bytes
    Decl: public: static class QFlags<enum Qt::MouseButton> __cdecl QmayaApplication::currentSystemMouseButtons(void)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQCoreApplication::notifyInternal2 + BA bytes
    Decl: private: static bool __cdecl QCoreApplication::notifyInternal2(class QObject * __ptr64,class QEvent * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Gui.dll (-exported-)
    Location: Qt5Gui.dllQGuiApplicationPrivate::processMouseEvent + 936 bytes
    Decl: public: static void __cdecl QGuiApplicationPrivate::processMouseEvent(class QWindowSystemInterfacePrivate::MouseEvent * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Gui.dll (-exported-)
    Location: Qt5Gui.dllQWindowSystemInterface::sendWindowSystemEvents + 90 bytes
    Decl: public: static bool __cdecl QWindowSystemInterface::sendWindowSystemEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQEventDispatcherWin32::processEvents + 6A bytes
    Decl: public: virtual bool __cdecl QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\plugins\platforms\qwindows.dll (-exported-)
    Location: qwindows.dllqt_plugin_query_metadata + 1F99 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQEventLoop::exec + 1BC bytes
    Decl: public: int __cdecl QEventLoop::exec(class QFlags<enum QEventLoop::ProcessEventsFlag>) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQCoreApplication::exec + 154 bytes
    Decl: public: static int __cdecl QCoreApplication::exec(void)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTapplication::start + E5 bytes
    Decl: public: void __cdecl Tapplication::start(void) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\maya.exe (-exported-)
    Location: maya.exeTiteratorWrapperFwd<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator++ + 1490 bytes
    Decl: public: class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> & __ptr64 __cdecl TiteratorWrapperFwd<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> >::operator++
    Module:  C:\Program Files\Autodesk\Maya2023\bin\maya.exe (-exported-)
    Location: maya.exeTiteratorWrapperFwd<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator++ + 17E77 bytes
    Decl: public: class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> & __ptr64 __cdecl TiteratorWrapperFwd<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> >::operator++
    Module:  C:\Program Files\Autodesk\Maya2023\bin\maya.exe (-exported-)
    Location: maya.exeTiteratorWrapperFwd<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator++ + 16FAA bytes
    Decl: public: class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> & __ptr64 __cdecl TiteratorWrapperFwd<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> >::operator++
    Module:  C:\WINDOWS\System32\KERNEL32.DLL (-exported-)
    Location: KERNEL32.DLLBaseThreadInitThunk + 14 bytes
    Module:  C:\WINDOWS\SYSTEM32\ntdll.dll (-exported-)
    Location: ntdll.dllRtlUserThreadStart + 21 bytes
End of stack

//crash log file name = C:\Users\s5605094\AppData\Local\Temp\MayaCrashLog240829.1733.log
//version     = 23.3.0.2072
//cut            =  11/02/2022, 202211021031
//current scene = unDisclosed
//command history (most recent last):
//====================================================
//last tool: renderWindowSelectContextItem
//====================================================
//panel with focus: scriptEditorPanel1
//visible panels:
// modelPanel4 outlinerPanel1 scriptEditorPanel1 
//====================================================
//Memory usage:
// 51057.027 Mb Free Memory
// 59796.738 Mb Free Swap
// 2381.441 Mb  Current

//====================================================

probably has something to do with accessing invalid indexes, or recursion? who knows....

cjhosken commented 2 months ago

Re-used the code from the original standalone file browser. All seems to be working now!