Skip to content

Nested collection record decode error  #16

@kerozen

Description

@kerozen

when using field traversal in projections, I get error :

PHP Fatal error:  Cannot access empty property in /var/www/paulbot/OrientDB/OrientDBRecordDecoder.php on line 746

the query was :

SELECT tweets.size() as nb_tw, id, tweets.tout.rt as nb_rted  FROM U WHERE tweets.size() > 0 and tweets.tout.rt.size() > 0 order by nb_tw desc LIMIT 20 

trying to debug by myself I added l.745

if ($name == "") {  
error_log("Decode error ! ".$values);
error_log("Decode error ! ".$this->content);
} else { ...

and got values and content vars logged :

Decode error ! a:1:{i:0;O:16:"OrientDBTypeLink":3:{s:22:"
Decode error ! nb_tw:37,id:"583489647",nb_rted:[[#15:5],[#15:1],[#15:10,#15:88],[#15:15,#15:24],[#15:48],[#15:53,#15:294],[#15:1],[#15:10,#15:88],[#15:99,#15:131],[#15:93],[#15:109],[#15:99,#15:131],[#15:135,#15:140,#15:192,#15:197,#15:246,#15:247,#15:249,#15:250,#15:251,#15:252,#15:253,#15:255,#15:256],[#15:157,#15:162,#15:169,#15:180,#15:265,#15:269,#15:274,#15:280],[#15:151,#15:179,#15:262,#15:279],[#15:177,#15:278],[#15:135,#15:140,#15:192,#15:197,#15:246,#15:247,#15:249,#15:250,#15:251,#15:252,#15:253,#15:255,#15:256],[#15:227],[#15:234,#15:235,#15:236,#15:239],[#15:135,#15:140,#15:192,#15:197,#15:246,#15:247,#15:249,#15:250,#15:251,#15:252,#15:253,#15:255,#15:256],[#15:157,#15:162,#15:169,#15:180,#15:265,#15:269,#15:274,#15:280],[#15:151,#15:179,#15:262,#15:279],[#15:177,#15:278],[#15:53,#15:294]]

but after that the script ran out of memory.

PHP Fatal error:  Allowed memory size of 746586112 bytes exhausted (tried to allocate 35 bytes) in /var/www/paulbot/OrientDB/OrientDBRecordDecoder.php on line 799

any clue how to solve this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions