Bug #63844 [Opn->Sus]: php-gtk out of memory error
[email protected] Tue, 24 Oct 2017 23:13:27 GMT
| Newsgroups | php.gtk.dev |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=63844&edit=1 ID: 63844 Updated by: [email protected] Reported by: gianluca dot faieta at gmail dot com Summary: php-gtk out of memory error -Status: Open +Status: Suspended Type: Bug Package: PHP-GTK related Operating System: Windows PHP Version: Irrelevant Block user comment: N Private report: N New Comment: I'm gonna suspend this report as the PHP GTK project activity seems halted, if the activity picks backup for the project then this report should be re-opened. Previous Comments: ------------------------------------------------------------------------ [2012-12-24 09:36:50] gianluca dot faieta at gmail dot com Description: ------------ Test script crashes after "eating" over 1GB of RAM. php-cli.ini has memory_limit = -1 The script was run on Windows Server 2008 SP2 and Windows XP SP2 with same error. Multiple PHP binaries were tested, with same outcome: - http://emsmith.net/gtk/php-5.3.15-nts-php-gtk-snapshot.zip - http://emsmith.net/gtk/php-5.4.5-nts-php-gtk-snapshot.zip - http://emsmith.net/gtk/php-gtk-2012-5.4-snapshot.zip - php-gtk compiled from latest https://github.com/auroraeosrose/php-gtk-src in conjunction with PHP 5.4.10-nts binary package The problem is not in strpos: simply accessing the data (ex. $a=$item['descr']) crashes the script. Older php-gtk package works (http://gtk.php.net/do_download.php? download_file=php-gtk-2.0.1-win32-nts.zip), even with 100k elements. Reducing the number of elements to 5000 solves the bug, but my real application uses 100k elements. Using connect_simple() on every button (instead of connect_signals()) solves the bug in the test script but not in the complete application. Test script: --------------- http://www.faieta.net/wp/wp-content/uploads/2012/12/php_outofmem.phps Expected result: ---------------- Press button "Foo" -> "Search OK" then Press button "Bar" -> "Bar was clicked" then Press button "Foo" -> "Search OK" Actual result: -------------- Press button "Foo" -> "Search OK" then Press button "Bar" -> "Bar was clicked" then Press button "Foo" -> Out of memory ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63844&edit=1