View Issue Details

IDProjectCategoryView StatusLast Update
0001707XdebugRemote Debuggingpublic2019-10-07 14:30
ReportermanzwebdesignsAssigned Toderick 
PriorityhighSeveritycrashReproducibilityalways
Status feedbackResolutionopen 
PlatformOSWindowsOS Version10 (1903)
Product Version2.8.0beta2 
Target VersionFixed in Version 
Summary0001707: Symfony server crashes on click during debug session
DescriptionI am using PHPStorm 2019.2.3 as my IDE and the Symfony webserver. When I am debugging and try to hightlight some code to evaluate, the server crashes (see attached screenshot). This happens everytime... as soon as I click the code, the server dies.
TagsPHPStorm, Symfony
Operating SystemWindows 10
PHP Version7.3.5-7.3.9

Activities

manzwebdesigns

2019-10-01 15:24

reporter  

Capture.PNG (62,997 bytes)
Capture.PNG (62,997 bytes)

cgsmith

2019-10-02 12:16

reporter   ~0005159

Hi @manzwebdesigns,

This was reported yesterday by Svetlana https://bugs.xdebug.org/view.php?id=1708

https://youtrack.jetbrains.com/issue/WI-48177

--
Chris

cgsmith

2019-10-02 12:19

reporter   ~0005160

Note: see the PHPStorm issue for a work around.

manzwebdesigns

2019-10-02 12:28

reporter   ~0005161

Yeah, I saw that. It is very similar, I think... I did notice this morning that my issue also happens on hover instead of on click... and then only on objects. For example, on Svetlana's issue [https://bugs.xdebug.org/view.php?id=1708], it looks like it is happening on an object just like mine.
```
$nextHymn = $repo->findNextHymn( $hymn->getTitle(), $hymn->getTypeId() ) ?? $repo->findFirstHymn( $hymn->getTypeId() );
```
functions used...
```
/**
     * @param string $currTitle
     * @param int $currTypeID
     *
     * @return Hymns|null
     * @throws NonUniqueResultException
     */
    public function findNextHymn( $currTitle, $currTypeID ): ?Hymns {
        return $this->createQueryBuilder( 'h' )
                   ->andWhere( 'h.typeId = :tid' )
                   ->andWhere( 'h.title > :title' )
                   ->setParameter( 'tid', $currTypeID )
                   ->setParameter( 'title', $currTitle )
                   ->orderBy( 'h.title', 'ASC' )
                   ->getQuery()
                   ->setMaxResults( 1 )
                   ->getOneOrNullResult();
    }

    /**
     * @param int $currTypeID
     *
     * @return Hymns
     * @throws NonUniqueResultException
     */
    public function findFirstHymn( $currTypeID ): Hymns {
        return $this->createQueryBuilder( 'h' )
                    ->andWhere( 'h.typeId = :tid' )
                    ->setParameter( 'tid', $currTypeID )
                    ->orderBy( 'h.title', 'ASC' )
                    ->getQuery()
                    ->setMaxResults( 1 )
                    ->getOneOrNullResult();
    }
```

HTH,
Bud

cgsmith

2019-10-02 12:29

reporter   ~0005162

Oh looks like you actually reported it first... not that it matters. My mistake though.

It is a frustrating issue and hope it is fixed soon!

manzwebdesigns

2019-10-02 12:33

reporter   ~0005163

No problem! My workaround was to step into the function and look at it from there.

derick

2019-10-07 14:30

administrator   ~0005166

I have fixed 0001708 in GitHub (xdebug_2_8 and master branch). That should also address this one. Can you please test that?

Issue History

Date Modified Username Field Change
2019-10-01 15:24 manzwebdesigns New Issue
2019-10-01 15:24 manzwebdesigns Tag Attached: PHPStorm
2019-10-01 15:24 manzwebdesigns Tag Attached: Symfony
2019-10-01 15:24 manzwebdesigns File Added: Capture.PNG
2019-10-02 12:16 cgsmith Note Added: 0005159
2019-10-02 12:19 cgsmith Note Added: 0005160
2019-10-02 12:28 manzwebdesigns Note Added: 0005161
2019-10-02 12:29 cgsmith Note Added: 0005162
2019-10-02 12:33 manzwebdesigns Note Added: 0005163
2019-10-07 14:30 derick Assigned To => derick
2019-10-07 14:30 derick Status new => feedback
2019-10-07 14:30 derick Note Added: 0005166