Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning (#<thread: thread1841>): in thread: (memq) bad argument type: #t #27

Open
retroj opened this issue Jun 5, 2018 · 4 comments
Open

Comments

@retroj
Copy link
Owner

retroj commented Jun 5, 2018

With (llog-watch 'update) on, I observed the following in mowedline's output:

update #<active-window-icon> (#<image>)                                                                                                                                                       
  update "workspaces" ("1 <2> 4 8 [9] coe esm taxes")

Warning (#<thread: thread1841>): in thread: (memq) bad argument type: #t
  update "wmflags" ("")
  update #<clock> ("Mon Jun  4 20:46 EDT 2018")                                                                                                                                               
  update "workspaces" ("1 <2> 4 [8] 9 coe esm taxes")                                                                                                                                         

Prior to this I had changed my xrandr configuration to add a second monitor, then restarted my window manager, then changed focus to the second monitor.

Something to notice about this output is that everything after the warning is indented by 2 spaces, which tells me that the llog block for update #<active-window-icon> (#<image>) did not finish normally.

@retroj
Copy link
Owner Author

retroj commented Jun 5, 2018

One of mowedline's threads seems to have stopped.

  • Updates over dbus still work.
  • Clock is still working.
  • alsa volume level is still working.
  • Active-window-icon and active-window-title are not updating.
  • primary-selection and clipboard are not updating

@retroj
Copy link
Owner Author

retroj commented Jun 5, 2018

Also during normal operation, I get logs like this from time to time:

update #<active-window-icon> (#f)
  update #<text-widget> ((0.96 Discharging))
  update #<clock> ("Tue Jun  5 06:35 EDT 2018")
update #<active-window-title> ("mowedline-widgets-ewmh.scm")

Two updates are indented under an update of active-window-icon. This is supposed to be impossible. Any given update should finish processing before another can be processed.

@retroj
Copy link
Owner Author

retroj commented Jun 8, 2018

update "workspaces" ("1 2 4 8 9 [coe] esm taxes wurlitzer")
<active-window-icon> entry
<active-window-icon> got icon
  update #<active-window-icon> (#<image>)
<active-window-icon> exit

Error: (memq) bad argument type: #t

        Call history:

        mowedline-cli.scm:26: k4409
        mowedline.scm:571: llog#llog-unindent
        <eval>    [llog-unindent] (memq type llog-watches)
        <eval>    [llog-unindent] (- llog-depth 1)
        mowedline.scm:702: current-xcontext41674168
        mowedline.scm:702: current-xcontext41674168
        mowedline-cli.scm:26: g4413
        mowedline-cli.scm:26: ##sys#signal              <--

@retroj
Copy link
Owner Author

retroj commented Jun 10, 2018

The error with memq was from llog, so as an experiment, I changed llog-watches to be a cell, instead of an ordinary variable. I also have the active-window-icon being fetched and drawn on the mailbox thread instead of in the xlib thread.

<active-window-icon> got icon                  
  update #<active-window-icon> (#f)                          
<active-window-icon> exit                                    
update #<active-window-title> ("tmux")                       
<active-window-icon> entry                                   
<active-window-icon> got icon                                
  update #<active-window-icon> (#f)                          
<active-window-icon> exit

Warning (#<thread: thread1854>): in thread: (assv) bad argument type: transparent

        Call history:

        mowedline.scm:304: alist-ref            <--
  update "workspaces" ("1 [2] 4 8 9 coe esm taxes wurlitzer")
  update "wmflags" ("tabbed")
  update #<text-widget> (asleep)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant