Forum Discussion

RobKal's avatar
RobKal
Copper Contributor
Jan 10, 2023

Mictosoft Teams chat window crashes when chatbot conversation is opened

I am developing Microsoft Teams chatbot. Users can start intercating with chat bot only when it is added to Team via apps. Everything works fine when app is added to only one team, however, when I create second team and install the chat bot to the team, Microsoft Teams desktop app suddently starts to crash when chat window is openned. This error does not happen to all of team's users and may not also happen for user who adds the second app. Adaptive cards are used for communication.
I have found temporary fix by clearing the Microsoft Teams cache file at %APPDATA%, but that is not a sollution because I can not clear other users' local cache data.
I started getting compaints from users since last Microsft Teams update in december.

Does anyone know what could cause this?

 

EDIT: App needs to be added to team to get all user data, after that users interact with the app only through private(personal) conversation.

20 Replies

  • Jronash's avatar
    Jronash
    Copper Contributor
    We have the same problem. Using the "Post message in a chat or channel" action in Power Automate. Nothing fancy, but it does include a link. Sometimes it freezes when the link is clicked, sometimes it freezes when the conversation with the bot is opened. Teams becomes mostly unresponsive and the laptop fans start up. Killing and restarting Teams usually works.
  • RobKal I am from the product team, and I was wondering if there was any interaction with the power automate's bot input menu while encountering the freeze. We have not had a successful repro so far with above scenarios, so trying to think if there might have been something else in common.
     

    • PabloLaplaceKellogg's avatar
      PabloLaplaceKellogg
      Copper Contributor
      I had the same problem, but I can't even open the chat, the window gets stuck when you try to open the chat menu Suggestions
    • RobKal's avatar
      RobKal
      Copper Contributor
      In our case we do not use power automate, we use only adaptive cards, but I have such command defined for bot in app-manifest, and users have the suggestions pop-up with command "help" that when called sends adaptive card with more info on the app. Users who encountered this chat crash did not use this command.
  • KeithMcC's avatar
    KeithMcC
    Copper Contributor

    Hi RobKal

     

    I am in the same boat as you, the issue seems to be related to a recent Teams update. It seems to occur for us when an adaptive card sent via Power Automate has a URL actionable button or a Power Automate flow is waiting on an action from an adaptive card sent to Microsoft teams. 

     

    I currently have a support ticket open, have done for quite a few weeks now and it is currently in a "we are investigating" state. 

     

     

    • Tim_Opie's avatar
      Tim_Opie
      Copper Contributor
      We are also using the adaptive cards with the same issue. There is a timeout set for the wait for response but think you could be onto something with the old card waiting on a response.
      • Sid Uppal's avatar
        Sid Uppal
        Icon for Microsoft rankMicrosoft

        Hello,

         

        I am from the Teams product team. Can some of you please share some sample Adaptive Cards here with which you are able to reproduce the issue?

         

        Thx

         

         

  • Nebucadneza's avatar
    Nebucadneza
    Copper Contributor

    Hi
    We have the same problem if i understand correctly.

    I have made a Powerapp with a button so a few selected People recieve a Power Automate message in Teams when the button is pressed. This was made back in july22
    Since December22 i recieve daily complains from only these selected People that their Teams doesnt work.
    When selecting the Power Automate Chat, the Chat icon, the Calendar and the Call icon go unresponsive. if i select the Teams Icon it will change to teams. if i select Chat or the above again it wont show the selected in MS Teams.
    I have found that if i rightklick on the Power Automate Chat and select "Bot-Unterhaltung sperren" (something like lock Bot conversation) it will prevent the issue from happening (still testing but it seems to work for now on the Accounts i made this change)

    The problem is, then the Message will not be delivered...

    I cleared all chaches with the following .bat :

    @ECHO OFF
    goto:main

    [+] Description: a simple script to clean up Microsoft Team's Cache (release a bit memory)

    :main

    taskkill /f /t /fi "IMAGENAME eq teams.exe"
    echo "[x] Microsoft Team Processes were closed!!!!"
    del /f /q "%appdata%\Microsoft\teams\application cache\cache\*.*" > nul 2>&1
    del /f /q "%appdata%\Microsoft\teams\blob_storage\*.*" > nul 2>&1
    del /f /q "%appdata%\Microsoft\teams\databases\*.*" > nul 2>&1
    del /f /q "%appdata%\Microsoft\teams\GPUcache\*.*" > nul 2>&1
    del /f /q "%appdata%\Microsoft\teams\IndexdDB\*.db" > nul 2>&1
    del /f /q "%appdata%\Microsoft\teams\Local Storage\*.*" > nul 2>&1
    del /f /q "%appdata%\Microsoft\teams\tmp\*.*" > nul 2>&1
    echo "[+] Microsoft Team's Cache was cleaned!!!"
    C:\Users\%USERNAME%\AppData\Local\Microsoft\Teams\Update.exe --processStart Teams.exe
    echo "[+] Microsoft Team Started!!!"
    echo "DONE"

     

    Teamsversion: 1.5.00.33362 (64-Bit)

    • RobKal's avatar
      RobKal
      Copper Contributor

      Nebucadnezathank for your response but in my situation Users can't block bot conversation because then they couldn't recieve any messages from the bot and that is the whole point of my Microsft Teams app.

Resources