Bug 1551246

Summary: scripts fail to return value
Product: [Fedora] Fedora Reporter: Anton Guda <atu.guda>
Component: qt5-qtscriptAssignee: Than Ngo <than>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jgrulich, jreznik, rdieter, than
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-06 15:15:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anton Guda 2018-03-03 23:14:19 UTC
Description of problem:
Scripts, executed by QScriptEngine, seems to start, but fails to return value.


Version-Release number of selected component (if applicable):
qt5-qtscript-5.10.1-1.fc28.x86_64 (+examples)

How reproducible:
Always.

Steps to Reproduce:
1. Start calculator from examples (/usr/lib64/qt5/examples/script/calculator)
2. Press any digit

Actual results:
"undefined" on screen

Expected results:
work w/o errors.

Additional info:
I have a large program (qontrol), which uses QtScript.
Most of scripts refuses to work.
The main indecator - when I try to exec C++ function from script,
The function executes, but return always 0.

Comment 1 Rex Dieter 2018-03-05 17:41:34 UTC
I can confirm that calculator example doesn't work.  Something is odd here.

Comment 2 Anton Guda 2018-03-05 23:13:56 UTC
qt5-qtscript-5.10.1-3.fc29 (with -O1) seems to work

Comment 3 Rex Dieter 2018-03-06 15:15:08 UTC

*** This bug has been marked as a duplicate of bug 1550245 ***