ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.41k stars 918 forks source link

remix hangs on infinity loop code #4640

Open JADcooler opened 6 months ago

JADcooler commented 6 months ago

please provide feature or fix to refreshing the window when remix hangs because there's an infinite loop in the transaction

Aniket-Engg commented 6 months ago

@JADcooler Can you please provide more info to reproduce the issue?

JADcooler commented 6 months ago
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract nif 
{
    uint256 public a  = 2;

    function nifs() public 
    {
        while(1 == 1)
        {

        }
    }

}

deploy and click nifs, the issue comes where we click 'a' and it doesn't read the value as call to nifs is still pending, problem becomes worse when we remove contract and try to deploty another instance but even that is pending, and i end up refreshing the tab for it to work