Error in magickwand when i run program

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Locked
rohitkrishna
Posts: 43
Joined: 2011-10-01T14:34:04-07:00
Authentication code: 8675308

Error in magickwand when i run program

Post by rohitkrishna »

hi evryone..

I have a problem while i run the imagemagick program.i was able to compile the program...but when i run this program...its giving me error..like this..

group_processing: magick/splay-tree.c:655: GetNumberOfNodesInSplayTree: Assertion `splay_info->signature == 0xabacadabUL' failed.
Aborted

All other programs are working fine.can anyone please help me in this? Im getting this error in line where im using NewPixelRegionIterator();

Code: Select all

while(a<v.n_sbimg)
			{
				i=0;
				rg_itr=NewPixelRegionIterator(magick_wand,v.col[a],v.row[a],v.sbimg_wdt,v.sbimg_hgt);//Error is coimg here
					printf("Here\n");
				for (y=0; y<v.sbimg_hgt; y++)
				{
					pixels = PixelGetNextIteratorRow(rg_itr, &v.sbimg_wdt);//this function iterates row by row in sb_img
					for (x=0;x<v.sbimg_wdt; x++)
					{
						sbimg_pxl_data[i] = (unsigned char) (255*PixelGetRed(pixels[x]));
						sbimg_pxl_data[i+1] = (unsigned char) (255*PixelGetGreen(pixels[x]));
						sbimg_pxl_data[i+2] = (unsigned char) (255*PixelGetBlue(pixels[x]));
						i=i+3;
					}
				}
				memcpy(start,sbimg_pxl_data,v.sbimg_pxl*sizeof(unsigned char));
				start=start+v.sbimg_pxl;
				a++;
			}
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Error in magickwand when i run program

Post by anthony »

This is a Duplicate Topic of
viewtopic.php?f=3&t=21042

Post there!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Locked