Comments (6)
It seems that I had the entire thing before - this is the start of the log:
2024-04-29 08:48:03,485 - WARNING - __init__:__init__:68 - Backend backend_caldav could not be loaded: ModuleNotFoundError("No module named 'caldav'")
Gtk-Message: 08:48:03.674: GtkDialog mapped without a transient parent. This is discouraged.
Traceback (most recent call last):
File "<< GTG source >>/.local_build/install/lib/python3/dist-packages/GTG/gtk/browser/sidebar.py", line 286, in tags_setup_cb
expander.set_indent_for_depth(True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TreeExpander' object has no attribute 'set_indent_for_depth'. Did you mean: 'set_indent_for_icon'?
Gtk-Message: 08:48:03.678: GtkDialog mapped without a transient parent. This is discouraged.
Traceback (most recent call last):
File "<< GTG source >>/.local_build/install/lib/python3/dist-packages/GTG/gtk/browser/sidebar.py", line 355, in tags_bind_cb
expander = box.get_first_child()
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_first_child'
and then everything repeats except the first line.
So, two things I'd like to do here:
- Require GTK 4.10 explicitly
- Avoid opening an exception dialog when one is already open
from gtg.
I am trying to reproduce the crash. Could you please provide more details about your setup? Does this happen with the default dataset? What is your exact GTK version?
There are two different errors:
-
AttributeError: 'TreeExpander' object has no attribute 'set_indent_for_depth'
Based on the GTK documentation, this method is present from version 4.10. Is it possible that you have an older version? -
AttributeError: 'NoneType' object has no attribute 'get_first_child'
Maybe this is just a consequence of the first error. Could you please try to capture the beginning of your error message?
from gtg.
Thanks for looking at it! I have GTK 4.8.3, which seems to explain the problem. Let's make 4.10 an explicit requirement then (here, I think? and in the README).
It happens with the default dataset as well.
Could you please try to capture the beginning of your error message?
I'll try that when I have a minute! I assume I just need to disable the code that catches the exception and opens the dialog.
Side note: I'll probably create new issue for this, but I'd like to avoid "infinite dialogs" as a failure mode. Probably by detecting whether the error dialog is already open, and avoiding to open a new one.
from gtg.
I'll try that when I have a minute! I assume I just need to disable the code that catches the exception and opens the dialog.
You can also just redirect the error output to a file like this:
./launch.sh 2> output.txt
Then hit Ctrl + C
in the terminal to exit GTG.
from gtg.
Some pieces of notes with my current understanding of the problem:
- The TaskPane is created
- It connects some "setup" signal to
task_setup_cb()
task_setup_cb()
is called- It tries to create a TaskBox
- The constructor of TaskBox calls
self.expander.set_indent_for_depth(True)
, which raises an AttributeError in GTK<4.10 task_setup_cb()
propagates the exception- It gets caught by the application, which creates an opens the
ExceptionHandlerDialog
- Meanwhile, the "setup" signal is sent again, and we're back at step 3
Being on GTK 4.10 means that step 5 doesn't fail, but any exception in the TaskBox constructor has the same effect.
My current idea is to not open the ExceptionHandlerDialog
of step 7 if one is already open.
from gtg.
Related Issues (20)
- Outdated meson.build HOT 1
- TypeError: '>' not supported between instances of 'NoneType' and 'NoneType' HOT 2
- Bug: Setting repeat changes already defined du date
- Inconsistent rules for tag names
- Effective due date isn't shown in main view
- Relative due dates don't update when the date changes HOT 1
- Can't select a date exactly a month away HOT 3
- AttributeError when setting start date HOT 1
- Reopening a task with children adds a blank line before the list of children
- Children's tasks no longer inherit their parent's tags
- Actionable child is missing from the Actionable view
- Migrate website away from wiki.gnome.org HOT 4
- Crashes on Launch HOT 4
- How to not show Tasks' pop-up window when GTG launches HOT 3
- Hamster integration HOT 1
- edit tag name HOT 2
- description preview shows & in place of &
- Cannot remove tags, selecting to delete the same tag twice induces crash HOT 6
- AttributeError: 'Date' object has no attribute 'year' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtg.