Segfault when entering half note in voice 3

• May 24, 2010 - 22:29
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Hello.

Program segfaults when trying to enter a halv note in voice 3 (yellow) right after the yellow note in the picture below. The note I enter is a G one note higher than the yellow F.

Skjermdump.png

The MuseScore file is attached. I'm using revision 2949M on Ubuntu 9.10.

Dag Henning

Attachment Size
Skjermdump.png 84.87 KB
Ivory Bride.mscz 3.7 KB

Comments

Status (old) active needs info

Adding a half note G to the second half of measure 8, bass clef, does not crash MuseScore for me. I used the mouse for note entry.

(Tested using r. 3095 nightly build, Windows 7)

I will try again with the latest build when I manage to compile it from trunk. I have some problem with that right now...

I can't even compile rev. 3095. It stops with this errors:

[ 11%] Building CXX object mscore/CMakeFiles/genft.dir/genft.cpp.o
/home/daghenning/trunk/mscore/mscore/genft.cpp:28:22: error: ft2build.h: No such file or directory
/home/daghenning/trunk/mscore/mscore/genft.cpp:29:10: error: #include expects "FILENAME" or
/home/daghenning/trunk/mscore/mscore/genft.cpp:30:31: error: freetype/tttables.h: No such file or directory
/home/daghenning/trunk/mscore/mscore/genft.cpp: In function ‘char* getTable(char*, FT_FaceRec_*)’:
/home/daghenning/trunk/mscore/mscore/genft.cpp:51: error: ‘FT_ULong’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:51: error: expected ‘;’ before ‘tag’
/home/daghenning/trunk/mscore/mscore/genft.cpp:52: error: expected ‘;’ before ‘length’
/home/daghenning/trunk/mscore/mscore/genft.cpp:53: error: ‘tag’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:53: error: ‘length’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:53: error: ‘FT_Load_Sfnt_Table’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:58: error: ‘FT_Byte’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:58: error: ‘buffer’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:58: error: expected primary-expression before ‘)’ token
/home/daghenning/trunk/mscore/mscore/genft.cpp:58: error: expected ‘;’ before ‘malloc’
/home/daghenning/trunk/mscore/mscore/genft.cpp: At global scope:
/home/daghenning/trunk/mscore/mscore/genft.cpp:49: warning: unused parameter ‘t’
/home/daghenning/trunk/mscore/mscore/genft.cpp: In function ‘int main(int, char**)’:
/home/daghenning/trunk/mscore/mscore/genft.cpp:156: error: ‘FT_Library’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:156: error: expected ‘;’ before ‘library’
/home/daghenning/trunk/mscore/mscore/genft.cpp:158: error: ‘library’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:158: error: ‘FT_Init_FreeType’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:163: error: ‘library’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:163: error: ‘FT_New_Face’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:169: error: ‘FT_ENCODING_UNICODE’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:169: error: ‘FT_Select_Charmap’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:171: error: ‘FT_ULong’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:171: error: expected ‘;’ before ‘charcode’
/home/daghenning/trunk/mscore/mscore/genft.cpp:172: error: ‘FT_UInt’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:172: error: expected ‘;’ before ‘gindex’
/home/daghenning/trunk/mscore/mscore/genft.cpp:174: error: ‘charcode’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:174: error: ‘gindex’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:174: error: ‘FT_Get_First_Char’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:175: error: ‘FT_Get_Next_Char’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:177: error: ‘FT_Get_Glyph_Name’ was not declared in this scope
/home/daghenning/trunk/mscore/mscore/genft.cpp:182: warning: deprecated conversion from string constant to ‘char*’
make[3]: *** [mscore/CMakeFiles/genft.dir/genft.cpp.o] Error 1
make[3]: Leaving directory `/home/daghenning/trunk/build'
make[2]: *** [mscore/CMakeFiles/genft.dir/all] Error 2
make[2]: Leaving directory `/home/daghenning/trunk/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/daghenning/trunk/build'
make: *** [release] Error 2
daghenning@Toast:~/trunk$

Do you know why?
(I know this is not a "help compiling" thread, though...)

Hehe, no, I'm not compiling from trunk now. But, build-dep gives:
daghenning@Toast:~/mscore-0-9-6$ sudo apt-get build-dep musescore
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for musescore
daghenning@Toast:~/mscore-0-9-6$

That may be a problem... :-)

Aha! That did the trick!
- Now it compiles fine.
- Runs fine.
- And the bug that this thread really is about, is long gone.

- Only problem now is that I have no sound. MuseScore starts with the following errors:
daghenning@Toast:~$ ./musescore_svn/mscore/build/mscore/mscore
** (:2269): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed
Alsa_driver: the interface doesn't support mmap-based access.
init ALSA audio driver failed
init ALSA driver failed
init audio driver failed
sequencer init failed
preferences.checkUpdateStartup: 72
lastupdate: 26.05.2010 22:04:46.697
daghenning@Toast:~$

Sorry for asking this in a bug report (just tell me if I have to move it to the forums), but do you know the reason for the errors and that sound ain't working?

Dag Henning

Status (old) needs info closed

I'll put the bug on closed status in the meantime. Check the forums well (search) because I have the feeling this has been asked many times before.

Yes, you can close this bug. And you can close my question too... I almost always find a solution myself after I have asked a question on a forum. It seems that I had to choose "hw:0" under ALSA in Preferences instead of "default". Don't know why, but now there's sound!

Thanks for all the replies!