Stable: 2.5.2
Development: 2.6-alpha3
Since I sometimes receive a bug report that is unusable for me or lacks important information, this short text should help people who aren't sure how to report a bug. Good, but longer and more general description of a bug reporting is How to Report Bugs Effectively.
Most important thing: Please report bugs!. Users are the best testers, especially in Open Source world.
If you installed MOC and after typing ./mocp the programm crashes, it's not enough just say it crashes after startup. I really run my programs before releasing a new version, there must be something with your system or MOC config. You must at least report your operating system name and version, but in most cases it's still not enough.
First, make sure that the old version of MOC is not running, it's often a cause of an error at startup. It's easy to forget that you run MOC because no interface could be visible, only the server. Use ps ax | grep mocp to see if MOC is running.
Basic information that are usefull in most cases:
MOC can create logs which are sometimes useful when reporting a bug. Just run MOC with --debug (or -D) option and two files will be created: mocp_server_log and mocp_server_log. Remember to shut down the server before doing this to get the server log (SHIFT-Q command or mocp -x).
You can include them with your bug report, but first compress them, preferably with bzip2 -9.
Logs could contain list of your files with tags and Internet radios URLs you played, remember this if you think it's sensitive information.
This is very useful after you get a segmentation fault or assertion failed. In such situation a core file is created. Some distributions disable dumping cores by default (like Slackware), type ulimit -c, if it displays 0, core files will not be create. In this case use ulimit -c 10000 to get core dumps in your session (in the terminal/console you used the ulimit command).
If you have a core file, you must have gdb to get a backtrace, this is an example:
daper@amd:~$ mocp Running the server... Trying JACK... Trying ALSA... Segmentation fault (core dumped) daper@amd:~$ gdb mocp core GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". Core was generated by `./mocp'. Program terminated with signal 11, Segmentation fault. [ ...more messages from GDB... ] (gdb) bt #0 0x08063a70 in main_win_init (w=0xbf94f074, layout_fmt=0x80b6130 "playlist:0,0,100%,100% directory:0,0,100%,100%") at interface_elements.c:818 #1 0x08066c76 in validate_layouts () at interface_elements.c:1948 #2 0x08069aa0 in windows_init () at interface_elements.c:2942 #3 0x0805e694 in init_interface (sock=3, logging=0, args=0xbf94f428, arg_num=0) at interface.c:1372 #4 0x080552a5 in start_moc (params=0xbf94f184, args=0xbf94f428, arg_num=0) at main.c:188 #5 0x08055c95 in main (argc=1, argv=0xbf94f424) at main.c:548
In this example a core file was dumped, user issued gdb mocp core command and then in gdb used bt to get the backtrace. The text you should include in your bug report is after (gdb) bt.
Comments
Josef Polách
Fri, 2006-02-24 08:05
Permalink
Bug? - incorrect seek-forward/-backward
MOCP 2.4.0 (as well as the previous version I had) on Linux Slackware 10.1.0 does not correctly navigate in played file if not run firstly after system start.
If I press LEFT or RIGHT shortly or longly it always is resulting into forward and it cannot be stopped. It stops after some time by itself.
It works correctly only if mocp is run firstly after system start.
I also tried to kill all mocp processes (after ending with Q some processes remain) but it did not help.
Sorry if it is already solved, I tried to find but without any success.
Thank you for advice
Have a nice day
Josef
daper
Sat, 2006-02-25 13:47
Permalink
What is your hardware? is it
What is your hardware? is it slow? (older than pentium 200?)
--
Damian Pietras - MOC developer
Josef Polách
Mon, 2006-02-27 04:59
Permalink
Re: What is your hardware? is it
Intel Celeron 700 or so, 256 MB RAM, SCSI disc,... Dell Precision 420 is there on some label.
Josef
scoldef
Mon, 2006-04-17 02:27
Permalink
nevermind ..
nevermind ..
nqtnn
Thu, 2006-06-01 04:04
Permalink
--toggle-pause
I don't know if I'm in the right place to report bugs, please let me know if not.
I think that calling mocp with --toggle-pause should make it play also if it is stopped. Actually, if it's stopped, calling mocp that way doesn't do anything.
Cheers
--
Gabriel Parrondo
daper
Sat, 2006-06-03 08:06
Permalink
It's not a bug, it's
It's not a bug, it's supposed to work this way.
Comments on this page were enabled by accident, I'll disable it now. Please use the forum.
--
Damian Pietras - MOC developer