* [gentoo-user] panic:: octave: magick/semaphore.c:525: [...] failed
@ 2010-07-26 16:16 Valmor de Almeida
2010-07-28 19:43 ` pk
0 siblings, 1 reply; 5+ messages in thread
From: Valmor de Almeida @ 2010-07-26 16:16 UTC (permalink / raw
To: gentoo-science, gentoo-user
Hello,
The test code below for writing an image to a file crashes octave. Would
anyone be able to help? I am using octave-3.2.4-r1 and graphicsmagick-1.3.12
Thanks,
--
Valmor
file test.m
---------------------------
#! /usr/bin/octave -qf
im = ones(2,2);
im(2,1) = 0.5;
im(1,2) = 0.5;
imwrite(im,"image.png");
--------------------------
-> ./test.m
octave: magick/semaphore.c:525: LockSemaphoreInfo: Assertion
`semaphore_info != (SemaphoreInfo *) ((void *)0)' failed.
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Aborted
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] panic:: octave: magick/semaphore.c:525: [...] failed
2010-07-26 16:16 [gentoo-user] panic:: octave: magick/semaphore.c:525: [...] failed Valmor de Almeida
@ 2010-07-28 19:43 ` pk
2010-07-29 4:49 ` Valmor de Almeida
0 siblings, 1 reply; 5+ messages in thread
From: pk @ 2010-07-28 19:43 UTC (permalink / raw
To: gentoo-user
On 2010-07-26 18:16, Valmor de Almeida wrote:
> -> ./test.m
> octave: magick/semaphore.c:525: LockSemaphoreInfo: Assertion
> `semaphore_info != (SemaphoreInfo *) ((void *)0)' failed.
> panic: Aborted -- stopping myself...
> attempting to save variables to `octave-core'...
> save to `octave-core' complete
> Aborted
Hi,
I tested your code (and variations of it) and I get the same result
as you. Googling seems to indicate that lots of other people are having
similar problems with imwrite/imread function. The functions are not
part of the octave package but is an add-on. However, from what I can
see it may be a problem in the way octave make the graphicsmagick
write-call (of course there may be a problem with graphicksmagick itself
as well). Don't know enough to be of more help... Sorry!
Best regards
Peter K
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] panic:: octave: magick/semaphore.c:525: [...] failed
2010-07-28 19:43 ` pk
@ 2010-07-29 4:49 ` Valmor de Almeida
2010-07-29 10:19 ` pk
0 siblings, 1 reply; 5+ messages in thread
From: Valmor de Almeida @ 2010-07-29 4:49 UTC (permalink / raw
To: gentoo-user
pk wrote:
[snip]
> Hi,
>
> I tested your code (and variations of it) and I get the same result
> as you. Googling seems to indicate that lots of other people are having
> similar problems with imwrite/imread function. The functions are not
> part of the octave package but is an add-on. However, from what I can
> see it may be a problem in the way octave make the graphicsmagick
> write-call (of course there may be a problem with graphicksmagick itself
> as well). Don't know enough to be of more help... Sorry!
>
> Best regards
>
> Peter K
>
Thanks for the feedback. I posted the same question on the octave users
list but no answers.
Regards,
--
Valmor
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] panic:: octave: magick/semaphore.c:525: [...] failed
2010-07-29 4:49 ` Valmor de Almeida
@ 2010-07-29 10:19 ` pk
2010-08-01 18:56 ` CLOSED " Valmor de Almeida
0 siblings, 1 reply; 5+ messages in thread
From: pk @ 2010-07-29 10:19 UTC (permalink / raw
To: gentoo-user
On 2010-07-29 06:49, Valmor de Almeida wrote:
> Thanks for the feedback. I posted the same question on the octave users
> list but no answers.
Maybe vacation time so most users are offline? I'm on vacation but still
online... :-)
If you know C you could check out the semaphore.c file to see what it
looks like and how whatever function is used should be called... maybe
it can give you some clue?
Best regards
Peter K
^ permalink raw reply [flat|nested] 5+ messages in thread
* CLOSED Re: [gentoo-user] panic:: octave: magick/semaphore.c:525: [...] failed
2010-07-29 10:19 ` pk
@ 2010-08-01 18:56 ` Valmor de Almeida
0 siblings, 0 replies; 5+ messages in thread
From: Valmor de Almeida @ 2010-08-01 18:56 UTC (permalink / raw
To: gentoo-user
On 07/29/2010 06:19 AM, pk wrote:
> On 2010-07-29 06:49, Valmor de Almeida wrote:
>
>> Thanks for the feedback. I posted the same question on the octave users
>> list but no answers.
>
> Maybe vacation time so most users are offline? I'm on vacation but still
> online... :-)
>
> If you know C you could check out the semaphore.c file to see what it
> looks like and how whatever function is used should be called... maybe
> it can give you some clue?
>
> Best regards
>
> Peter K
>
For the record, the work around this problem was posted on the octave
users list.
>>>It appears to me to be either initialization problem or race
>>>condition. The workaround that
>>>works for me is to read some file first fith imread, after that
>>>imwrite works fine. I.e.:
>>>
>>>junk1 = imread("some_file.png")
>>>im=ones(2);
>>>imwrite(im, "myfile.png")
>>>
>>>Dmitri.
--
Valmor
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-01 17:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 16:16 [gentoo-user] panic:: octave: magick/semaphore.c:525: [...] failed Valmor de Almeida
2010-07-28 19:43 ` pk
2010-07-29 4:49 ` Valmor de Almeida
2010-07-29 10:19 ` pk
2010-08-01 18:56 ` CLOSED " Valmor de Almeida
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox