Wiimote Project

General Wiimote and Technology => Linux => General Software Talk => Applications => Topic started by: fnf on March 27, 2008, 01:12:06 PM

Title: Linux Whiteboard - New version (0.3) available
Post by: fnf on March 27, 2008, 01:12:06 PM
Whiteboard 0.3 comes with lots of changes from the last major version, 0.2. Here is the changelog:

Quote
2008/03/27:                                                                                                                                                   
 - Version bumped to 0.3 .
 - Eliminated motion jerkiness.
 - Can tolerate short disappearances of IR signals.
 - Application's launcher now shows up on the GNOME and KDE menu, and others
   which are compatible with the X Desktop Sepcification.
 - Added a PNG icon for KDE users.
 - Major GUI improvements.
 - Configurations saving/loading are back.
 - Some settings can be changed in real-time.
 - Current Wiimotes being calibrated can blink to notice users.

Ubuntu Hardy users can download a pre-built package in the homepage, other users are advised to follow the instruction in the Wiki. Package maintainer volunteers and translators are welcome.

I also filed a 'needs-packaging' submission to Ubuntu Launchpad, hopefully it will be available in the repository soon.

By the way :-) I'm out of ideas now. Suggestions as to what can be improved are appreciated.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: ischnura on March 27, 2008, 08:20:44 PM
It works great!

The only thing to change is the version number in the Help -> About  Menu ;)
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on March 27, 2008, 08:28:15 PM
Duh. Fixed in code, thanks :-) .

The Windows version of Whiteboard has some new useful info called 'Tracking Utilization', I'm adding that as well.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on March 27, 2008, 09:06:48 PM
The calibration window now shows how much the screen is occupying in the Wiimotes's cameras. Minor change, so I'm not posting a new thread.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 08, 2008, 05:11:56 AM
I tried this today, after some problems not realising I needed to uninstall the cwiid libs I had in order to have the newer 0.6 version take effect... I got it built and ran the calibration fine. However before I can activate the app goes unresponsive.
the terminal output is:
Configuration file not found.
Put Wiimote in discoverable mode now (press 1+2)...
Connected!!!
Put Wiimote in discoverable mode now (press 1+2)...
No wiimotes found
Unable to connect to wiimote
Configuration file not found.

(whiteboard:31121): gtkmm-WARNING **: Gtk::Main::init() called twice
Calculating coefficients... Done!
Mesg pipe overflow
Killed

Any ideas? I literally did an svn up this morning so this is as recent as it gets ;-)

I can run with diagnostics if it would help, just tell me what you need
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on April 08, 2008, 09:57:53 AM
Since there is little that may go wrong in Whiteboard, the console messages are not meant for debugging. If you have installed the old libcwiid manually, I'd suggest trying Whiteboard in a Live CD (Ubuntu 8.04 beta/daily build is a good candidate).

What is your distribution?. I only have tested it in Ubuntu 8.04 since that's what I use. I've been calling for volunteer package maintainers for quite a while :-) . Please test it in a Live CD to see if it works.

One thing to note though, Whiteboard uses libcairo to draw the calibration window. Without a 3D or a reasonably fast 2D driver, the calibration process may come to a grinding halt when running in a typical Live CD session.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 08, 2008, 11:18:47 AM
Sorry, totally forgot to mention... this is ubuntu gutsy, I did look at updating to 8.04 but there is a bug at the moment with the updater that causes it to hang ;-( (https://bugs.launchpad.net/update-manager/+bug/186465)
Everything calibrated just fine. But at the end of calibration, returning to the normal screen, it goes unresponsive before I can click on activate.

I'll have more of a poke at it later, Hopefully I'll just be able to update to 8.04 and that will resolve everything.

I should perhaps also mention that I previous ran with the pre-compiled 'demo' that I found on line that had a less sophisticated calibration, and suffered some slow down on drag operations. But otherwise functioned.
That was using the cwiid that I installed out of synaptic, but I couldn't compile the latest with that, even specifying the gutsy compat option it attempted to call a function that it claimed had the wrong number of parameters.
Having updated cwiid I can compile and get to where I am, which is tantalizingly close to working...

I shall update if I find out anything more about what is failing for me, or (fingers crossed) if I find a way to get it going on my setup.

Thanks!

Title: Re: Linux Whiteboard - New version (0.3) available
Post by: UndCon on April 08, 2008, 01:10:06 PM
sorry for bumping in here - but is it easy to install on Ubuntu ?
(I have triple boot on my laptop)
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on April 08, 2008, 03:48:46 PM
Sorry, totally forgot to mention... this is ubuntu gutsy, I did look at updating to 8.04 but there is a bug at the moment with the updater that causes it to hang ;-( (https://bugs.launchpad.net/update-manager/+bug/186465)
Everything calibrated just fine. But at the end of calibration, returning to the normal screen, it goes unresponsive before I can click on activate.

Some users also reported that, which is odd because initially I developed under Gutsy without problems. I don't seem to recall any changes I've made to the code interacting with libcwiid which could have caused problem though.

Should more users report the same behavior (read: one more :-), I'll put in more debugging code.

Quote
That was using the cwiid that I installed out of synaptic, but I couldn't compile the latest with that, even specifying the gutsy compat option it attempted to call a function that it claimed had the wrong number of parameters.
Having updated cwiid I can compile and get to where I am, which is tantalizingly close to working...

The session regarding using the flag only applies to the compilation process. The included 'debian' directory is geared towards and tested in Ubuntu Hardy Heron only, I'm sorry. That means you'd have to modify the directory's content a bit to make a DEB package under Ubuntu Gutsy Gibbon (namely the version differences and adding that compatibility flag to ./configure).

If you don't want to modify the debian directory, you can compile normally under Gutsy and install it to a user's directory (there's a session for it in the Wiki). Try it and tell me how Whiteboard works.

I modified the misleading session in the Wiki :-) thanks for reporting.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 10, 2008, 07:31:20 AM
Ok, so i decided to just update to hardy, since I wanted to do that anyway.
install teh hardy deb, and tried that, but I now get this failure:
Configuration file not found.
Put Wiimote in discoverable mode now (press 1+2)...
Connected!!!
Put Wiimote in discoverable mode now (press 1+2)...
No wiimotes found
Unable to connect to wiimote
Configuration file not found.

(whiteboard:28208): gtkmm-WARNING **: Gtk::Main::init() called twice
Calculating coefficients... Done!
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)
[email protected]:~$

This happens at the same point as the hang on gutsy, eg immediately after calibration.
I've tried uninstalling, deleting a whiteboard executable that seemed to be left around. and re-installing
but no joy ;-(

I shall try updating from svn and re-building from source again. but I'd appreaciate any pointers on what I might have wrong in my environment.

Cheers,
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 10, 2008, 08:05:38 AM
no joy ;-( no matter what I try it gets as far as calibrating my wiimote. then dies.
Should I be worried that it tries to connect to a second wiimote before callibration?
I was wondering if something is expecting there to be 2 when there is actually only 1.
but I'm guessing.

Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on April 10, 2008, 11:52:05 AM
no joy ;-( no matter what I try it gets as far as calibrating my wiimote. then dies.
Should I be worried that it tries to connect to a second wiimote before callibration?
I was wondering if something is expecting there to be 2 when there is actually only 1.
but I'm guessing.



The messages it output are typical in a single-Wiimote session. I couldn't reproduce the crash in several other machines and mine though.

Can you try switching the theme to Ubuntu's standard as a last resort?. Because there have been reports about the Pixbuf engine not working well with some particular themes (with LinSTA, I experienced crashes with VLC myself).

If you're using standard Ubuntu theme then I'll put in some debugging messages.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 10, 2008, 12:35:37 PM
I'm using the Ubuntu 'human' theme which I believe is the default. I am using compiz, if that is relevant.
i can try without if that will help.
Also happy to try with more debug.

cheers
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 10, 2008, 02:05:29 PM
ok no idea if this helps but I tried running inside gdb (I don't really know how to use it) but it gave me this:

(whiteboard:28182): gtkmm-WARNING **: Gtk::Main::init() called twice
[New Thread 0xb58aeb90 (LWP 28544)]
[New Thread 0xb3effb90 (LWP 28652)]
[Thread 0xb3effb90 (LWP 28652) exited]
[New Thread 0xb3effb90 (LWP 28669)]
[Thread 0xb3effb90 (LWP 28669) exited]
[New Thread 0xb3effb90 (LWP 28710)]
[Thread 0xb3effb90 (LWP 28710) exited]
[New Thread 0xb3effb90 (LWP 28747)]
[Thread 0xb3effb90 (LWP 28747) exited]
[New Thread 0xb3effb90 (LWP 28765)]
[Thread 0xb3effb90 (LWP 28765) exited]
[New Thread 0xb3effb90 (LWP 28782)]
[Thread 0xb3effb90 (LWP 28782) exited]
[New Thread 0xb3effb90 (LWP 28803)]
[Thread 0xb3effb90 (LWP 28803) exited]
[New Thread 0xb3effb90 (LWP 28820)]
[Thread 0xb3effb90 (LWP 28820) exited]
whiteboard: ../../src/xcb_lock.c:33: _XCBUnlockDisplay: Assertion `xcb_get_request_sent(dpy->xcb->connection) == dpy->request' failed.

Program received signal SIGABRT, Aborted.
0xb7f14410 in __kernel_vsyscall ()

will see if I can figure anything else out...
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 10, 2008, 04:39:44 PM
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. ;-)
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf 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.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: UndCon 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)
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: mikeyfbi 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
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf 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).
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: UndCon 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...
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf 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.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf 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
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf 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
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW 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 ...;-)
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW 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.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW 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....
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf 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.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW 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!
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW 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...

Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf 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.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 13, 2008, 06:42:26 AM
Looks like you made a couple more updates, I picked up rev 131, and this is what I get:
----DEBUG 4: Screen size: 1600x1200
--DEBUG 2: Transformation matrix: 4.62844 0.000758046 -1377.73 -0.0500694 -3.98791 1620.9 0.000388058 0.00030873 0
-DEBUG 1: m_cal_window set to 0
---DEBUG 3: Printing messages to main output
----DEBUG 4: Added timestamp
----DEBUG 4: Applied tag
----DEBUG 4: Added the message
----DEBUG 4: Adjusted the scrollbar
---DEBUG 3: Done printing messages

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb590bb90 (LWP 979)]
0xb73bf552 in cwiid_get_mesg (wiimote=0xd2e5c381, mesg_count=0xb590b188, mesg=0xb590b184, timestamp=0xb590b174) at interface.c:104
104      if (read_mesg_array(wiimote->mesg_pipe[0], &ma)) {
Current language:  auto; currently c

I'm gonna try cleaning out my cwiid stuff from scratch, I'm wondering if I've got some odd mismatch of libraries installed from where I'd previously been on gutsy, and tried compiling and installing cwiid etc...
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on April 13, 2008, 09:31:16 AM
Looks like you made a couple more updates, I picked up rev 131, and this is what I get:
----DEBUG 4: Screen size: 1600x1200
--DEBUG 2: Transformation matrix: 4.62844 0.000758046 -1377.73 -0.0500694 -3.98791 1620.9 0.000388058 0.00030873 0
-DEBUG 1: m_cal_window set to 0
---DEBUG 3: Printing messages to main output
----DEBUG 4: Added timestamp
----DEBUG 4: Applied tag
----DEBUG 4: Added the message
----DEBUG 4: Adjusted the scrollbar
---DEBUG 3: Done printing messages

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb590bb90 (LWP 979)]
0xb73bf552 in cwiid_get_mesg (wiimote=0xd2e5c381, mesg_count=0xb590b188, mesg=0xb590b184, timestamp=0xb590b174) at interface.c:104
104      if (read_mesg_array(wiimote->mesg_pipe[0], &ma)) {
Current language:  auto; currently c

I'm gonna try cleaning out my cwiid stuff from scratch, I'm wondering if I've got some odd mismatch of libraries installed from where I'd previously been on gutsy, and tried compiling and installing cwiid etc...


Can you try running whiteboard from a Live CD?. I've put up a new package in the homepage with debugging level 4 (brought some obnoxious messages to level 5 as well). It may help to run from a lower resolution (800x600 or 1024x768) if your Live CD session doesn't use a 3D driver.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 13, 2008, 10:19:06 AM
Ok, it will take me some time do download a live cd, will let you know how it goes.
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: UndCon on April 13, 2008, 05:12:09 PM
Here is a translated (partially) file to Swedish

(i kept the GNU and copyright stuff in english)

http://undcon.com/mods/wiimote/sv.po.htm

As i havent had the opportunity to test things out myself yet (cannot find my CD) im not sure i got the translations right...but as far as I can tell from the english version i assume its quite OK...

If not  -let me know so we can correct it
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on April 13, 2008, 06:05:16 PM
Here is a translated (partially) file to Swedish

(i kept the GNU and copyright stuff in english)

http://undcon.com/mods/wiimote/sv.po.htm

As i havent had the opportunity to test things out myself yet (cannot find my CD) im not sure i got the translations right...but as far as I can tell from the english version i assume its quite OK...

If not  -let me know so we can correct it

You've missed a few translations, and they should have been put into "msgstr" fields, not replacing "msgid" fields. Please use "kbabel" or some such software, it'll be easier.

Under GNOME we have "poedit" and "potool".
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 14, 2008, 06:01:30 AM
ok, so I tried the hardy live cd and, perhaps unsuprisingly, it worked perfectly.
So now I hvae to figure out what is different in my system that's been upgraded from gutsy ( and I think before that updgraded from feisty)
Any suggestions on figuring out what is different in my normal setup?
I will put my thinking cap on..... I guess at least I have a working system to look at for reference now.;-)

Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on April 14, 2008, 06:46:14 AM
ok, so I tried the hardy live cd and, perhaps unsuprisingly, it worked perfectly.
So now I hvae to figure out what is different in my system that's been upgraded from gutsy ( and I think before that updgraded from feisty)
Any suggestions on figuring out what is different in my normal setup?
I will put my thinking cap on..... I guess at least I have a working system to look at for reference now.;-)



Glad to hear that it works :-) .

There are a lot of factors that can affect the stability of a system, especially an upgraded one: configurations, left-over files, etc... Those are not usually be accounted fully by the update manager. Not to mention the fact that you have manually installed a few apps yourself.

Although I personally would like to believe there's nothing that can't be brought to light in a Linux system, that it wouldn't fail without reasons, and that upgrading your 3-year-old system again and again is thrilling ;) .

If I have your system in hand then I'll do some more extensive debugging. In the mean time, though, I'd blame libcwiid for changing the API. You may try compiling Whiteboard for an older libcwiid version if you have a Ubuntu Gutsy system around.

The other thing that's worth trying is testing Whiteboard in a fresh user, some user configurations are known to cause crashes (stuff such as GTK+ settings).
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 14, 2008, 07:03:13 AM
Curiouser and curiouser, it does seem that if I create a new user and switch to that, then all is well.
Now to figure out what random preference or setting is causing all the grief.
Many thanks for all your support trying to figure this out.!
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 14, 2008, 07:43:42 AM
Another interesting work around.... if I calibrate in position under the user that works, I can copy the .whiteboardrc file to my main user and re-run and just activate ok...not ideal, but workable until I can figure out what is breaking.

Thanks again for your support
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: DanielW on April 15, 2008, 05:36:05 AM
Ok, so hopefully last post on this issue. This morning I deleted all my gnome settings as suggested here:
http://linuxfud.wordpress.com/2007/02/14/how-to-reset-ubuntugnome-settings-to-defaults-without-re-installing/
and logged in to a nice fresh setup, without losing all my application specific stuff.
And everything works great, the new version is very cool.

It's a shame that something random like user settings are able to cause such havok. but a lesson learned for the future... I think every dist upgrade probably warrants a quick settings refresh, just to be on the safeside!

Another big thanks for the support in trying to figure this out!
Title: Re: Linux Whiteboard - New version (0.3) available
Post by: fnf on April 15, 2008, 05:55:16 AM
Ok, so hopefully last post on this issue. This morning I deleted all my gnome settings as suggested here:
http://linuxfud.wordpress.com/2007/02/14/how-to-reset-ubuntugnome-settings-to-defaults-without-re-installing/
and logged in to a nice fresh setup, without losing all my application specific stuff.
And everything works great, the new version is very cool.

It's a shame that something random like user settings are able to cause such havok. but a lesson learned for the future... I think every dist upgrade probably warrants a quick settings refresh, just to be on the safeside!

Another big thanks for the support in trying to figure this out!

It's true that removing everything is usually easier, but I have customized it a lot (mostly direct gconf stuff such as key bindings, panel settings and specific apps).

One thing that came clear to me recently is the launchers in GNOME's main menu: Once you removed those (with Alacarte), you can't get them back, until you delete stuff in ~/.local/share/applications. They won't show up as available applications in 'Open With' menu once removed, either. Been struggling with it for nearly a year :-) .

I created a new user, copiedGNOME specific settings (.gnome* and .gconf*) one directory at a time till the problem showed up and started narrowing it down from there.

Still a whole lot better than dealing with Windows registry and the 'who-makes-it-messy-faster' contest between Windows apps ;) .