cloudy

Author Topic: Any news on consolewd and that pesky "Inconsistency detected by ld.so..:"?  (Read 8865 times)

0 Members and 1 Guest are viewing this topic.

Offline ejeklint

  • Posts: 25
note that I can compile consolewd on my mac to run on a mac
If I had only known that is what you were looking for

Oh, I had no idea! That would have been great of course and worth a good donation!  :)

Quote
also, though, did you see the post above where the problem was related to other USB devices connected?

Yes and I tested all possible variations to no avail.

Offline ejeklint

  • Posts: 25
ps, its not good that you are releasing information on the wmr100 protocol, as that info is not public info

Well it's debatable, the information is already on the net. One only needs to google around for a while. And it's done by reverse engineering, not by publication of secret documents.

Quote
also, note that WD for the mac works OK with the wmr100 (full graphical version)
and so it looks like you are now going to be competing with me on that (i.e by offering free software when I am trying to pay the bills here)

I have no intention at all trying to compete with you, I just thought that I could occupy a small void for which there are no solution available: a data logging solution for WMR100N running on Mac OS X. No full flegded app like your capable of handling several brands and models. I won't go that route.

Offline pablo

  • Posts: 492
I finally gave up and have now written my own data logger that runs natively on Mac OS X - wdconsole was perfect for my needs and the only reason for running Linux at all. So now I'm 100% pure mac again and have a weather logger. Still needs some trimming of some rough edges before a release, but it's soon available for free. http://www.ejeklint.se/development/wmr100n-driver-for-mac-os-x/

Sweeeeeeeeeeeeeeeeeeeeeeeeeet!
pablo
WMR-100

Offline scott.nightingale

  • Posts: 10
  • Waiheke Island, New Zealand
tried the libraries from the latest GTK2 version but still same problem.  Crashes before any data is read.  I'm not running any other fancy USB devices, usb keyboard and mouse but that's all.  Does this consistently for me.

Following is the output:

-------------------------------------------

scott@scott:~/opt/wdconsole6.2$ ./GoWdconsole.sh
Weather station type is a WH1081
Latitude= -36.8
Longitude= 175.0
Station name =3 McIntosh Rd - WS1081
Daily rain startup= 0.0
Monthly rain startup= 0.0
Will do wunderground updates
wunderground username = IAUCKLAN35
wunderground password = *****
wunderground utc =12
Barooffset= 0.0
Yes Revb Davis VP
Davis rain gauge 0.2mm
mysql username =
mysql server =
mysql databasename =
mysql tablename =
Will do mysql metric
mysql time interval = 300
cwop station id =
cwop call sign = -1 // -1 is default (you do not have a Ham call si
cwop latitude=
cwop longitude=
FTP server =
FTP username =
FTP port = 21     
FTPremote dir =
Will do ftp passive
remote file =               
FTP time interval = 60   
 wu =Y
Will save logfile
logfile metric
Custom file name = wx.html
Custom file name 2=
Custom file name 3=
Custom file name 4=
Custom file name 5=
Tag units in celsius
wind units = kts
baro metric= Y
rain metric= Y
Will run cron files
utc hour=3
local hour=15
****Weather Display vers WD console 6.2****
If use this program,then please consider sending a PayPal donation to info@weather-display.com (Brian Hamilton)
to help with costs, and support, thanks!
www.weather-display.com
Doing minute routine now
Inconsistency detected by ld.so: dl-minimal.c: 148: realloc: Assertion `ptr == alloc_last_block' failed!

-------------------------------------------

Offline Weather Display

  • Posts: 64,521
try the usb library files from an older consolewd

I dont have my wh1081 station here at the moment to test

Offline scott.nightingale

  • Posts: 10
  • Waiheke Island, New Zealand
Actually, when I installed consolewd on my new box it was an old version and I received the same error.

Offline Weather Display

  • Posts: 64,521
then the problem could be with the distro you are using, and the libc, in use, etc etc
from other posts, it seems Debian works well

Offline scott.nightingale

  • Posts: 10
  • Waiheke Island, New Zealand
I'm using Ubuntu 9.04 64 bit, which is Debian

Offline scott.nightingale

  • Posts: 10
  • Waiheke Island, New Zealand
hey here's an interesting development.  I noticed I hadn't updated the date on my weather station since changing batteries (it was reading 2007 something).  After setting date on the wireless receiver I tried consolewd again and would you know it... for the first time it worked perfectly!  This could be total coincidence, but I'd be interested to see if this solves the problem for anyone else.

Offline Weather Display

  • Posts: 64,521
I doubt its related, something else must have kicked into gear
(did you reset the station?)

Offline scott.nightingale

  • Posts: 10
  • Waiheke Island, New Zealand
hmm, yes you might be right.  Problem back again.  Interesting that it worked several times in a row after setting date.  Didn't reset station, but don't know if changing settings may reset something.

Offline edfardos

  • Posts: 22
Re: Any news on consolewd and that pesky "Inconsistency detected by ld.so..:"?
« Reply #41 on: September 24, 2009, 03:37:28 PM »
Same issue here, with ubuntu-hardy and consolewd.   The difference is the
number and type of usb devices attached to my system.  I unplugged my
USB midi keyboard, no change, same error.  I unplugged my webcam, and
suddenly consolewd worked.  I don't know of a permanent solution since
Linux (purposefully) randomizes the order of usb device enumeration
on each boot.  I have no idea what the error message means either.

--edfardos

Offline tomten

  • Posts: 5
  • Göteborg, Sweden
Re: Any news on consolewd and that pesky "Inconsistency detected by ld.so..:"?
« Reply #42 on: September 25, 2009, 01:18:48 PM »
I also have the "Inconsistency detected" issue with Fedora 11, consolewd 6.6 (and 6.5) and a USB connected OS WMR100N.  I've tried on two different computers (both with the same OS) and they behave the same.
If I have any other device connected on the USB bus (like bluetooth stick, Plugwise stick, headset, 1wire controller) I get the "Inconsistency" error message but if I remove all other USB devices consolewd does work!  The GUI WD version does work all the time regardless of the number of other USB devices, but unfortunately I want to read the 1wire devices on the same computer and the computer normally doesn't have any monitor attached and has too little resources to run a GUI...

I've run strace on consolewd and when it starts it looks like it loops through all the devices on the USB bus to find the WMR100N but after it has looped through them all it goes back and tries to open one of the other devices (if any) and then crashes.  If no other devices available it openes the correct one and everything is ok.

It looks like consolewd and the gui WD uses different routines to find the USB weather station, why?

Cheers,

Tomas

Offline Weather Display

  • Posts: 64,521
Re: Any news on consolewd and that pesky "Inconsistency detected by ld.so..:"?
« Reply #43 on: September 25, 2009, 05:48:04 PM »
it should be basicly the same routine
try using the libusb.so file (i.e think thats what its called) from the full version (deploy folder) with the console version

Offline tomten

  • Posts: 5
  • Göteborg, Sweden
Re: Any news on consolewd and that pesky "Inconsistency detected by ld.so..:"?
« Reply #44 on: September 25, 2009, 10:14:05 PM »
I've now run consolewd using LD_LIBRARY_PATH pointed to wdisplay/deploy but it still didn't work.  I've attached strace output from that try with consolewd and the strace output when I start the wd gui on the same computer.
There one can see that WD manages to loop through the usb devices without crashing but consolewd crashes at the first one it sees.

/Tomas