Bug 1551246 - scripts fail to return value
Summary: scripts fail to return value
Keywords:
Status: CLOSED DUPLICATE of bug 1550245
Alias: None
Product: Fedora
Classification: Fedora
Component: qt5-qtscript
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-03 23:14 UTC by Anton Guda
Modified: 2018-03-06 15:15 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-06 15:15:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.