Author Topic: Linux Whiteboard - New version (0.3) available  (Read 40369 times)

Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #15 on: April 10, 2008, 07:45:28 PM
Thank you for the reports.

I'm in the middle of adding lotsa debugging messages, I'll check in an updated version in a few hours.

That message about xcb_lock has to do with GTK+ being a single-threaded GUI. I thought I've patched everything related to that bug (acknowledged when it came up). Looks like I've mistaken.

If it is related to multi-threading issue, you should expect different error messages at different runs. If not, well, please test the next SVN version :-) . I'll put up a notice when it's ready.

Download Linux Whiteboard from Linux Whiteboard homepage


Offline UndCon

  • Support Admin
  • *
  • Posts: 566
  • Karma: +11/-3
    • View Profile
    • UndCon
Reply #16 on: April 11, 2008, 04:08:21 AM
I can translate into Swedish
(if I only know how to do it)

Ill have to boot Ubuntu when I get home from work to check this out...
(running latest stable Ubuntu)



Offline mikeyfbi

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reply #17 on: April 11, 2008, 12:45:39 PM
I tried unpacking and installing the .deb but I get a "dependency not satisfiable: libcairo2"  ?!?!

I have libcairo2 and it says it's the latest version...and ideas on what i could do?  I would love to test out this program!

Mike



Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #18 on: April 11, 2008, 03:35:04 PM
I tried unpacking and installing the .deb but I get a "dependency not satisfiable: libcairo2"  ?!?!

I have libcairo2 and it says it's the latest version...and ideas on what i could do?  I would love to test out this program!

Mike

The package is only for Ubuntu Hardy (there's no package maintainer for other Ubuntu/Linux versions currently). You may try it out in a Live CD though, the next official Ubuntu version is looming in the corner :-) .

If you're using an older version of Ubuntu, libcairo (and other packages as well) don't satisfy the requirements as they are outdated, although you can compile Whiteboard under Ubuntu Gutsy Gibbon with a compatibility flag (listed in the Wiki).
« Last Edit: April 11, 2008, 03:37:08 PM by fnf »

Download Linux Whiteboard from Linux Whiteboard homepage


Offline UndCon

  • Support Admin
  • *
  • Posts: 566
  • Karma: +11/-3
    • View Profile
    • UndCon
Reply #19 on: April 11, 2008, 03:42:46 PM
Crap - i also got Libcairo2 error...(using Ubuntu/7.10 (gutsy))

What format are the mo local files to be opened with ?

i couldnt even open 1 file up t see what to translate...



Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #20 on: April 11, 2008, 03:44:39 PM
I can translate into Swedish
(if I only know how to do it)

Ill have to boot Ubuntu when I get home from work to check this out...
(running latest stable Ubuntu)

I attached a translation template, you may use KBabel or a plain text editor to do it. Look for msgid fields and put the translation in msgstr fields beneath them.

Please remove the ".zip" extension.

Download Linux Whiteboard from Linux Whiteboard homepage


Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #21 on: April 11, 2008, 03:49:11 PM
Crap - i also got Libcairo2 error...(using Ubuntu/7.10 (gutsy))

What format are the mo local files to be opened with ?

i couldnt even open 1 file up t see what to translate...

You may have a look at the Whiteboard Wiki, after installing the dependencies, you can compile it to a local directory:
Code: [Select]
./autogen.sh CXXFLAGS="-DCOMPATIBILITY_GUTSY" --prefix=/home/foo/whiteboard
make
make install

Download Linux Whiteboard from Linux Whiteboard homepage


Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #22 on: April 12, 2008, 10:04:23 AM
I did a quick search on google, and came up with: http://www.qtcentre.org/forum/f-qt-programming-2/t-program-crashes-with-assert-error-in-xcb-lockc-10257.html

This appears to talk about the same assert error, and being something to do with thread notifications and GUI's
I have no idea if that means anything to you. I'm having a hard time figuring out what might be different in my setup or versions of libraries that would give me such different behaviour....

Anyhow, I think that's enough digging for one night. ;-)

I have checked in a new SVN version which is riddled with debugging messages. There are 5 levels, I suggest compiling at level 2 to stay sane :-) :
Code: [Select]
./autogen.sh CXXFLAGS="-DDEBUG_LVL=2" --prefix=/home/foo/whiteboard

Download Linux Whiteboard from Linux Whiteboard homepage


Offline DanielW

  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Reply #23 on: April 12, 2008, 10:37:54 AM
seems I checked at just about the same time as you were uploading ;-)
so the diagnostics I get at level 2:
DEBUG_LVL 1: Calibration window: Starting Wiicursor threads
DEBUG_LVL 1: Starting Wiicursor thread...
DEBUG_LVL 1: Calibration window: Running calibration window
DEBUG_LVL 1: Mouse down, waiting for right click event
DEBUG_LVL 1: Mouse click-n-drag, calibration invalidated
DEBUG_LVL 1: Mouse up, checking for finish...
DEBUG_LVL 1: Mouse down, waiting for right click event
DEBUG_LVL 1: Right button down, registering IR pos #0 at 163x402
DEBUG_LVL 1: Mouse up, checking for finish...
DEBUG_LVL 1: Mouse down, waiting for right click event
DEBUG_LVL 1: Right button down, registering IR pos #1 at 606x456
DEBUG_LVL 1: Mouse up, checking for finish...
DEBUG_LVL 1: Mouse down, waiting for right click event
DEBUG_LVL 1: Right button down, registering IR pos #2 at 626x36
DEBUG_LVL 1: Mouse up, checking for finish...
DEBUG_LVL 1: Mouse down, waiting for right click event
DEBUG_LVL 1: Right button down, registering IR pos #3 at 166x47
DEBUG_LVL 1: Mouse up, checking for finish...
DEBUG_LVL 1: All points calibrated, quitting...
DEBUG_LVL 1: Stopping WiiCursor thread
DEBUG_LVL 1: Finishing Wiicursor thread...
DEBUG_LVL 1: Hiding calibration window
DEBUG_LVL 1: Calibration window: Done calibrating, cleaning up...
DEBUG_LVL 1: Calibration succeeded, will return data
DEBUG_LVL 1: Calibration succeeded
DEBUG_LVL 1: Calculating coefficients... DEBUG_LVL 1: Done!
DEBUG_LVL 2: Transformation matrix: 4.16377 0.0306334 -639.21 0.424905 -3.31122 1313.65 0.000436246 -8.73822e-05 0
Segmentation fault (core dumped)

At some point I wondered if my 1600x1200 resolution might cause problems, but I reduced it to 1280x800 and got the same problem.

Will re-build now with level 5 and see how that goes ...;-)



Offline DanielW

  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Reply #24 on: April 12, 2008, 10:42:22 AM
The level 5 didn't provide any new insight (to me at leasT)
DEBUG_LVL 3: Calibration window: Finished drawing
DEBUG_LVL 4: Got Wiimote events
DEBUG_LVL 4: Time stamps: Current 1208014802043; Last 1208014802036
DEBUG_LVL 4: Got Wiimote events
DEBUG_LVL 4: Time stamps: Current 1208014802057; Last 1208014802043
DEBUG_LVL 4: Got Wiimote events
DEBUG_LVL 4: Time stamps: Current 1208014802062; Last 1208014802057
DEBUG_LVL 4: Got Wiimote events
DEBUG_LVL 4: Time stamps: Current 1208014802074; Last 1208014802062
DEBUG_LVL 4: Got Wiimote events
DEBUG_LVL 4: Time stamps: Current 1208014802083; Last 1208014802074
DEBUG_LVL 4: Got Wiimote events
DEBUG_LVL 4: Time stamps: Current 1208014802095; Last 1208014802083
DEBUG_LVL 4: Time stamps: Current 1208014802095; Last 0
DEBUG_LVL 1: Mouse up, checking for finish...
DEBUG_LVL 1: All points calibrated, quitting...
DEBUG_LVL 1: Stopping WiiCursor thread
DEBUG_LVL 1: Finishing Wiicursor thread...
DEBUG_LVL 1: Hiding calibration window
DEBUG_LVL 1: Calibration window: Done calibrating, cleaning up...
DEBUG_LVL 1: Calibration succeeded, will return data
DEBUG_LVL 1: Calibration succeeded
DEBUG_LVL 1: Calculating coefficients... DEBUG_LVL 4: Screen size: 1600x1200
DEBUG_LVL 1: Done!
DEBUG_LVL 2: Transformation matrix: 4.19883 -0.0537547 -674.809 0.487059 -3.34854 1280.74 0.000453686 -0.000131333 0
DEBUG_LVL 3: Printing messages to main output
DEBUG_LVL 4: Added timestamp
DEBUG_LVL 4: Applied tag
DEBUG_LVL 4: Added the message
DEBUG_LVL 4: Adjusted the scrollbar
DEBUG_LVL 3: Done printing messages
Segmentation fault (core dumped)

If there is anything else I can try, let me know.



Offline DanielW

  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Reply #25 on: April 12, 2008, 11:27:29 AM
From what I can see it is specifically at the end of the even handler for the button calibrate
we get all the way to the end of that. but I have no ide ahow GUI logic works, so I don't know what would be executed after we leave that method....



Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #26 on: April 12, 2008, 11:30:59 AM
I commented out a message after calibrating, looks like it happens consistently at that point. The odd is, Whiteboard doesn't do anything else after printing the message.

Please do a SVN update. If it continues to crash, can you provide a stack trace (by compiling with CXXFLAGS="-ggdb")?. I suspect the multithreading bug is still lingering, running in GDB/cgdb should crash it with different error messages though.

Download Linux Whiteboard from Linux Whiteboard homepage


Offline DanielW

  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Reply #27 on: April 12, 2008, 12:44:05 PM
ok I think I did it right... recompiled and ran in gdb, the end of the log gives:
EBUG_LVL 1: Mouse up, checking for finish...
DEBUG_LVL 1: All points calibrated, quitting...
DEBUG_LVL 1: Stopping WiiCursor thread
DEBUG_LVL 1: Finishing Wiicursor thread...
DEBUG_LVL 1: Hiding calibration window
DEBUG_LVL 3: Calibration window: Began drawing
[New Thread 0xb3935b90 (LWP 18734)]
DEBUG_LVL 4: Screen size: 1600x1200
DEBUG_LVL 4: Screen size: 1600x1200
DEBUG_LVL 3: Calibration window: Finished drawing
DEBUG_LVL 1: Calibration window: Done calibrating, cleaning up...
DEBUG_LVL 1: Calibration succeeded, will return data
DEBUG_LVL 1: Calibration succeeded
DEBUG_LVL 1: Calculating coefficients... DEBUG_LVL 4: Screen size: 1600x1200
DEBUG_LVL 1: Done!
DEBUG_LVL 2: Transformation matrix: 6.16119 -0.115566 -293.006 1.02594 -2.71988 1426.21 0.00132087 -7.45584e-05 0
DEBUG_LVL 3: Exiting wiicursor_thread_func()
[Thread 0xb5939b90 (LWP 18588) exited]
Mesg pipe overflow

leaving the gui to go unresponsive.
hope that helps!



Offline DanielW

  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Reply #28 on: April 12, 2008, 12:47:45 PM
had a second go to see ifit is the same everytime, and got:
DEBUG_LVL 2: Transformation matrix: 2.62097 0.409526 -691.181 0.0535076 -2.49628 1224.46 -8.71122e-05 -0.000394665 0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb58fdb90 (LWP 20106)]
0xb73b1478 in cwiid_disable (wiimote=0x0, flags=1) at interface.c:72
72      wiimote->flags &= ~flags;
Current language:  auto; currently c

would it help if I got GDB to dump memory? I'm not that familar with the tool.
however I'm going out now, so will be tomorrow before I can try anything else...




Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #29 on: April 12, 2008, 01:36:16 PM
had a second go to see ifit is the same everytime, and got:
DEBUG_LVL 2: Transformation matrix: 2.62097 0.409526 -691.181 0.0535076 -2.49628 1224.46 -8.71122e-05 -0.000394665 0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb58fdb90 (LWP 20106)]
0xb73b1478 in cwiid_disable (wiimote=0x0, flags=1) at interface.c:72
72      wiimote->flags &= ~flags;
Current language:  auto; currently c

would it help if I got GDB to dump memory? I'm not that familar with the tool.
however I'm going out now, so will be tomorrow before I can try anything else...

The last bit may be an important cue, looks like a bug in libcwiid itself because Whiteboard does set some flags (to disable reporting of messages) after calibrating.

I've done a bunch of updates to the debugging messages, please update to the latest SVN (rev. 129) when possible. Thanks for the report.

I don't usually have to use a debugger so I'm not sure what can be done with a core dump. It may prove useful though, I'll have a look at it if things get messier.

Download Linux Whiteboard from Linux Whiteboard homepage