Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GMagick No encode delegate #747

Closed

Conversation

mlocati
Copy link
Collaborator

@mlocati mlocati commented Nov 3, 2020

No description provided.

@mlocati mlocati force-pushed the gmagick-no-encode-delegate-v2 branch 4 times, most recently from d8909c4 to 76322df Compare November 3, 2020 11:51
@ausi
Copy link
Collaborator

ausi commented Nov 3, 2020

If I remember correctly from #733 the error didn’t always show up. It seems that this issue only occurs before the first successful save operation for this format happened. Maybe adding @runInSeparateProcess to the test method can help to reveal the issue.

@mlocati
Copy link
Collaborator Author

mlocati commented Nov 3, 2020

Maybe adding @runInSeparateProcess to the test method can help to reveal the issue.

Yep, it worked! And also broke PHP with a segfault 🤣

@@ -597,6 +597,26 @@ public function testInOutResult($file, $in, $out)
$thumb->save($filename);
}

/**
* @dataProvider inOutResultProvider
* @runInSeparateProcess
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @runInSeparateProcess
* @runInSeparateProcess
* @preserveGlobalState disabled

Maybe this helps with the PHP segfault.

@mlocati mlocati force-pushed the gmagick-no-encode-delegate-v2 branch 11 times, most recently from ce6708f to 5c6a33d Compare November 3, 2020 16:32
@mlocati mlocati force-pushed the gmagick-no-encode-delegate-v2 branch from 5c6a33d to be89a3c Compare November 3, 2020 16:37
@mlocati
Copy link
Collaborator Author

mlocati commented Nov 3, 2020

Any suggestion to fix those Segmentation fault (core dumped) errors is very welcome...

@mlocati
Copy link
Collaborator Author

mlocati commented Nov 3, 2020

I tried with c7dfccd#diff-4c0aab9c8ed7ce313e9c5822412ee5e575471f32232b34724e15b2072771b2c3 and in this case there's no segfault, so the issue is with PHPUnit (see https://travis-ci.com/github/avalanche123/Imagine/builds/198035883)

@mlocati mlocati force-pushed the gmagick-no-encode-delegate-v2 branch from c7dfccd to 6a9d24c Compare November 3, 2020 20:11
@ausi
Copy link
Collaborator

ausi commented Nov 3, 2020

Maybe we should fix the issue without having it captured by the CI for now?

@mlocati
Copy link
Collaborator Author

mlocati commented Nov 3, 2020

I guess it's the only solution... do you mind submitting a new pull request with only the fix?

@mlocati mlocati closed this Nov 3, 2020
@mlocati mlocati deleted the gmagick-no-encode-delegate-v2 branch November 3, 2020 21:03
@ausi
Copy link
Collaborator

ausi commented Nov 3, 2020

Done: #750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants