I don't get a backtrace. I added the code to the very beginning of my
.config/awesome/rc.lua and now that code returns this error:

rc.lua:4: ')' expected near '='


On Fri, Jan 25, 2013 at 3:10 AM, Uli Schlachter <[email protected]> wrote:

> Hi,
>
> On 25.01.2013 03:55, J.L.M. wrote:
> > I've Googled the error message, and it shows up nowhere. After fixing my
> > configuration for Awesome 3.5, I still get an error:
> >
> > /usr/share/awesome/lib/awful/widget/button.lua:27: cairo.Surface: not
> > directly instantiable
>
> Hm, I wonder why lua reports the error here. It should be reported in
> gears.surface...
>
> > The line in question is this:
> >
> > local img_release = surface.load(args.image)
>
> Do you create any special buttons or launchers in your config? What are you
> setting their image argument to? I think that something is using nil as the
> image here:
>
> $ lua -e 'require("lgi").cairo.Surface(nil)'
> lua: cairo.Surface: not directly instantiable
>
> Do you get a backtrace from awesome? Perhaps on its stderr? If you don't
> know
> where awesome's stderr was redirected to, then the following command
> *might*
> help you:
>
> ls -l /proc/$(pidof awesome)/fd/2
>
> If you don't get a backtrace (and have no idea about launchers/buttons),
> then
> you could add this to the beginning of your config:
>
> local orig_error = error
> function error(...)
>         print(debug.traceback())
>         require("naughty").notify(text = debug.traceback())
>         orig_error(...)
> end
>
> Uli
> --
> "Every once in a while, declare peace. It confuses the hell out of your
> enemies"
>  - 79th Rule of Acquisition
>
> --
> To unsubscribe, send mail to [email protected].
>

Reply via email to